Maniposynth: Bimodal Tangible Functional Programming
Channel: plasticchickenfire
Date: 2023-02-10

Brian Hempel and Ravi Chugh
ECOOP 2022

Traditionally, writing code is a non-graphical, abstract, and linear process. Not everyone is comfortable with this way of thinking. 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 re-imagines functional programming as a non-linear workflow where program expressions are spread on a 2D canvas. The live results of those expressions are displayed and available for direct manipulation. The non-linear canvas liberates users to work out-of-order, and the live values continuously show what the program is doing, and also let users interact with the live values 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.

Presented June 30, 2022 at ECOOP 2022 https://2022.ecoop.org/details/ecoop-2022-papers/18/Maniposynth-Bimodal-Tangible-Functional-Programming
(Presentations were not recorded live so this is a studio recording.)

Paper: http://maniposynth.org/assets/Maniposynth-Bimodal-Tangible-Functional-Programming-with-Appendices.pdf
Website: https://maniposynth.org/

0:00 - Motivation
2:58 - ALVIS Live! (linear bimodal) vs. Tangible Functional Programming (non-linear unimodal)
6:16 - Tangible Values in Maniposynth
7:08 - Demo: list length
16:58 - Demo: drag to extract
17:50 - Demo: extract via autocomplete
18:38 - Demo: synthesis (programming by example)
21:12 - Architecture & Interpreter
22:53 - Reordering bindings
24:39 - Synthesizer
26:19 - Evaluation
31:09 - Future Work / Conclusion