【24h】

Read-Only Execution for Dynamic Languages

机译:用于动态语言的只读执行

获取原文

摘要

Supporting read-only and side effect free execution has been the focus of a large body of work in the area of statically typed programming languages. Read-onlyness in dynamically typed languages is difficult to achieve because of the absence of a type checking phase and the support of an open-world assumption in which code can be constantly added and modified. To address this issue, we propose Dynamic Read-Only references (DRO) that provide a view on an object where this object and its object graph are protected from modification. The read-only view dynamically propagates to aggregated objects, without changing the object graph itself; it acts as a read-only view of complex data structures, without making them read-only globally. We implement dynamic read-only references by using smart object proxies that lazily propagate the read-only view, following the object graph and driven by control flow and applied them to realize side-effect free assertions.
机译:支持只读和副作用自由执行是静态类型的编程语言领域的大型工作的焦点。由于没有类型检查阶段和开放世界假设的支持,因此难以实现动态类型的语言中的读取唯一才能实现,其中可以不断添加和修改该代码。要解决此问题,我们提出了动态只读引用(DRO),该引用在该对象和其对象图中保护了从修改中的对象提供了视图。只读视图动态传播到聚合对象,而无需更改对象图本身;它充当复杂数据结构的只读视图,而不使它们在全球范围内读取。我们通过使用潜伏地传播只读视图的智能对象代理来实现动态只读引用,并通过控制流程驱动并应用它们以实现副作用的自由断言。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号