pith. sign in

arxiv: 1604.02474 · v4 · pith:2IKDCPMXnew · submitted 2016-04-08 · 💻 cs.PL

Space-Efficient Latent Contracts

classification 💻 cs.PL
keywords spacecontractsdependencyspace-efficientusedcontractefficiencyguarantee
0
0 comments X
read the original abstract

Standard higher-order contract monitoring breaks tail recursion and leads to space leaks that can change a program's asymptotic complexity; space-efficiency restores tail recursion and bounds the amount of space used by contracts. Space-efficient contract monitoring for contracts enforcing simple type disciplines (a/k/a gradual typing) is well studied. Prior work establishes a space-efficient semantics for manifest contracts without dependency (Greenberg 2015); we adapt that work to a latent calculus with dependency. We guarantee space efficiency when no dependency is used; we cannot generally guarantee space efficiency when dependency is used, but instead offer a framework for making such programs space efficient on a case-by-case basis.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.