arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1906.08351cs.SE
收藏

Lakosian多语言软件设计原则

Towards Lakosian Multilingual Software Design Principles

Damian M. Lyons, Saba B. Zahra, Thomas M. Marshall

摘要:

大型软件系统通常包括用不同的程序设计语言编写的程序。当跨语言互操作性是通过外部函数接口(Foreign Function Interface,FFI)实现的,例如pybind 11、Boost.Python、Emscripten、PyV 8或JNI等,常见的软件工程工具(如调用图分析)会受到FFI不透明性的阻碍。这会使调试复杂化,并引发潜在的低效率和安全问题。一个促成问题是,几乎没有严格的多语言软件的软件设计建议。在本文中,我们提出了一个更严格的多语言软件设计方法的进展。该方法基于Lakos开发的大型C++系统设计的现有方法。Lakosian方法是为数不多的解决物理设计而不仅仅是逻辑设计的设计方法之一。使用MLSA工具包在以前的工作中开发的多语言软件的分析,我们专注于一个FFI -pybind 11 FFI。Lakosian C++设计规则的扩展被提出来处理使用pybind 11的多语言软件。使用50个使用pybind 11的公共GitHub存储库的样本,我们测量了目前有多少存储库满足这些规则。最后,我们提出了一个通用的基于pybind 11的规则,任何使用FFI接口的多语言软件。

英文摘要:

Large software systems often comprise programs written in different programming languages. In the case when cross-language interoperability is accomplished with a Foreign Function Interface (FFI), for example pybind11, Boost.Python, Emscripten, PyV8, or JNI, among many others, common software engineering tools, such as call-graph analysis, are obstructed by the opacity of the FFI. This complicates debugging and fosters potential inefficiency and security problems. One contributing issue is that there is little rigorous software design advice for multilingual software. In this paper, we present our progress towards a more rigorous design approach to multilingual software. The approach is based on the existing approach to the design of large-scale C++ systems developed by Lakos. The Lakosian approach is one of the few design methodologies to address physical design rather than just logical design. Using the MLSA toolkit developed in prior work for analysis of multilingual software, we focus in on one FFI -- the pybind11 FFI. An extension to the Lakosian C++ design rules is proposed to address multilingual software that uses pybind11. Using a sample of 50 public GitHub repositories that use pybind11, we measure how many repositories would currently satisfy these rules. We conclude with a proposed generalization of the pybind11-based rules for any multilingual software using an FFI interface.

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

↑