首页> 外文会议>International workshop on functional and constraint logic programming >Mixed-Level Embedding and JIT Compilation for an Iteratively Staged DSL
【24h】

Mixed-Level Embedding and JIT Compilation for an Iteratively Staged DSL

机译:用于迭代阶段DSL的混合级嵌入和JIT编译

获取原文

摘要

This paper explores how to implement an iteratively staged domain-specific language (DSL) by embedding into a functional language. The domain is modelling and simulation of physical systems where models are expressed in terms of non-causal differential-algebraic equations; i.e., sets of constraints solved through numerical simulation. What distinguishes our language is that the equational constraints are first class entities allowing for an evolving model structure characterised by repeated generation of updated constraints. Hence iteratively staged. Our DSL can thus be seen as a combined functional and constraint programming language, albeit a two-level one, with the functional language chiefly serving as a meta language. However, the two levels do interact throughout the simulation. The embedding strategy we pursue is a mixture of deep and shallow, with the deep embedding enabling just-in-time (JIT) compilation of the constraints as they are generated for efficiency, while the shallow embedding is used for the remainder for maximum leverage of the host language. The paper is organised around a specific DSL, but our implementation strategy should be applicable for iteratively staged languages in general. Our DSL itself is further a novel variation of a declarative constraint programming language.
机译:本文探讨如何通过将迭代阶段特定的域名语言(DSL)嵌入到功能语言中实现。该域是在非因果差分代数方程中表达模型的物理系统的建模和仿真;即,通过数值模拟解决的约束组。我们的语言区分的是,等级约束是第一类实体,允许演进的模型结构,其特征在于重复产生更新的约束。因此迭代地上演。因此,我们的DSL可以被视为组合的功能和约束编程语言,尽管是一个二级的功能和约束编程语言,功能语言主要用作元语言。但是,两个级别在整个模拟中都进行交互。我们追求的嵌入策略是深且浅的混合,深度嵌入能够立即(JIT)编制限制为效率,而浅嵌入用于最大杠杆的剩余时间主机语言。本文围绕特定的DSL组织,但我们的实施策略应该适用于迭代阶段的语言。我们的DSL本身进一步是陈述规则规划语言的新改变。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号