“Use-once” variables and linear objects

Author:

Baker Henry G.1

Affiliation:

1. Nimble Computer Corporation, 16231 Meadow Ridge Way, Encino, CA

Abstract

Programming languages should have 'use-once' variables in addition to the usual 'multiple-use' variables. 'Use-once' variables are bound to linear ( unshared, unaliased, or singly-referenced ) objects. Linear objects are cheap to access and manage, because they require no synchronization or tracing garbage collection. Linear objects can elegantly and efficiently solve otherwise difficult problems of functional/mostly-functional systems---e.g., in-place updating and the efficient initialization of functional objects. Use-once variables are ideal for directly manipulating resources which are inherently linear such as freelists and 'engine ticks' in reflective languages.A 'use-once' variable must be dynamically referenced exactly once within its scope. Unreferenced use-once variables must be explicitly killed, and multiply-referenced use-once variables must be explicitly copied; this duplication and deletion is subject to the constraint that some linear datatypes do not support duplication and deletion methods. Use-once variables are bound only to linear objects, which may reference other linear or non-linear objects. Non-linear objects can reference other non-linear objects, but can reference a linear object only in a way that ensures mutual exclusion.Although implementations have long had implicit use-once variables and linear objects, most languages do not provide the programmer any help for their utilization. For example, use-once variables allow for the safe/controlled use of reified language implementation objects like single-use continuations.Linear objects and use-once variables map elegantly into dataflow models of concurrent computation, and the graphical representations of dataflow models make an appealing visual linear programming language .

Publisher

Association for Computing Machinery (ACM)

Subject

Computer Graphics and Computer-Aided Design,Software

Reference68 articles.

1. Encapsulation constructs in systems programming languages

2. The incremental garbage collection of processes

3. Baker H.G. "Unify and Conquer (Garbage Updating Aliasing ..) in Functional Languages". ACM LFP. (1990). 10.1145/91556.91652 Baker H.G. "Unify and Conquer (Garbage Updating Aliasing ..) in Functional Languages". ACM LFP. (1990). 10.1145/91556.91652

Cited by 34 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Predictable accelerator design with time-sensitive affine types;Proceedings of the 41st ACM SIGPLAN Conference on Programming Language Design and Implementation;2020-06-06

2. Verification of Programs with Pointers in SPARK;Formal Methods and Software Engineering;2020

3. Uniqueness Types for Efficient and Verifiable Aliasing-Free Embedded Systems Programming;Lecture Notes in Computer Science;2019

4. Developing a monadic type checker for an object-oriented language: an experience report;Proceedings of the 12th ACM SIGPLAN International Conference on Software Language Engineering - SLE 2019;2019

5. Project snowflake: non-blocking safe manual memory management in .NET;Proceedings of the ACM on Programming Languages;2017-10-12

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3