并发对象的多方兼容性

IF 0.1 4区 历史学 0 ARCHAEOLOGY
R. Perera, J. Lange, S. Gay
{"title":"并发对象的多方兼容性","authors":"R. Perera, J. Lange, S. Gay","doi":"10.4204/EPTCS.211.8","DOIUrl":null,"url":null,"abstract":"Objects and actors are communicating state machines, offering and consuming different services at \ndifferent points in their lifecycle. Two complementary challenges arise when programming such \nsystems. When objects interact, their state machines must be “compatible”, so that services are \nrequested only when they are available. Dually, when objects refine other objects, their state machines \nmust be “compliant”, so that services are honoured whenever they are promised. \nIn this paper we show how the idea of multiparty compatibility from the session types literature \ncan be applied to both of these problems. We present an untyped language in which concurrent objects \nare checked automatically for compatibility and compliance. For simple objects, checking can be \nexhaustive and has the feel of a type system. More complex objects can be partially validated via test \ncases, leading to a methodology closer to continuous testing. Our proof-of-concept implementation \nis limited in some important respects, but demonstrates the potential value of the approach and the \nrelationship to existing software development practices.","PeriodicalId":53164,"journal":{"name":"Journal of Historic Buildings and Places","volume":"90 1","pages":"73-82"},"PeriodicalIF":0.1000,"publicationDate":"2016-06-20","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"10","resultStr":"{\"title\":\"Multiparty Compatibility for Concurrent Objects\",\"authors\":\"R. Perera, J. Lange, S. Gay\",\"doi\":\"10.4204/EPTCS.211.8\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Objects and actors are communicating state machines, offering and consuming different services at \\ndifferent points in their lifecycle. Two complementary challenges arise when programming such \\nsystems. When objects interact, their state machines must be “compatible”, so that services are \\nrequested only when they are available. Dually, when objects refine other objects, their state machines \\nmust be “compliant”, so that services are honoured whenever they are promised. \\nIn this paper we show how the idea of multiparty compatibility from the session types literature \\ncan be applied to both of these problems. We present an untyped language in which concurrent objects \\nare checked automatically for compatibility and compliance. For simple objects, checking can be \\nexhaustive and has the feel of a type system. More complex objects can be partially validated via test \\ncases, leading to a methodology closer to continuous testing. Our proof-of-concept implementation \\nis limited in some important respects, but demonstrates the potential value of the approach and the \\nrelationship to existing software development practices.\",\"PeriodicalId\":53164,\"journal\":{\"name\":\"Journal of Historic Buildings and Places\",\"volume\":\"90 1\",\"pages\":\"73-82\"},\"PeriodicalIF\":0.1000,\"publicationDate\":\"2016-06-20\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"10\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Journal of Historic Buildings and Places\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.4204/EPTCS.211.8\",\"RegionNum\":4,\"RegionCategory\":\"历史学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"0\",\"JCRName\":\"ARCHAEOLOGY\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of Historic Buildings and Places","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.4204/EPTCS.211.8","RegionNum":4,"RegionCategory":"历史学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"0","JCRName":"ARCHAEOLOGY","Score":null,"Total":0}
引用次数: 10

摘要

对象和参与者是相互通信的状态机,在其生命周期的不同点提供和消费不同的服务。在对这样的系统进行编程时,会出现两个互补的挑战。当对象交互时,它们的状态机必须是“兼容的”,这样服务只有在可用时才会被请求。双重地,当对象改进其他对象时,它们的状态机必须是“兼容的”,这样服务在被承诺时就会得到尊重。在本文中,我们展示了如何将会话类型文献中的多方兼容性思想应用于这两个问题。我们提出了一种无类型语言,其中并发对象自动检查兼容性和遵从性。对于简单的对象,检查可能是详尽的,并且具有类型系统的感觉。更复杂的对象可以通过测试用例进行部分验证,从而形成一种更接近连续测试的方法。我们的概念验证实现在一些重要方面是有限的,但是展示了该方法的潜在价值以及与现有软件开发实践的关系。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Multiparty Compatibility for Concurrent Objects
Objects and actors are communicating state machines, offering and consuming different services at different points in their lifecycle. Two complementary challenges arise when programming such systems. When objects interact, their state machines must be “compatible”, so that services are requested only when they are available. Dually, when objects refine other objects, their state machines must be “compliant”, so that services are honoured whenever they are promised. In this paper we show how the idea of multiparty compatibility from the session types literature can be applied to both of these problems. We present an untyped language in which concurrent objects are checked automatically for compatibility and compliance. For simple objects, checking can be exhaustive and has the feel of a type system. More complex objects can be partially validated via test cases, leading to a methodology closer to continuous testing. Our proof-of-concept implementation is limited in some important respects, but demonstrates the potential value of the approach and the relationship to existing software development practices.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信