首页> 外文期刊>Electronic Notes in Theoretical Computer Science >Equational Logic and Categorical Semantics for Multi-Languages
【24h】

Equational Logic and Categorical Semantics for Multi-Languages

机译:多语言的等式逻辑和分类语义

获取原文
           

摘要

Programming language interoperability is the capability of two programming languages to interact as parts of a single system. Each language may be optimized for specific tasks, and a programmer can take advantage of this. HTML, CSS, and JavaScript yield a form of interoperability, working in conjunction to render webpages. Some object oriented languages have interoperability via a virtual machine host (.NET CLI compliant languages in the Common Language Runtime, and JVM compliant languages in the Java Virtual Machine). A high-level language can interact with a lower level one (Apple's Swift and Objective-C). While there has been some research exploring the interoperability mechanisms (Section 1) there is little development of theoretical foundations. This paper presents an approach to interoperability based around theories of equational logic, and categorical semantics.We give ways in which two languages can be blended, and interoperability reasoned about using equations over the blended language. Formally,multi-language equational logicis defined within which one may deduce valid equations starting from a collection of axioms that postulate properties of the combined language. Thus we have the notion of amulti-language theoryand much of the paper is devoted to exploring the properties of these theories. This is accomplished by way ofcategory theory, giving us a very general and flexible semantics, and hence a nice collection of models. Classifying categories are constructed, and hence equational theories furnish each categorical model with an internal language; from this we can also establish soundness and completeness. A set-theoretic semantics follows as an instance, itself sound and complete. The categorical semantics is based on some pre-existing research, but we give a presentation that we feel is easier and simpler to work with, improves and mildly extends current research, and in particular is well suited to computer scientists. Throughout the paper we prove some interesting properties of the new semantic machinery. We provide a small running example throughout the paper to illustrate our ideas, and a more complex example in conclusion.
机译:编程语言互操作性是两个编程语言的能力,以作为单个系统的一部分交互。可以针对特定任务进行优化各种语言,程序员可以利用此功能。 HTML,CSS和JavaScript产生了一种互操作性的形式,结合工作以呈现网页。某些面向对象语言通过虚拟机主机(在公共语言运行时的.NET CLI兼容语言中具有互操作性,Java虚拟机中的JVM兼容语言)。高级语言可以与较低级别的互动(Apple的Swift和Objective-C)进行交互。虽然有一些研究探索互操作性机制(第1节)的理论基础几乎没有发展。本文介绍了基于等式逻辑理论的互操作性,以及分类语义。我们提供了可以混合两种语言的方式,以及在混合语言上使用方程式的互操作性。正式地,定义的多语言公制逻辑定义在其中,可以从中集合从一系列公理的集合中发出有效的等式,这些公理的组合语言的属性。因此,我们的概念概念致力于探索这些理论的性质。这是通过类别的理论来实现的,给我们一个非常一般和灵活的语义,因此是一个很好的模型集合。构建分类类别,因此等实际理论使用内部语言提供每个分类模型;从这一点,我们也可以建立声音和完整性。一个设置的理论语义如下所示,它本身并完成。分类语义基于一些预先存在的研究,但我们介绍了我们的觉得更容易,更简单地与,改进和轻度扩展当前的研究,特别适用于计算机科学家。在整个论文中,我们证明了新的语义机械的一些有趣的财产。我们在整个论文中提供了一个小型跑步例子来说明我们的想法,以及一个更复杂的例子。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号