dc.rights.license | CC-BY-NC-ND | |
dc.contributor.advisor | Swierstra, W.S. | |
dc.contributor.author | Klumpers, Samuel | |
dc.date.accessioned | 2023-12-22T00:01:44Z | |
dc.date.available | 2023-12-22T00:01:44Z | |
dc.date.issued | 2023 | |
dc.identifier.uri | https://studenttheses.uu.nl/handle/20.500.12932/45670 | |
dc.description.abstract | The concept of numerical representations as defined by Okasaki [Oka98] explains
how certain datastructures resemble number systems, and motivates how number sys-
tems can be used as a basis to design datastructures. Using McBride’s ornaments
[McB14], the method of designing datastructures starting from number systems can be
made precise. In order to study a broad spectrum of indexed and unindexed numeri-
cal representations, we encode a universe allowing the expression of nested datatypes,
and the internalization of descriptions of composite types. By equipping the universe
with metadata, we can describe number systems and numerical representations in the
same setup. Adapting ornaments to this universe allows us to generalize well-known
sequences of ornaments, such as naturals-lists-vectors. We demonstrate this by imple-
menting the indexed and unindexed numerical representations as ornament-computing
functions, producing a sequence of ornaments on top of the number system. | |
dc.description.sponsorship | Utrecht University | |
dc.language.iso | EN | |
dc.subject | A universe of nested composite datatypes with metadata is describe. The concept of ornaments is adapted to this universe. Numerical representations are then generically constructed as ornaments on number systems. | |
dc.title | Generic Numerical Representations as Ornaments | |
dc.type.content | Master Thesis | |
dc.rights.accessrights | Open Access | |
dc.subject.keywords | numerical representations; ornaments; generic programming | |
dc.subject.courseuu | Computing Science | |
dc.thesis.id | 26765 | |