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

时空编程:实时和全知的代码与执行探索

SpaceTime Programming: Live and Omniscient Exploration of Code and Execution

Université de Rennes, IRISA(雷恩大学,IRISA);Université de Rennes, CNRS, IRISA(雷恩大学,CNRS,IRISA);Université de Rennes, Inria, CNRS, IRISA(雷恩大学,Inria,CNRS,IRISA)

Jean-Baptiste Döderlein, Djamel Eddine Khelladi, Mathieu Acher, Benoit Combemale

AI总结:

本文提出时空编程,整合多种编程范式,通过追踪机制同时探索代码变更与执行流程,展示了Python库在实时全知调试器和Pygame游戏开发中的应用及性能评估。

摘要:

编程环境通常将静态代码世界与动态执行分离。开发者需在编写代码和观察执行之间切换,往往缺乏工具理解代码变更与运行行为的关系。现有解决方案多聚焦特定方面和范式,缺乏全面集成环境。本文提出时空编程,统一多种范式,通过追踪机制记录执行状态和代码变更,使开发者能同时探索代码变体(空间)和执行流程(时间)。作为证明概念,我们实现了一个Python库,应用于实时全知调试器和Pygame游戏开发工具,通过Flappy Bird-like游戏展示。进一步在五个真实Python项目上评估SpaceTimePy,发现性能开销在测试套件上从35%到150%不等。

英文摘要:

Programming environments typically separate the world of static code from the dynamic execution of programs. Developers must switch between writing code and observing its execution, often with limited tools to understand the relationship between code changes and runtime behavior. Several paradigms and approaches exist to bridge this gap, including exploratory programming for comparing code variants, live programming for immediate feedback, and omniscient debugging for exploring execution history. However, existing solutions tend to focus on specific aspects and one specific paradigm rather than providing a fully integrated environment with multiple capabilities. This paper introduces \spacetime Programming, a novel approach that unifies these paradigms to create a programming model for exploring both code modifications and execution flow. At the core of our approach is a trace mechanism that captures not only execution state but also the corresponding code changes, enabling developers to explore programs in both space (code variants) and time (execution flow). As a proof of concept, we implemented a Python library supporting SpaceTime Programming and applied it in two contexts: a live omniscient debugger and a Pygame game development tool, showcased through a Flappy Bird-like game. We further evaluated SpaceTimePy on five real-world Python projects, finding performance overhead ranging from 35% to 150% on test suites.

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

↑