LoRe: A Programming Model for Verifiably Safe Local-first Software

Author:

Haas Julian1ORCID,Mogk Ragnar1ORCID,Yanakieva Elena2ORCID,Bieniusa Annette2ORCID,Mezini Mira3ORCID

Affiliation:

1. Technische Universität Darmstadt, Germany

2. Rheinland-Pfälzische Technische Universität Kaiserslautern-Landau, Germany

3. Technische Universität Darmstadt, Germany, and National Research Center for Applied Cybersecurity (ATHENE), Germany, and Hessian Center for Artificial Intelligence (hessian.AI), Germany

Abstract

Local-first software manages and processes private data locally while still enabling collaboration between multiple parties connected via partially unreliable networks. Such software typically involves interactions with users and the execution environment (the outside world). The unpredictability of such interactions paired with their decentralized nature make reasoning about the correctness of local-first software a challenging endeavor. Yet, existing solutions to develop local-first software do not provide support for automated safety guarantees and instead expect developers to reason about concurrent interactions in an environment with unreliable network conditions. We propose LoRe , a programming model and compiler that automatically verifies developer-supplied safety properties for local-first applications. LoRe combines the declarative data flow of reactive programming with static analysis and verification techniques to precisely determine concurrent interactions that violate safety invariants and to selectively employ strong consistency through coordination where required. We propose a formalized proof principle and demonstrate how to automate the process in a prototype implementation that outputs verified executable code. Our evaluation shows that LoRe simplifies the development of safe local-first software when compared to state-of-the-art approaches and that verification times are acceptable.

Funder

German Federal Ministry of Education and Research together with the Hessen State Ministry for Higher Education (ATHENE), the German Research Foundation

German Federal Ministry for Economic Affairs and Climate Action project SafeFBDC

Publisher

Association for Computing Machinery (ACM)

Subject

Software

Reference53 articles.

1. Cure: Strong Semantics Meets High Availability and Low Latency

2. Blazes: Coordination analysis for distributed programs

3. Peter Alvaro, Neil Conway, Joseph M. Hellerstein, and William R. Marczak. 2011. Consistency analysis in Bloom: A calm and collected approach. In Proceedings of the Conference on Innovative Data Systems Research (CIDR’11). Citeseer. Retrieved from http://cidrdb.org/cidr2011/Papers/CIDR11_Paper35.pdf

4. Automerge contributors. 2023. Automerge: Build Local-First Software. Retrieved from https://automerge.org/. Accessed on 2023-04-19.

5. Coordination avoidance in database systems

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

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

www.globalauthorid.com

TOP

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