Scala对象通信

B. Sufrin
{"title":"Scala对象通信","authors":"B. Sufrin","doi":"10.3233/978-1-58603-907-3-35","DOIUrl":null,"url":null,"abstract":"In this paper we introduce the core features of CSO (Communicating Scala Objects) - a notationally convenient embedding of the essence of occam in a mod- ern, generically typed, object-oriented programming language that is compiled to Java Virtual Machine (JVM) code. Initially inspired by an early release of JCSP, CSO goes beyond JCSP expressively in some respects, including the provision of a unitary ex- tended rendezvous notation and appropriate treatment of subtype variance in channels and ports. Similarities with recent versions of JCSP include the treatment of channel ends (we call them ports) as parameterized types. Ports and channels may be trans- mitted on channels (including inter-JVM channels), provided that an obvious design rule - the ownership rule - is obeyed. Significant differences with recent versions of JCSP include a treatment of network termination that is significantly simpler than the \"poisoning\" approach (perhaps at the cost of reduced programming convenience), and the provision of a family of type-parameterized channel implementations with perfor- mance that obviates the need for the special-purpose scalar-typed channel implemen- tations provided by JCSP. On standard benchmarks such as Commstime, CSO com- munication performance is close to or better than that of JCSP and Scala's Actors library.","PeriodicalId":246267,"journal":{"name":"Communicating Process Architectures Conference","volume":"16 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"1900-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"20","resultStr":"{\"title\":\"Communicating Scala Objects\",\"authors\":\"B. Sufrin\",\"doi\":\"10.3233/978-1-58603-907-3-35\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"In this paper we introduce the core features of CSO (Communicating Scala Objects) - a notationally convenient embedding of the essence of occam in a mod- ern, generically typed, object-oriented programming language that is compiled to Java Virtual Machine (JVM) code. Initially inspired by an early release of JCSP, CSO goes beyond JCSP expressively in some respects, including the provision of a unitary ex- tended rendezvous notation and appropriate treatment of subtype variance in channels and ports. Similarities with recent versions of JCSP include the treatment of channel ends (we call them ports) as parameterized types. Ports and channels may be trans- mitted on channels (including inter-JVM channels), provided that an obvious design rule - the ownership rule - is obeyed. Significant differences with recent versions of JCSP include a treatment of network termination that is significantly simpler than the \\\"poisoning\\\" approach (perhaps at the cost of reduced programming convenience), and the provision of a family of type-parameterized channel implementations with perfor- mance that obviates the need for the special-purpose scalar-typed channel implemen- tations provided by JCSP. On standard benchmarks such as Commstime, CSO com- munication performance is close to or better than that of JCSP and Scala's Actors library.\",\"PeriodicalId\":246267,\"journal\":{\"name\":\"Communicating Process Architectures Conference\",\"volume\":\"16 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"1900-01-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"20\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Communicating Process Architectures Conference\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.3233/978-1-58603-907-3-35\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Communicating Process Architectures Conference","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.3233/978-1-58603-907-3-35","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 20

摘要

在本文中,我们介绍了CSO(通信Scala对象)的核心特性——在符号上方便地将occam的本质嵌入到现代的、泛型的、面向对象的编程语言中,并将其编译为Java虚拟机(JVM)代码。最初受到JCSP早期版本的启发,CSO在某些方面表现得超越了JCSP,包括提供统一的扩展集合符号和适当处理通道和港口的亚型差异。与最近版本的JCSP的相似之处包括将通道端(我们称之为端口)处理为参数化类型。端口和通道可以在通道(包括jvm间通道)上传输,前提是遵循一个明显的设计规则——所有权规则。与最近版本的JCSP的显著区别包括:对网络终止的处理比“中毒”方法简单得多(可能以降低编程便利性为代价),以及提供一系列具有性能的类型参数化通道实现,这些实现消除了对JCSP提供的专用标量类型通道实现的需求。在诸如Commstime之类的标准基准测试中,CSO的通信性能接近甚至优于JCSP和Scala的Actors库。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Communicating Scala Objects
In this paper we introduce the core features of CSO (Communicating Scala Objects) - a notationally convenient embedding of the essence of occam in a mod- ern, generically typed, object-oriented programming language that is compiled to Java Virtual Machine (JVM) code. Initially inspired by an early release of JCSP, CSO goes beyond JCSP expressively in some respects, including the provision of a unitary ex- tended rendezvous notation and appropriate treatment of subtype variance in channels and ports. Similarities with recent versions of JCSP include the treatment of channel ends (we call them ports) as parameterized types. Ports and channels may be trans- mitted on channels (including inter-JVM channels), provided that an obvious design rule - the ownership rule - is obeyed. Significant differences with recent versions of JCSP include a treatment of network termination that is significantly simpler than the "poisoning" approach (perhaps at the cost of reduced programming convenience), and the provision of a family of type-parameterized channel implementations with perfor- mance that obviates the need for the special-purpose scalar-typed channel implemen- tations provided by JCSP. On standard benchmarks such as Commstime, CSO com- munication performance is close to or better than that of JCSP and Scala's Actors library.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
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学术文献互助群
群 号:604180095
Book学术官方微信