4 ms·
I think 3D modelling lends itself exceptionally well to the functional programming style. Rusts syntax is heavily influenced to solve a breadth of system level
by axelerator 5y ago
I think 3D modelling lends itself exceptionally well to the functional programming style. Rusts syntax is heavily influenced to solve a breadth of system level problems that don't exist in the "application" space this is solving.
I would argue such a system would be best implemented in a language that only has expressions. For example Elm has a wonderful geometry library [1].
[1] https://package.elm-lang.org/packages/ianmackenzie/elm-geometry/latest/ https://package.elm-lang.org/packages/ianmackenzie/elm-geome...
- eurasiantiger 5y agoThe FP approach has some readability limitations, for example flexbox-like distribution of multiple elements over a distance requires some heavy recursion.
- hannobraun 5y agoFornjot is architected to be language-agnostic. Rust is just the easiest language to support, given that the rest of the project is written in it too. I (author of Fornjot) don't have any near-term plans to add support for other languages, but I hope that people will start experimenting (and someone already has: https://github.com/WeirdConstructor/Fornjot/tree/wlambda_integration https://github.com/WeirdConstructor/Fornjot/tree/wlambda_int...).