【24h】

Formally Deriving an STG Machine

机译:正式推出STG机器

获取原文
获取原文并翻译 | 示例
获取外文期刊封面目录资料

摘要

Starting from P. Sestoft semantics for lazy evaluation, we define a new semantics in which normal forms consist of variables pointing to lambdas or constructions. This is in accordance with the more recent changes in the Spineless Tagless G-machine (STG) machine, where constructions only appear in closures (lambdas only appeared in closures already in previous versions). We prove the equivalence between the new semantics and Sestoft's. Then, a sequence of STG machines are derived, formally proving the correctness of each derivation. The last machine consists of a few imperative instructions and its distance to a conventional language is minimal. The paper also discusses the differences between the final machine and the actual STG machine implemented in the Glasgow Haskell Compiler.
机译:从用于延迟评估的P. Sestoft语义开始,我们定义了一种新的语义,其中正常形式由指向lambda或构造的变量组成。这与无脊椎无标签G机(STG)机器的最新更改一致,在该机器中,构造仅出现在闭包中(lambda仅出现在先前版本中已经出现的闭包中)。我们证明了新语义与Sestoft的等效性。然后,导出一系列STG机器,以正式证明每个推导的正确性。最后一台机器由一些命令性指令组成,与常规语言的距离极短。本文还讨论了在格拉斯哥Haskell编译器中实现的最终计算机与实际STG计算机之间的差异。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号