首页 > 最新文献

CoRR最新文献

英文 中文
FreeST: Context-free Session Types in a Functional Language 函数式语言中与上下文无关的会话类型
Pub Date : 2019-04-02 DOI: 10.4204/EPTCS.291.2
Bernardo Almeida, Andreia Mordido, V. Vasconcelos
FreeST is an experimental concurrent programming language. Based on a core linear functional programming language, it features primitives to fork new threads, and for channel creation and communication. A powerful type system of context-free session types governs the interaction on channels. The compiler builds on a novel algorithm for deciding type equivalence of context-free session types. This abstract provides a gentle introduction to the language and discusses the validation process and runtime system.
FreeST是一种实验性的并发编程语言。它以核心线性函数式编程语言为基础,具有派生新线程、创建通道和通信的原语。一个强大的与上下文无关的会话类型系统控制着通道上的交互。编译器建立在一种新的算法上,用于确定上下文无关会话类型的类型等价性。本文简要介绍了该语言,并讨论了验证过程和运行时系统。
{"title":"FreeST: Context-free Session Types in a Functional Language","authors":"Bernardo Almeida, Andreia Mordido, V. Vasconcelos","doi":"10.4204/EPTCS.291.2","DOIUrl":"https://doi.org/10.4204/EPTCS.291.2","url":null,"abstract":"FreeST is an experimental concurrent programming language. Based on a core linear functional programming language, it features primitives to fork new threads, and for channel creation and communication. A powerful type system of context-free session types governs the interaction on channels. The compiler builds on a novel algorithm for deciding type equivalence of context-free session types. This abstract provides a gentle introduction to the language and discusses the validation process and runtime system.","PeriodicalId":10720,"journal":{"name":"CoRR","volume":"16 1","pages":"12-23"},"PeriodicalIF":0.0,"publicationDate":"2019-04-02","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"82556741","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 8
A Category Theoretic Interpretation of Gandy's Principles for Mechanisms 甘迪力学原理的范畴论解释
Pub Date : 2019-02-01 DOI: 10.4204/EPTCS.293.7
Joseph Razavi, A. Schalk
Based on Gandy's principles for models of computation we give category-theoretic axioms describing locally deterministic updates to finite objects. Rather than fixing a particular category of states, we describe what properties such a category should have. The computation is modelled by a functor that encodes updating the computation, and we give an abstract account of such functors. We show that every updating functor satisfying our conditions is computable.
基于Gandy的计算模型原理,给出了描述有限对象局部确定性更新的范畴论公理。我们不是固定一个特定的状态类别,而是描述这样一个类别应该具有什么属性。计算用一个对更新计算进行编码的函子来建模,并给出了这些函子的抽象描述。我们证明了每一个满足条件的更新函子都是可计算的。
{"title":"A Category Theoretic Interpretation of Gandy's Principles for Mechanisms","authors":"Joseph Razavi, A. Schalk","doi":"10.4204/EPTCS.293.7","DOIUrl":"https://doi.org/10.4204/EPTCS.293.7","url":null,"abstract":"Based on Gandy's principles for models of computation we give category-theoretic axioms describing locally deterministic updates to finite objects. Rather than fixing a particular category of states, we describe what properties such a category should have. The computation is modelled by a functor that encodes updating the computation, and we give an abstract account of such functors. We show that every updating functor satisfying our conditions is computable.","PeriodicalId":10720,"journal":{"name":"CoRR","volume":"70 1","pages":"85-92"},"PeriodicalIF":0.0,"publicationDate":"2019-02-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"86637559","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 2
Universal Properties in Quantum Theory 量子理论中的普遍属性
Pub Date : 2019-01-29 DOI: 10.4204/EPTCS.287.12
Mathieu Huot, S. Staton
We argue that notions in quantum theory should have universal properties in the sense of category theory. We consider the completely positive trace preserving (CPTP) maps, the basic notion of quantum channel. Physically, quantum channels are derived from pure quantum theory by allowing discarding. We phrase this in category theoretic terms by showing that the category of CPTP maps is the universal monoidal category with a terminal unit that has a functor from the category of isometries. In other words, the CPTP maps are the affine reflection of the isometries.
我们认为量子论中的概念应该具有范畴论意义上的普遍性质。考虑了量子信道的基本概念——完全正迹保持(CPTP)映射。物理上,量子信道是通过允许丢弃从纯量子理论推导出来的。我们用范畴论的术语来表述这一点,证明了CPTP映射的范畴是具有一个终端单位的泛一元范畴,这个终端单位有一个来自等距范畴的函子。换句话说,CPTP映射是等距线的仿射反射。
{"title":"Universal Properties in Quantum Theory","authors":"Mathieu Huot, S. Staton","doi":"10.4204/EPTCS.287.12","DOIUrl":"https://doi.org/10.4204/EPTCS.287.12","url":null,"abstract":"We argue that notions in quantum theory should have universal properties in the sense of category theory. We consider the completely positive trace preserving (CPTP) maps, the basic notion of quantum channel. Physically, quantum channels are derived from pure quantum theory by allowing discarding. We phrase this in category theoretic terms by showing that the category of CPTP maps is the universal monoidal category with a terminal unit that has a functor from the category of isometries. In other words, the CPTP maps are the affine reflection of the isometries.","PeriodicalId":10720,"journal":{"name":"CoRR","volume":"55 11","pages":"213-223"},"PeriodicalIF":0.0,"publicationDate":"2019-01-29","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"91485893","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 18
Interactions between Causal Structures in Graph Rewriting Systems 图重写系统中因果结构之间的相互作用
Pub Date : 2019-01-03 DOI: 10.4204/EPTCS.286.6
Ioana Cristescu, W. Fontana, J. Krivine
Graph rewrite formalisms are a powerful approach to modeling complex molecular systems. They capture the intrinsic concurrency of molecular interactions, thereby enabling a formal notion of mechanism (a partially ordered set of events) that explains how a system achieves a particular outcome given a set of rewrite rules. It is then useful to verify whether the mechanisms that emerge from a given model comply with empirical observations about their mutual interference. In this work, our objective is to determine whether a specific event in the mechanism for achieving X prevents or promotes the occurrence of a specific event in the mechanism for achieving Y. Such checks might also be used to hypothesize rules that would bring model mechanisms in compliance with observations. We define a rigorous framework for defining the concept of interference (positive or negative) between mechanisms induced by a system of graph-rewrite rules and for establishing whether an asserted influence can be realized given two mechanisms as an input.
图形重写形式化是建模复杂分子系统的一种强大方法。它们捕获了分子相互作用的内在并发性,从而实现了机制的正式概念(部分有序的事件集),解释了系统如何在给定一组重写规则的情况下实现特定结果。然后,验证从给定模型中出现的机制是否符合关于它们相互干扰的经验观察是有用的。在这项工作中,我们的目标是确定实现X的机制中的特定事件是否会阻止或促进实现y的机制中特定事件的发生。此类检查也可用于假设规则,使模型机制符合观察结果。我们定义了一个严格的框架,用于定义由图形重写规则系统诱导的机制之间的干扰(积极或消极)概念,并用于确定给定两种机制作为输入是否可以实现断言的影响。
{"title":"Interactions between Causal Structures in Graph Rewriting Systems","authors":"Ioana Cristescu, W. Fontana, J. Krivine","doi":"10.4204/EPTCS.286.6","DOIUrl":"https://doi.org/10.4204/EPTCS.286.6","url":null,"abstract":"Graph rewrite formalisms are a powerful approach to modeling complex molecular systems. They capture the intrinsic concurrency of molecular interactions, thereby enabling a formal notion of mechanism (a partially ordered set of events) that explains how a system achieves a particular outcome given a set of rewrite rules. It is then useful to verify whether the mechanisms that emerge from a given model comply with empirical observations about their mutual interference. In this work, our objective is to determine whether a specific event in the mechanism for achieving X prevents or promotes the occurrence of a specific event in the mechanism for achieving Y. Such checks might also be used to hypothesize rules that would bring model mechanisms in compliance with observations. We define a rigorous framework for defining the concept of interference (positive or negative) between mechanisms induced by a system of graph-rewrite rules and for establishing whether an asserted influence can be realized given two mechanisms as an input.","PeriodicalId":10720,"journal":{"name":"CoRR","volume":"51 1","pages":"65-78"},"PeriodicalIF":0.0,"publicationDate":"2019-01-03","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"79394464","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 1
Interventionist Counterfactuals on Causal Teams 因果团队的干预主义反事实
Pub Date : 2019-01-03 DOI: 10.4204/EPTCS.286.2
Fausto Barbero, G. Sandu
We introduce an extension of team semantics which provides a framework for the logic of manipulationist theories of causation based on structural equation models, such as Woodward's and Pearl's; our causal teams incorporate (partial or total) information about functional dependencies that are invariant under interventions. We give a unified treatment of observational and causal aspects of causal models by isolating two operators on causal teams which correspond, respectively, to conditioning and to interventionist counterfactual implication. We then introduce formal languages for deterministic and probabilistic causal discourse, and show how various notions of cause (e.g. direct and total causes) may be defined in them. Through the tuning of various constraints on structural equations (recursivity, existence and uniqueness of solutions, full or partial definition of the functions), our framework can capture different causal models. We give an overview of the inferential aspects of the recursive, fully defined case; and we dedicate some attention to the recursive, partially defined case, which involves a shift of attention towards nonclassical truth values.
我们引入了团队语义的扩展,为基于结构方程模型(如Woodward's和Pearl's)的操纵主义因果理论的逻辑提供了一个框架;我们的因果团队包含(部分或全部)关于在干预下不变的功能依赖的信息。我们给出了因果模型的观察和因果方面的统一处理,通过隔离因果团队上的两个操作符,分别对应于条件作用和干预主义反事实含义。然后,我们介绍了确定性和概率因果话语的形式语言,并展示了如何在其中定义各种原因概念(例如直接原因和总原因)。通过调整结构方程的各种约束(递归性、解的存在唯一性、函数的全部或部分定义),我们的框架可以捕获不同的因果模型。我们给出了递归推理方面的概述,完全定义的情况;我们把注意力集中在递归的,部分定义的情况下,它涉及到注意力向非经典真值的转移。
{"title":"Interventionist Counterfactuals on Causal Teams","authors":"Fausto Barbero, G. Sandu","doi":"10.4204/EPTCS.286.2","DOIUrl":"https://doi.org/10.4204/EPTCS.286.2","url":null,"abstract":"We introduce an extension of team semantics which provides a framework for the logic of manipulationist theories of causation based on structural equation models, such as Woodward's and Pearl's; our causal teams incorporate (partial or total) information about functional dependencies that are invariant under interventions. We give a unified treatment of observational and causal aspects of causal models by isolating two operators on causal teams which correspond, respectively, to conditioning and to interventionist counterfactual implication. We then introduce formal languages for deterministic and probabilistic causal discourse, and show how various notions of cause (e.g. direct and total causes) may be defined in them. \u0000Through the tuning of various constraints on structural equations (recursivity, existence and uniqueness of solutions, full or partial definition of the functions), our framework can capture different causal models. We give an overview of the inferential aspects of the recursive, fully defined case; and we dedicate some attention to the recursive, partially defined case, which involves a shift of attention towards nonclassical truth values.","PeriodicalId":10720,"journal":{"name":"CoRR","volume":"8 1","pages":"16-30"},"PeriodicalIF":0.0,"publicationDate":"2019-01-03","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"78608275","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 12
Causality Analysis for Concurrent Reactive Systems (Extended Abstract) 并发反应系统的因果分析(扩展摘要)
Pub Date : 2019-01-03 DOI: 10.4204/EPTCS.286.3
Rayna Dimitrova, R. Majumdar, Vinayak S. Prabhu
We present a comprehensive language theoretic causality analysis framework for explaining safety property violations in the setting of concurrent reactive systems. Our framework allows us to uniformly express a number of causality notions studied in the areas of artificial intelligence and formal methods, as well as define new ones that are of potential interest in these areas. Furthermore, our formalization provides means for reasoning about the relationships between individual notions which have mostly been considered independently in prior work; and allows us to judge the appropriateness of the different definitions for various applications in system design. In particular, we consider causality analysis notions for debugging, error resilience, and liability resolution in concurrent reactive systems. Finally, we present automata-based algorithms for computing various causal sets based on our language-theoretic encoding, and derive the algorithmic complexities.
我们提出了一个全面的语言理论因果分析框架来解释并发反应系统设置中的安全属性违规。我们的框架允许我们统一表达人工智能和形式化方法领域中研究的许多因果关系概念,以及定义这些领域中有潜在兴趣的新概念。此外,我们的形式化提供了推理单个概念之间关系的方法,这些概念在以前的工作中大多是独立考虑的;并允许我们判断不同定义在系统设计中的各种应用的适当性。特别地,我们考虑了并发反应系统中调试、错误恢复和责任解决的因果关系分析概念。最后,我们提出了基于自动机的算法来计算基于语言理论编码的各种因果集,并推导了算法的复杂度。
{"title":"Causality Analysis for Concurrent Reactive Systems (Extended Abstract)","authors":"Rayna Dimitrova, R. Majumdar, Vinayak S. Prabhu","doi":"10.4204/EPTCS.286.3","DOIUrl":"https://doi.org/10.4204/EPTCS.286.3","url":null,"abstract":"We present a comprehensive language theoretic causality analysis framework for explaining safety property violations in the setting of concurrent reactive systems. Our framework allows us to uniformly express a number of causality notions studied in the areas of artificial intelligence and formal methods, as well as define new ones that are of potential interest in these areas. Furthermore, our formalization provides means for reasoning about the relationships between individual notions which have mostly been considered independently in prior work; and allows us to judge the appropriateness of the different definitions for various applications in system design. In particular, we consider causality analysis notions for debugging, error resilience, and liability resolution in concurrent reactive systems. Finally, we present automata-based algorithms for computing various causal sets based on our language-theoretic encoding, and derive the algorithmic complexities.","PeriodicalId":10720,"journal":{"name":"CoRR","volume":"7 1","pages":"31-33"},"PeriodicalIF":0.0,"publicationDate":"2019-01-03","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"84083091","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 6
Causality for General LTL-definable Properties 一般ltl可定义属性的因果关系
Pub Date : 2019-01-03 DOI: 10.4204/EPTCS.286.1
Georgiana Caltais, Sophie Linnea Guetlein, S. Leue
In this paper we provide a notion of causality for the violation of general Linear Temporal Logic (LTL) properties. The current work is a natural extension of the previously proposed approach handling causality in the context of LTL-definable safety properties. The major difference is that now, counterexamples of general LTL properties are not merely finite traces, but infinite lasso-shaped traces. We analyze such infinite counterexamples and identify the relevant ordered occurrences of causal events, obtained by unfolding the looping part of the lasso shaped counterexample sufficiently many times. The focus is on LTL properties from practical considerations: the current results are to be implemented in QuantUM, a tool for causality checking, that exploits explicit state LTL model checking.
本文给出了违反一般线性时间逻辑(LTL)性质的因果关系概念。当前的工作是先前提出的在ltl可定义的安全属性上下文中处理因果关系的方法的自然扩展。主要的区别在于,现在,一般LTL属性的反例不仅仅是有限的轨迹,而是无限的套索形轨迹。我们分析了这样的无限反例,并通过充分多次展开套索形反例的循环部分来识别因果事件的相关有序发生。重点是从实际考虑LTL属性:当前结果将在QuantUM中实现,这是一个用于因果关系检查的工具,它利用显式状态LTL模型检查。
{"title":"Causality for General LTL-definable Properties","authors":"Georgiana Caltais, Sophie Linnea Guetlein, S. Leue","doi":"10.4204/EPTCS.286.1","DOIUrl":"https://doi.org/10.4204/EPTCS.286.1","url":null,"abstract":"In this paper we provide a notion of causality for the violation of general Linear Temporal Logic (LTL) properties. The current work is a natural extension of the previously proposed approach handling causality in the context of LTL-definable safety properties. The major difference is that now, counterexamples of general LTL properties are not merely finite traces, but infinite lasso-shaped traces. We analyze such infinite counterexamples and identify the relevant ordered occurrences of causal events, obtained by unfolding the looping part of the lasso shaped counterexample sufficiently many times. The focus is on LTL properties from practical considerations: the current results are to be implemented in QuantUM, a tool for causality checking, that exploits explicit state LTL model checking.","PeriodicalId":10720,"journal":{"name":"CoRR","volume":"1 1","pages":"1-15"},"PeriodicalIF":0.0,"publicationDate":"2019-01-03","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"86505778","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 6
Proceedings 3rd Workshop on formal reasoning about Causation, Responsibility, and Explanations in Science and Technology, CREST@ETAPS 2018, Thessaloniki, Greece, 21st April 2018 第三届科学技术因果关系、责任和解释形式推理研讨会论文集,CREST@ETAPS 2018,塞萨洛尼基,希腊,2018年4月21日
Pub Date : 2019-01-01 DOI: 10.4204/EPTCS.286
B. Finkbeiner, Samantha Kleinberg
The CREST 2018 workshop is the third in a series of workshops addressing formal approaches to reasoning about causation in systems engineering. The topic of formally identifying the cause(s) of specific events - usually some form of failures -, and explaining why they occurred, are increasingly in the focus of several, disjoint communities. The main objective of CREST is to bring together researchers and practitioners from industry and academia in order to enable discussions how explicit and implicit reasoning about causation is performed. A further objective is to link to the foundations of causal reasoning in the philosophy of sciences and to causal reasoning performed in other areas of computer science, engineering, and beyond.
CREST 2018研讨会是讨论系统工程中因果关系推理的正式方法的系列研讨会中的第三个。正式确定特定事件(通常是某种形式的失败)的原因,并解释它们发生的原因,这一主题日益成为几个互不相关的社区关注的焦点。CREST的主要目标是将来自工业界和学术界的研究人员和实践者聚集在一起,以便能够讨论关于因果关系的显性和隐性推理是如何进行的。进一步的目标是将科学哲学中的因果推理基础与计算机科学、工程等其他领域的因果推理联系起来。
{"title":"Proceedings 3rd Workshop on formal reasoning about Causation, Responsibility, and Explanations in Science and Technology, CREST@ETAPS 2018, Thessaloniki, Greece, 21st April 2018","authors":"B. Finkbeiner, Samantha Kleinberg","doi":"10.4204/EPTCS.286","DOIUrl":"https://doi.org/10.4204/EPTCS.286","url":null,"abstract":"The CREST 2018 workshop is the third in a series of workshops addressing formal approaches to reasoning about causation in systems engineering. The topic of formally identifying the cause(s) of specific events - usually some form of failures -, and explaining why they occurred, are increasingly in the focus of several, disjoint communities. The main objective of CREST is to bring together researchers and practitioners from industry and academia in order to enable discussions how explicit and implicit reasoning about causation is performed. A further objective is to link to the foundations of causal reasoning in the philosophy of sciences and to causal reasoning performed in other areas of computer science, engineering, and beyond.","PeriodicalId":10720,"journal":{"name":"CoRR","volume":"5 1","pages":""},"PeriodicalIF":0.0,"publicationDate":"2019-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"76398746","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 2
Eff Directly in OCaml 直接在OCaml中
Pub Date : 2018-12-31 DOI: 10.4204/EPTCS.285.2
O. Kiselyov, K. Sivaramakrishnan
The language Eff is an OCaml-like language serving as a prototype implementation of the theory of algebraic effects, intended for experimentation with algebraic effects on a large scale. We present the embedding of Eff into OCaml, using the library of delimited continuations or the multicore OCaml branch. We demonstrate the correctness of the embedding denotationally, relying on the tagless-final-style interpreter-based denotational semantics, including the novel, direct denotational semantics of multi-prompt delimited control. The embedding is systematic, lightweight, performant and supports even higher-order, 'dynamic' effects with their polymorphism. OCaml thus may be regarded as another implementation of Eff, broadening the scope and appeal of that language.
Eff语言是一种类似ocaml的语言,作为代数效应理论的原型实现,用于大规模的代数效应实验。我们将Eff嵌入到OCaml中,使用分隔延续库或多核OCaml分支。我们在指称语义上证明了嵌入的正确性,依赖于无标签式的基于解释器的指称语义,包括多提示分隔控制的新颖的、直接的指称语义。这种嵌入是系统化的、轻量级的、高性能的,并且通过其多态性支持更高阶的“动态”效果。因此,OCaml可以被视为Eff的另一种实现,扩大了该语言的范围和吸引力。
{"title":"Eff Directly in OCaml","authors":"O. Kiselyov, K. Sivaramakrishnan","doi":"10.4204/EPTCS.285.2","DOIUrl":"https://doi.org/10.4204/EPTCS.285.2","url":null,"abstract":"The language Eff is an OCaml-like language serving as a prototype implementation of the theory of algebraic effects, intended for experimentation with algebraic effects on a large scale. \u0000We present the embedding of Eff into OCaml, using the library of delimited continuations or the multicore OCaml branch. We demonstrate the correctness of the embedding denotationally, relying on the tagless-final-style interpreter-based denotational semantics, including the novel, direct denotational semantics of multi-prompt delimited control. The embedding is systematic, lightweight, performant and supports even higher-order, 'dynamic' effects with their polymorphism. OCaml thus may be regarded as another implementation of Eff, broadening the scope and appeal of that language.","PeriodicalId":10720,"journal":{"name":"CoRR","volume":"7 1","pages":"23-58"},"PeriodicalIF":0.0,"publicationDate":"2018-12-31","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"89811263","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 40
Sundials/ML: Connecting OCaml to the Sundials Numeric Solvers 日晷/ML:将OCaml连接到日晷数字求解器
Pub Date : 2018-12-31 DOI: 10.4204/EPTCS.285.4
T. Bourke, Jun Inoue, Marc Pouzet
This paper describes the design and implementation of a comprehensive OCaml interface to the Sundials library of numeric solvers for ordinary differential equations, differential algebraic equations, and non-linear equations. The interface provides a convenient and memory-safe alternative to using Sundials directly from C and facilitates application development by integrating with higher-level language features, like garbage-collected memory management, algebraic data types, and exceptions. Our benchmark results suggest that the interface overhead is acceptable: the standard examples are rarely twice as slow in OCaml than in C, and often less than 50% slower. The challenges in interfacing with Sundials are to efficiently and safely share data structures between OCaml and C, to support multiple implementations of vector operations and linear solvers through a common interface, and to manage calls and error signalling to and from OCaml. We explain how we overcame these difficulties using a combination of standard techniques such as phantom types and polymorphic variants, and carefully crafted data representations.
本文描述了一个全面的OCaml接口的设计和实现,该接口用于Sundials库的常微分方程,微分代数方程和非线性方程的数值求解器。该接口为直接从C中使用Sundials提供了一种方便且内存安全的替代方案,并通过集成更高级的语言特性(如垃圾收集内存管理、代数数据类型和异常)来促进应用程序开发。我们的基准测试结果表明接口开销是可以接受的:OCaml中的标准示例很少比C中的慢两倍,并且通常慢不到50%。与Sundials接口的挑战是在OCaml和C之间高效安全地共享数据结构,通过公共接口支持向量操作和线性求解器的多种实现,以及管理与OCaml之间的调用和错误信号。我们解释了如何使用诸如幻影类型和多态变体等标准技术以及精心制作的数据表示的组合来克服这些困难。
{"title":"Sundials/ML: Connecting OCaml to the Sundials Numeric Solvers","authors":"T. Bourke, Jun Inoue, Marc Pouzet","doi":"10.4204/EPTCS.285.4","DOIUrl":"https://doi.org/10.4204/EPTCS.285.4","url":null,"abstract":"This paper describes the design and implementation of a comprehensive OCaml interface to the Sundials library of numeric solvers for ordinary differential equations, differential algebraic equations, and non-linear equations. The interface provides a convenient and memory-safe alternative to using Sundials directly from C and facilitates application development by integrating with higher-level language features, like garbage-collected memory management, algebraic data types, and exceptions. Our benchmark results suggest that the interface overhead is acceptable: the standard examples are rarely twice as slow in OCaml than in C, and often less than 50% slower. The challenges in interfacing with Sundials are to efficiently and safely share data structures between OCaml and C, to support multiple implementations of vector operations and linear solvers through a common interface, and to manage calls and error signalling to and from OCaml. We explain how we overcame these difficulties using a combination of standard techniques such as phantom types and polymorphic variants, and carefully crafted data representations.","PeriodicalId":10720,"journal":{"name":"CoRR","volume":"25 1","pages":"101-130"},"PeriodicalIF":0.0,"publicationDate":"2018-12-31","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"80511071","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 1
期刊
CoRR
全部 Acc. Chem. Res. ACS Applied Bio Materials ACS Appl. Electron. Mater. ACS Appl. Energy Mater. ACS Appl. Mater. Interfaces ACS Appl. Nano Mater. ACS Appl. Polym. Mater. ACS BIOMATER-SCI ENG ACS Catal. ACS Cent. Sci. ACS Chem. Biol. ACS Chemical Health & Safety ACS Chem. Neurosci. ACS Comb. Sci. ACS Earth Space Chem. ACS Energy Lett. ACS Infect. Dis. ACS Macro Lett. ACS Mater. Lett. ACS Med. Chem. Lett. ACS Nano ACS Omega ACS Photonics ACS Sens. ACS Sustainable Chem. Eng. ACS Synth. Biol. Anal. Chem. BIOCHEMISTRY-US Bioconjugate Chem. BIOMACROMOLECULES Chem. Res. Toxicol. Chem. Rev. Chem. Mater. CRYST GROWTH DES ENERG FUEL Environ. Sci. Technol. Environ. Sci. Technol. Lett. Eur. J. Inorg. Chem. IND ENG CHEM RES Inorg. Chem. J. Agric. Food. Chem. J. Chem. Eng. Data J. Chem. Educ. J. Chem. Inf. Model. J. Chem. Theory Comput. J. Med. Chem. J. Nat. Prod. J PROTEOME RES J. Am. Chem. Soc. LANGMUIR MACROMOLECULES Mol. Pharmaceutics Nano Lett. Org. Lett. ORG PROCESS RES DEV ORGANOMETALLICS J. Org. Chem. J. Phys. Chem. J. Phys. Chem. A J. Phys. Chem. B J. Phys. Chem. C J. Phys. Chem. Lett. Analyst Anal. Methods Biomater. Sci. Catal. Sci. Technol. Chem. Commun. Chem. Soc. Rev. CHEM EDUC RES PRACT CRYSTENGCOMM Dalton Trans. Energy Environ. Sci. ENVIRON SCI-NANO ENVIRON SCI-PROC IMP ENVIRON SCI-WAT RES Faraday Discuss. Food Funct. Green Chem. Inorg. Chem. Front. Integr. Biol. J. Anal. At. Spectrom. J. Mater. Chem. A J. Mater. Chem. B J. Mater. Chem. C Lab Chip Mater. Chem. Front. Mater. Horiz. MEDCHEMCOMM Metallomics Mol. Biosyst. Mol. Syst. Des. Eng. Nanoscale Nanoscale Horiz. Nat. Prod. Rep. New J. Chem. Org. Biomol. Chem. Org. Chem. Front. PHOTOCH PHOTOBIO SCI PCCP Polym. Chem.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1