Live data from Hacker News

Code-GUI bidirectional editing via LSP

jamesbvaughan.com

11–20 of 71 posts

Re: Code-GUI bidirectional editing via LSP

#11
post #4

Isn’t the python based build123d the current best CAD in code solution? The problem with OpenSCAD is that it cannot export solid geometry, just a final mesh. More broadly, I was genuinely shocked to realize, when I was playing with it, that there is no cross CAD file format that captures even simple design concepts like “this hole is aligned to the center of this plate” or even “this is a 2mm fillet”. STEP (the file…

I don't think they change programs very often, and only very rarely in the middle of a project.

Re: Code-GUI bidirectional editing via LSP

#12
post #10

Hey nice - this stuff is so much fun to me. I've worked a number of experiments like this too, especially related to live coding. Love seeing it in the wild. I built a small project where you can live-code Love2D. The running program updates in real time (no saving needed) and see all values update in real-time, via LSP. https://github.com/jasonjmcghee/livelove And also added the same kind of interactivity like a num…

I love your project. I am making something with LSP and your code was a great example of what is possible.

Glad it was useful! LSP is definitely under-utilized. It's great for the "malleable software" / small tools for yourself kind of stuff especially.

Re: Code-GUI bidirectional editing via LSP

#13

Hey nice - this stuff is so much fun to me. I've worked a number of experiments like this too, especially related to live coding. Love seeing it in the wild. I built a small project where you can live-code Love2D. The running program updates in real time (no saving needed) and see all values update in real-time, via LSP. https://github.com/jasonjmcghee/livelove And also added the same kind of interactivity like a num…

That's cool! I suspected that someone must have done something like this before.

Re: Code-GUI bidirectional editing via LSP

#16
post #4

Isn’t the python based build123d the current best CAD in code solution? The problem with OpenSCAD is that it cannot export solid geometry, just a final mesh. More broadly, I was genuinely shocked to realize, when I was playing with it, that there is no cross CAD file format that captures even simple design concepts like “this hole is aligned to the center of this plate” or even “this is a 2mm fillet”. STEP (the file…

STEP is capable of capturing what you describe, it is down to the "user group" of customers of the CAD vendors to ask for it to be implemented by each CAD system in terms of what they import and export.

We put in for some funding for the next edition of STEP AP242 for me to be able to work more closely with the user group to improve this area.

Re: Code-GUI bidirectional editing via LSP

#18
Reminds me of the excitement I got on seeing https://www.youtube.com/watch?v=4tyTgyzUJqM. I still get excited about trying something like this again pretty much every time I see it. Have yet to really get any traction on anything. :(

A lot of folks had fun watching Minecraft built using a live code session, if I recall.

Re: Code-GUI bidirectional editing via LSP

#19
I guess it is about time for the usual Lisp, Smalltalk, Cedar and Oberon remarks.

Why do cool ideas take so much time to be embraced in mainstream?

Retoric question, naturally they weren't VC friendly with exponential growth capitalising user acquisition. /s

Re: Code-GUI bidirectional editing via LSP

#20
For Slint [https://slint.dev], a (native) GUI Toolkit, I've also developed a LSP server that do live preview and editing. You can try it online at https://slintpad.com : if you click on the toolbar button to enable the right panel, you can edit the properties from the UI, and this is all done through the LSP and can be integrated in any editor that supports it.
Post reply on HN