News for hackers. Stuff that matters.
Re:Fornjot: A next-generation Code-CAD application by smallerfish on Wednesday March 09, 2022 @01:24PM (#30618146)
``` let outer = args .get("outer") .unwrap_or(&"1.0".to_owned()) .parse() .unwrap(); ```

Is this the syntax you want users to write? I...don't find it very readable.

Re:Fornjot: A next-generation Code-CAD application by hannobraun on Thursday March 10, 2022 @07:20AM (#30626096)
Well, no. But it's what we currently have. As adamsvystun notes, I have to start somewhere.

Making models more convenient to define is planned (https://github.com/hannobraun/Fornjot/issues/72), support for other modeling languages is on the wishlist (https://github.com/hannobraun/Fornjot/discussions/146).

Re:Fornjot: A next-generation Code-CAD application by smallerfish on Thursday March 10, 2022 @09:31AM (#30627280)
Maybe you can document your ideal so that you have something to work towards?
Re:Fornjot: A next-generation Code-CAD application by hannobraun on Thursday March 10, 2022 @12:05PM (#30629274)
Some of that documentation exists in the issue tracker. But that vision is something I refine as I learn more about use cases and the problem space. So it's not like I can just write down the ideal state right now :-)
Re:Fornjot: A next-generation Code-CAD application by adamsvystun on Wednesday March 09, 2022 @05:39PM (#30620915)
They have to start with what's the easiest to implement, and if their kernel is in Rust, then the easiest frontend is in Rust. From their FAQ [1]:

> Fornjot is architected to be language-agnostic, and adding support for other languages should be relatively straight-forward, actually. Hopefully one day, there will be a selection of interoperable Fornjot frontends, so you can choose the best language for your model.

[1] https://www.fornjot.app/faq/

Re:Fornjot: A next-generation Code-CAD application by properparity on Wednesday March 09, 2022 @03:59PM (#30619868)
Oh jesus, the model code is in rust?

I was assuming a dsl with kernel in rust.

Re:Fornjot: A next-generation Code-CAD application by sitkack on Wednesday March 09, 2022 @06:37PM (#30621431)
I don't think that is a big issue at this time. The Rust code would be building a data model in memory, one could easily do an internal DSL or call it from an external language.
Re:Fornjot: A next-generation Code-CAD application by hannobraun on Thursday March 10, 2022 @07:24AM (#30626124)
Exactly. All a model does, is build a C-ABI-compatible data structure. And even though Rust is currently the only language supported, Fornjot is architected to be language-agnostic.

I don't think Rust is the ideal language for this problem, but with Fornjot itself written in Rust, it was the easiest one to support. Gotta start somewhere.