首页> 外文会议>Compiler construction >How to CPS Transform a Monad
【24h】

How to CPS Transform a Monad

机译:如何CPS转换Monad

获取原文
获取原文并翻译 | 示例

摘要

CPS transformation is an important tool in the compilation of functional programming languages. For strict languages, such as our web programming language "Rinso" or Microsoft's F#, monadic expressions can help with structuring and composing computations.rnTo apply a CPS transformation in the compilation process of such a language, we integrate explicit monadic abstraction in a call-by-value source language, present a Danvy-Filinski-style CPS transformation for this extension, and verify that the translation preserves simple typing. We establish the simulation properties of this transformation in an untyped setting and relate it to a two stage transformation that implements the monadic abstraction with thunks and introduces continuations in a second step. Furthermore, we give a direct style translation which corresponds to the monadic translation.
机译:CPS转换是功能编程语言编译中的重要工具。对于严格的语言(例如我们的Web编程语言“ Rinso”或Microsoft的F#),单子表达式可以帮助结构化和组合计算。rn要在这种语言的编译过程中应用CPS转换,我们将显式单子抽象集成到一个调用中,值源语言,为此扩展名提供Danvy-Filinski样式的CPS转换,并验证翻译是否保留简单的键入。我们在无类型的环境中建立此转换的仿真属性,并将其与两阶段转换相关联,该转换实现带有重击的单子抽象,并在第二步中引入延续。此外,我们给出了与单声道翻译相对应的直接样式翻译。

著录项

  • 来源
    《Compiler construction》|2009年|266-280|共15页
  • 会议地点 York(GB);York(GB);York(GB);York(GB)
  • 作者单位

    Institut fuer Informatik, Universitaet Freiburg, Georges-Koehler-Allee 079 79110 Freiburg, Germany;

    Institut fuer Informatik, Universitaet Freiburg, Georges-Koehler-Allee 079 79110 Freiburg, Germany;

  • 会议组织
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类 计算机软件;
  • 关键词

  • 入库时间 2022-08-26 13:58:37

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号