News for hackers. Stuff that matters.
Re:Truck: CAD Kernel in Rust by hobofan on Wednesday March 08, 2023 @04:20PM (#35074890)
As far as I understand, neither of the examples you mention allow for proper bi-directional editing.

> FreeCAD has ability to generate shapes or sketches with script and it would be possible to edit resulted geometry manually with GUI tools.

That sounds like the "normal" flow, where the first GUI editing action is destructive (= requires you to "emit" the parameterized geometry).

I think what is alluded to there, is something more akin to a visual Markdown editor, or newer visual React editors like Utopia[0], which are a departure from the old generation of WYSIWYG editors like Dreamweaver, where an edition action in either the code or the visual mode wreaked havoc on the state of the other mode.

[0]: https://utopia.app/

Re:Truck: CAD Kernel in Rust by app4soft on Wednesday March 08, 2023 @05:34PM (#35075715)
> As far as I understand, neither of the examples you mention allow for proper bi-directional editing.

See "Modify" commands in LibreCAD.[0]

[0] https://wiki.librecad.org/index.php?title=Commands_and_tools...

Re:Truck: CAD Kernel in Rust by virtualritz on Wednesday March 08, 2023 @06:02PM (#35075996)
LibreCAD is 2D.
Re:Truck: CAD Kernel in Rust by app4soft on Thursday March 09, 2023 @08:19AM (#35080864)
I said that. Reread my comment above.[0]

[0] https://news.ycombinator.com/item?id=35071317#35073677