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

Maniposynth:双模态函数式编程

Maniposynth: Bimodal Tangible Functional Programming

Brian Hempel, Ravi Chugh

摘要:

传统上,编写代码是一个非图形化、抽象和线性的过程。并不是每个人都对这种思维方式感到舒服。编程可以转化为一种图形化的、具体的、非线性的活动吗?虽然基于节点和线和块的编程环境确实利用图形直接操纵,但用户在抽象语法树元素上执行他们的操纵,这些元素仍然是抽象的。有没有可能更具体一点--用户可以直接操作实时程序值来创建他们的程序?我们提出了一个系统,Maniposynth,重新想象函数式编程作为一个非线性的工作流程,程序表达式分布在一个2D画布上。这些表达式的实时结果将连续显示,并可用于直接操作。非线性画布解放了用户,使其可以无序工作,并且可以通过拖放与实时值进行交互。不完整的程序通过孔表达式进行优雅的处理,这使得Maniposynth能够提供程序合成。在整个工作流程中,程序都是有效的OCaml代码,用户可以随时在他们喜欢的文本编辑器中检查和编辑。利用Maniposynth的直接操作功能,我们创建了38个程序,这些程序来自功能性数据结构课程。我们还聘请了两名专业的OCaml开发人员来实现这些程序的一个子集。我们报告这些经验,并讨论在何种程度上Maniposynth满足其目标,提供一个非线性的,具体的,图形化的编程工作流程。

英文摘要:

Traditionally, writing code is a non-graphical, abstract, and linear process. Not everyone is comfortable with this way of thinking at all times. Can programming be transformed into a graphical, concrete, non-linear activity? While nodes-and-wires and blocks-based programming environments do leverage graphical direct manipulation, users perform their manipulations on abstract syntax tree elements, which are still abstract. Is it possible to be more concrete - could users instead directly manipulate live program values to create their program? We present a system, Maniposynth, that reimagines functional programming as a non-linear workflow where program expressions are spread on a 2D canvas. The live results of those expressions are continuously displayed and available for direct manipulation. The non-linear canvas liberates users to work out-of-order, and the live values can be interacted with via drag-and-drop. Incomplete programs are gracefully handled via hole expressions, which allow Maniposynth to offer program synthesis. Throughout the workflow, the program is valid OCaml code which the user may inspect and edit in their preferred text editor at any time. With Maniposynth's direct manipulation features, we created 38 programs drawn from a functional data structures course. We additionally hired two professional OCaml developers to implement a subset of these programs. We report on these experiences and discuss to what degree Maniposynth meets its goals of providing a non-linear, concrete, graphical programming workflow.

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

↑