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

巴比伦式程序设计:将实例集成到通用Source Code中的设计与实现

Babylonian-style Programming: Design and Implementation of an Integration of Live Examples into General-purpose Source Code

David Rauch, Patrick Rein, Stefan Ramson, Jens Lincke, Robert Hirschfeld

摘要:

当开发程序时,开发人员通常必须在他们的头脑中模拟抽象代码的行为,直到他们可以执行应用程序。实时编程旨在通过提供有关程序行为的更直接反馈来支持程序的开发和理解,但代码和行为之间的界限通常仍然存在。基于示例的实时编程的目标是通过允许程序员在开发过程中探索其代码的实际行为来消除这种差距。这是通过为应用程序的各个部分定义实例来实现的。在其他工具和环境中已经讨论了实时示例的想法。然而,这些解决方案中的大多数都局限于特定的领域,并且仅适用于小程序。因此,我们的目标是将基于实例的实时编程应用扩展到可能跨越多个模块的更复杂的程序。我们调查现有的解决方案,以获得一组要求集成到源代码的实例。基于这些要求,我们提出了一种新的方法来活的例子,并提出了一个原型在其支持。我们重现,讨论和扩展相关工作的场景,以显示我们的方法在更大,更复杂,更现实的场景中的实用性。此外,我们测量和评估我们的原型实现的系统响应时间。我们的第一个结果表明,基于示例的实时编程可以为非平凡程序的参数化代码的运行时行为提供更多的见解。它们还揭示了影响基于示例的实时编程环境的未解决的新挑战。在介绍这种更通用的基于示例的实时编程方法时,我们希望能够激励对这一领域的进一步研究,并提供实用的解决方案。

英文摘要:

When working on a program, developers traditionally have to simulate the behavior of the abstract code in their heads until they can execute the application. Live programming aims to support the development and comprehension of programs by providing more immediate feedback on program behavior, but the divide between code and behavior often remains. The goal of example-based live programming is to remove this gap by allowing programmers to explore the actual behavior of their code during development. This is achieved by defining live examples for parts of the application. The idea of live examples has been already addressed in other tools and environments. However, most of those solutions are limited to specific domains and are suitable only for small programs. Thus, we aim to extend the application of example-based live programming to more complex programs potentially spanning multiple modules. We investigate existing solutions to derive a set of requirements for an integration of live examples into source code. Based on these requirements we propose a new approach to live examples and present a prototype in its support. We reproduce, discuss, and extend scenarios from related work to show the practicality of our approach in the context of larger, more complicated, and with that also more realistic scenarios. Also, we measure and evaluate the system response time of our prototypical implementation. Our first results show that example-based live programming can provide more insights into the run-time behavior of parameterized code for non-trivial programs. They also reveal unsolved and new challenges affecting example-based live programming environments. In presenting this more general approach to example-based live programming, we hope to motivate further research into this area and to make practical solutions available.

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

↑