Emergent Mind

QuB: A Resource Aware Functional Programming Language

(1912.10135)
Published Dec 20, 2019 in cs.PL

Abstract

Managing resourcesfile handles, database connections, etc.is a hard problem. Debugging resource leaks and runtime errors due to resource mismanagement are difficult in evolving production code. Programming languages with static type systems are great tools to ensure erroneous code is detected at compile time. However, modern static type systems do little in the aspect of resource management as resources are treated as normal values. We propose a type system, Qub, based on the logic of bunched implications (BI) which models resources as first class citizens. We distinguish two kinds of program objectsrestricted and unrestrictedand two kinds of functionssharing and separating. Our approach guarantees resource correctness without compromising existing functional abstractions.

We're not able to analyze this paper right now due to high demand.

Please check back later (sorry!).

Generate a summary of this paper on our Pro plan:

We ran into a problem analyzing this paper.

Newsletter

Get summaries of trending comp sci papers delivered straight to your inbox:

Unsubscribe anytime.