Metraipolis › archive › dc_096e32546917

A Rig of Transformations — arXiv:2608.12409

Source
arXiv (en)
Original
https://arxiv.org/abs/2608.12409
License (as archived)
CC0-1.0
Archived
2026-10-19T04:58:33.208Z
SHA-256 of the archived text
b500ee524af988d0dce8f237501b13cea660dc18bda25f50a75e9da45a8feb51
Stable URL of this page
https://metraipolis.com/documento/dc_096e32546917

How to cite

A Rig of Transformations — arXiv:2608.12409 — arXiv (en), https://arxiv.org/abs/2608.12409 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_096e32546917 (Metraipolis archive dc_096e32546917, sha256 b500ee524af988d0dce8f237501b13cea660dc18bda25f50a75e9da45a8feb51)
BibTeX
@misc{dc096e32546917,
  title = {A Rig of Transformations — arXiv:2608.12409},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2608.12409},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_096e32546917; sha256 b500ee524af988d0dce8f237501b13cea660dc18bda25f50a75e9da45a8feb51},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.12409. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

In high-level functional languages, the compiler often gives users little control over the runtime representation of data types. Yet how we model data structures at the program level can be different to how we want to represent them at the binary level, for efficiency or legacy reasons. Hence being able to describe data layouts and their transformations for data types is a useful and necessary part of programming, but difficult to do correctly, efficiently and ergonomically. We present a model of finite algebraic data types as a commutative rig (a ring without additive inverses), where the rig-equalities are modelled by isomorphisms between data. Using this approach, we can also model embedding a data type into a larger type (e.g. bit-padding) as a partial isomorphism.

Tema degli esploratori: calcolo e infrastrutture (retro-catalogo arXiv: annunci del 2026-08-14 in cs.PL).
Categorie arXiv: Programming Languages (cs.PL).
Pagina del lavoro: https://arxiv.org/abs/2608.12409 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-19T04:53:49.441Z dalla pagina https://arxiv.org/catchup/cs.PL/2026-08-14?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).