可选功能的语言支持
Language Support for Optional Functionality
摘要:
我们推荐一种编程构造-可用性检查-用于需要自动调整以适应代码段存在或不存在的程序。其思想是在调用函数调用之前检查是否存在有效的定义。语法是一个简单的“if”语句。我们的愿景是通过添加或删除可选组件来实现应用程序功能的自定义,而不需要完全重新构建。重点是类C编译过程语言和基于UNIX的系统。从本质上讲,我们的方法试图将动态库的灵活性与实用程序(依赖)库的可用性相结合。我们主要从开发复杂性方面概述了流行策略的好处,粗略地衡量为较少的代码行。我们还提到了性能和灵活性方面。A初步实施和早期实验评估的数字。
英文摘要:
We recommend a programming construct - availability check - for programs that need to automatically adjust to presence or absence of segments of code. The idea is to check the existence of a valid definition before a function call is invoked. The syntax is that of a simple 'if' statement. The vision is to enable customization of application functionality through addition or removal of optional components, but without requiring complete re-building. Focus is on C-like compiled procedural languages and UNIX-based systems. Essentially, our approach attempts to combine the flexibility of dynamic libraries with the usability of utility (dependency) libraries. We outline the benefits over prevalent strategies mainly in terms of development complexity, crudely measured as lesser lines of code. We also allude to performance and flexibility facets. A Preliminary implementation and figures from early experimental evaluation are presented.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。