arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2304.07133cs.PL
收藏

LoRe:一种用于可验证安全的本地优先软件的编程模型

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

Julian Haas, Ragnar Mogk, Elena Yanakieva, Annette Bieniusa, Mira Mezini

AI总结:

针对本地优先软件缺乏自动化安全保证的问题,本文提出 LoRe 编程模型与编译器,结合响应式编程、静态分析和验证来识别不安全并发交互并按需引入协调一致性。

摘要:

本地优先软件在本地管理和处理私有数据,同时仍支持通过部分不可靠网络连接的多方之间进行协作。这类软件通常涉及与用户和执行环境(外部世界)的交互。此类交互的不可预测性及其去中心化特性,使得对本地优先软件正确性的推理成为一项具有挑战性的工作。然而,现有用于开发本地优先软件的解决方案并不提供自动化安全保证支持,而是期望开发者在网络条件不可靠的环境中推理并发交互。我们提出了 LoRe,这是一种编程模型和编译器,可自动验证开发者为本地优先应用提供的安全属性。LoRe 将响应式编程的声明式数据流与静态分析和验证技术相结合,以精确确定违反安全不变量的并发交互,并在需要时通过协调选择性地采用强一致性。我们提出了一种形式化的证明原则,并演示了如何在原型实现中自动化该过程,该实现可输出经过验证的可执行代码。我们的评估表明,与最先进的方法相比,LoRe 简化了安全本地优先软件的开发,并且验证时间是可接受的。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑