...
首页> 外文期刊>ACM Transactions on Programming Languages and Systems >Type-Based Publish/Subscribe: Concepts and Experiences
【24h】

Type-Based Publish/Subscribe: Concepts and Experiences

机译:基于类型的发布/订阅:概念和经验

获取原文
获取原文并翻译 | 示例

摘要

A continuously increasing number of interconnected computer devices makes the requirement for programming abstractions for remote one-to-many interaction yet more stringent. The publish/subscribe paradigm has been advocated as a candidate abstraction for such one-to-many interaction at large scale. Common practices in publish/subscribe, however, include low-level abstractions which hardly leverage type safety, and provide only poor support for object encapsulation. This tends to put additional burden on software developers; guarantees such as the aforementioned type safety and object encapsulation become of increasing importance with an accrued number of software components, which modern applications also involve, besides an increasing number of hardware components. Type-based publish/subscribe (TPS) is a high-level variant of the publish/subscribe paradigm which aims precisely at providing guarantees such as type safety and encapsulation. We present the rationale and principles underlying TPS, as well as two implementations in Java: the first based on a specific extension of the Java language, and a second novel implementation making use of recent general-purpose features of Java, such as generics and behavioral reflection. We compare the two approaches, thereby evaluating the aforementioned features—as well as additional features which have been included in the most recent Java 1.5 release—in the context of distributed and concurrent programming. We discuss the benefits of alternative programming languages and features for implementing TPS. By revisiting alternative abstractions for distributed programming, including "classic" and recent ones, we extend our investigations to programming language support for distributed programming in general, pointing out that overall, the support in current mainstream programming languages is still insufficient.
机译:互连计算机设备数量的不断增加,使得对远程一对多交互的编程抽象的要求更加严格。提倡使用发布/订阅范式作为这种大规模的一对多交互的候选抽象。但是,发布/订阅中的常见做法包括底层抽象,这些抽象几乎不利用类型安全性,并且仅对对象封装提供不好的支持。这往往给软件开发人员增加了负担。随着软件组件的增加,诸如上述类型的安全性和对象封装之类的保证变得越来越重要,除了越来越多的硬件组件之外,现代应用程序还涉及这些组件。基于类型的发布/订阅(TPS)是发布/订阅范例的高级变体,其目的在于提供诸如类型安全性和封装之类的保证。我们介绍了TPS的基本原理和原理,以及Java中的两种实现:第一种基于Java语言的特定扩展,第二种新颖的实现利用了Java的最新通用特性,例如泛型和行为特性。反射。我们比较了这两种方法,从而在分布式和并发编程的背景下评估了上述功能以及最新Java 1.5发行版中已包含的其他功能。我们讨论了实现TPS的替代编程语言和功能的好处。通过回顾分布式编程的替代抽象,包括“经典”和最近的抽象,我们将研究范围扩展到总体上对分布式编程的编程语言支持,指出总体上,当前主流编程语言的支持仍然不足。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号