A Typed Slicing Compilation of the Polymorphic RPC Calculus

Kwanghoon Choi, James Cheney, Sam Lindley, Bob Reynders
7/22/2021
cs.PL

Official code: kwanghoon/polyrpc (20 stars, Haskell, BSD-3-Clause, last commit 2022-10-04).

Abstract

The polymorphic RPC calculus allows programmers to write succinct multitier programs using polymorphic location constructs. However, until now it lacked an implementation.

Show full abstract

We develop an experimental programming language based on the polymorphic RPC calculus. We introduce a polymorphic Client-Server (CS) calculus with the client and server parts separated. In contrast to existing untyped CS calculi, our calculus is not only able to resolve polymorphic locations statically, but it is also able to do so dynamically. We design a type-based slicing compilation of the polymorphic RPC calculus into this CS calculus, proving type and semantic correctness. We propose a method to erase types unnecessary for execution but retaining locations at runtime by translating the polymorphic CS calculus into an untyped CS calculus, proving semantic correctness.

View on arXivView PDF

Code Implementations(1)

kwanghoon/polyrpcOfficial100%
BSD-3-Clause

PolyRPC, A multi-tier functional programming language

203Haskell, RagelJun 26, 20204 years agoBSD-3-Clause
functionallanguageprogrammingrpc

Similar Papers

Cite this paper

@article{choi2021typed,
  title  = {A Typed Slicing Compilation of the Polymorphic RPC Calculus},
  author = {Kwanghoon Choi and James Cheney and Sam Lindley and Bob Reynders},
  year   = {2021},
  eprint = {2107.10793},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2107.10793}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2107.10793.svg)](https://codeofpaper.com/paper/2107.10793)

Discussion