Type-Safe Dynamic Placement with First-Class Placed Values

Author:

Zakhour George1ORCID,Weisenburger Pascal1ORCID,Salvaneschi Guido1ORCID

Affiliation:

1. University of St. Gallen, St. Gallen, Switzerland

Abstract

Several distributed programming language solutions have been proposed to reason about the placement of data, computations, and peers interaction. Such solutions include, among the others, multitier programming, choreographic programming and various approaches based on behavioral types. These methods statically ensure safety properties thanks to a complete knowledge about placement of data and computation at compile time. In distributed systems, however, dynamic placement of computation and data is crucial to enable performance optimizations, e.g., driven by data locality or in presence of a number of other constraints such as security and compliance regarding data storage location. Unfortunately, in existing programming languages, dynamic placement conflicts with static reasoning about distributed programs: the flexibility required by dynamic placement hinders statically tracking the location of data and computation. In this paper we present Dyno, a programming language that enables static reasoning about dynamic placement. Dyno features a type system where values are explicitly placed, but in contrast to existing approaches, placed values are also first class, ensuring that they can be passed around and referred to from other locations. Building on top of this mechanism, we provide a novel interpretation of dynamic placement as unions of placement types. We formalize type soundness, placement correctness (as part of type soundness) and architecture conformance. In case studies and benchmarks, our evaluation shows that Dyno enables static reasoning about programs even in presence of dynamic placement, ensuring type safety and placement correctness of programs at negligible performance cost. We reimplement an Android app with ∼ 7 K LOC in Dyno, find a bug in the existing implementation, and show that the app's approach is representative of a common way to implement dynamic placement found in over 100 apps in a large open-source app store.

Funder

Swiss National Science Foundation

Basic Research Fund of the University of St. Gallen

Publisher

Association for Computing Machinery (ACM)

Subject

Safety, Risk, Reliability and Quality,Software

Reference58 articles.

1. Khalil Amiri , David Petrou , Gregory R. Ganger , and Garth A. Gibson . 2000. Dynamic Function Placement for Data-Intensive Cluster Computing . In Proceedings of the 2000 USENIX Annual Technical Conference (USENIX ATC ’00) . USENIX Association, San Diego, CA. 16 pages. https://www.usenix.org/conference/ 2000 -usenix-annual-technical-conference/dynamic-function-placement-data-intensive-cluster Khalil Amiri, David Petrou, Gregory R. Ganger, and Garth A. Gibson. 2000. Dynamic Function Placement for Data-Intensive Cluster Computing. In Proceedings of the 2000 USENIX Annual Technical Conference (USENIX ATC ’00). USENIX Association, San Diego, CA. 16 pages. https://www.usenix.org/conference/2000-usenix-annual-technical-conference/dynamic-function-placement-data-intensive-cluster

2. AntennaPod Developers. 2011. AntennaPod – The Open Podcast Player. https://antennapod.org Accessed: 2023-07-30 Commit: 88289d0 AntennaPod Developers. 2011. AntennaPod – The Open Podcast Player. https://antennapod.org Accessed: 2023-07-30 Commit: 88289d0

3. A Scored Semantic Cache Replacement Strategy for Mobile Cloud Database Systems

4. A Higher-Order Calculus of Computational Fields

Cited by 1 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Automated Infrastructure as Code Program Testing;IEEE Transactions on Software Engineering;2024-06

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3