Get the latest tech news

Code-GUI bidirectional editing via LSP


I built a small proof-of-concept for a system that enables real-time bidirectional editing between any modern code editor and a GUI, enabled by an LSP1 server. Code-based CAD I like working on small projects at home that benefit from CAD. I’m also a programmer with a personal development environment that I’ve spent years making as cozy as possible. Naturally I’ve been interested in finding code-based CAD system to use for my projects that allows me to use that cozy development environment.

For example: One idea I’m exploring is “bidirectional editing”, so geometry can be manipulated using either: a purpose-built graphical UI, or the textual codeCAD language OpenSCAD is fundamentally not built for GUI editing, but since it’s open source and has a nice language server already, it could be a good place to develop a more interesting demo of this concept. Handling conflict resolution, incremental edits, and the more complex general LSP server internals are all serious tasks, let alone creating a whole new language for CAD.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of LSP

LSP

Photo of Code⇄GUI

Code⇄GUI

Photo of Code ⇄ GUI

Code ⇄ GUI

Related news:

News photo

Show HN: McWig – A modal, Vim-like text editor written in Go

News photo

Multilspy: Building a common LSP client handtuned for all Language servers

News photo

The First HTML LSP That Reports Syntax Errors