Hacker News new | ask | show | jobs
by hannobraun 1545 days ago
Hey, author of Fornjot here.

> The modeling language for Fornjot is Rust. To me, this seems like an akward language to write models in.

I fully agree! Given that Fornjot is written in Rust, starting with Rust as the modeling language was just the most straight-forward option.

But Fornjot is architected to be language-agnostic. Right now, it uses a plugin system based on dynamic linking, and you could plug anything in there that can generate C-ABI-compatible structs (the plan is to replace that with a system based on WASM).

In addition, I've started splitting Fornjot into self-contained libraries[1]. Once that effort is complete, there will be lots of ways to make Fornjot available to other languages.

That said, I think there's merit in having options when using Code-CAD, and Rust is certainly different enough from the typical alternatives to be valuable. I don't think it will ever be the best option for regular CAD modeling, but it might have a niche in infrastructure code that CAD models (written in other languages) use.

[1] https://github.com/hannobraun/Fornjot/issues/141