µcad: A DSL for geometry written in Rust.

94 points WilstonOreo 13 comments

Hey Rustaceans,

I want to share some progress on my project µcad, a domain specific language for CAD, entirely written in Rust. I had a chance to present it on the RustWeek 2026 in May (where I live coded the Rust logo in µcad, see the video) and now you can finally test the language yourself in a playground: https://play.mucad.org/?example=11

The whole thing is a geometry engine with 128-bit fixed point precision and a language compiler in a 5 MB WASM binary and 1000 lines of TypeScript glue code :)
The compiler APIs have been handcrafted, but I was starting to use Claude recently, mainly for the WASM API and the Web Viewer.
I will have give another talk about the µcad compiler at the RustLab in Bologna next week, so I hope to see some of you folks there!