Hybrid ClojureScript: First Hybrid Language Combining Visual and Textual Code
Implement Hybrid ClojureScript to embed visual syntax in code and leverage mini‑GUIs in IDEs.
Experiment with Hybrid ClojureScript in a test project.
Summary
The arXiv paper "Mixing Visual and Textual Code" introduces Hybrid ClojureScript, the first hybrid programming language that blends visual interactive syntax with traditional textual code.
Hybrid ClojureScript allows developers to embed visual syntax instances within a program’s text, enabling enhanced IDEs to display these instances as mini‑GUIs while other IDEs show a textual representation.
The language extension is designed to be composable with other language features and preserves static reasoning about the program.
The paper argues for the necessity of such extensibility mechanisms, demonstrates the adoptability of the design, and discusses potential adoption in other languages.
Hybrid ClojureScript is built on top of ClojureScript and leverages its existing tooling, making it a natural fit for developers familiar with the language.
The authors provide a detailed design of the visual syntax, the embedding mechanism, and the IDE integration strategy, illustrating how visual and textual code can coexist on equal footing.
Key changes
- Hybrid ClojureScript blends visual interactive syntax with textual code
- Visual syntax instances can be embedded within program text
- IDE can display embedded instances as mini‑GUIs
- Extension is composable with other language features
- Preserves static reasoning about the program
- Design demonstrates adoptability and potential for other languages