计算机科学 > 程序设计语言
[提交于 2019年12月20日]
标题:QuB: A Resource Aware Functional Programming Language
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Managing resources---file 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 objects---restricted and unrestricted---and two kinds of functions---sharing and separating. Our approach guarantees resource correctness without compromising existing functional abstractions.
提交历史
来自:Apoorv Ingle[v1] 2019年12月20日 星期五 22:59:39 UTC