English

Seamless, Correct, and Generic Programming over Serialised Data

Programming Languages 2024-04-29 v2

Abstract

In typed functional languages, one can typically only manipulate data in a type-safe manner if it first has been deserialised into an in-memory tree represented as a graph of nodes-as-structs and subterms-as-pointers. We demonstrate how we can use QTT as implemented in \idris{} to define a small universe of serialised datatypes, and provide generic programs allowing users to process values stored contiguously in buffers. Our approach allows implementors to prove the full functional correctness by construction of the IO functions processing the data stored in the buffer.

Keywords

Cite

@article{arxiv.2310.13441,
  title  = {Seamless, Correct, and Generic Programming over Serialised Data},
  author = {Guillaume Allais},
  journal= {arXiv preprint arXiv:2310.13441},
  year   = {2024}
}

Comments

As submitted to JFP

R2 v1 2026-06-28T12:56:45.588Z