English

Lenses for Composable Servers

Networking and Internet Architecture 2022-03-30 v1

Abstract

We implement the semantics of server operations using parameterised lenses. They allow us to define endpoints and extend them using classical lens composition. The parameterised nature of lenses models state updates while the lens laws mimic properties expected from HTTP. This first approach to server development is extended to use dependent parameterised lenses. An upgrade necessary to model not only endpoints, but entire servers, unlocking the ability to compose them together.

Keywords

Cite

@article{arxiv.2203.15633,
  title  = {Lenses for Composable Servers},
  author = {Andre Videla and Matteo Capucci},
  journal= {arXiv preprint arXiv:2203.15633},
  year   = {2022}
}

Comments

30 pages

R2 v1 2026-06-24T10:30:23.179Z