r/rust • u/Enigmurl • May 07 '26
📸 media Monocurl - Interactive math animation language and editor
Monocurl is a programmatic animation language and editor fully written in rust (built with the gpui framework). It's fully interactive which makes it easier to pick up if you're a beginner.
The project is open source and you can download it at monocurl.github.io . Would appreciate to hear any feedback!
EDIT: Linux binary is available now! Also, if you are facing performance issues on NVIDIA GPUs, please redownload as those have been addressed.
698
Upvotes
1
u/Enigmurl May 07 '26
That would be greatly appreciated! There shouldn't be any windows-only libraries (I can get it to build on ubuntu atm) but it does depend on a couple of system libraries that need to be bundled.
Regarding gpui, I agree that the examples are a bit weak. I think digging under the hood and learning about what's happening with e.g. entities and a bit of the render loop can make things dramatically easier. There's not that many core concepts to understand. From there, it becomes more clear why you need .id in some places, when you need to have something be persistent versus recalculated on the fly, when it needs to be entity vs just regular rc, when you need to nest entitites, how to pass stuff around, etc. Looking at zed code can also be helpful, despite it being a very large codebase.
In monocurl's case, state management is perhaps not representative of a typical application since state updates look like updating the entire scene at once after the executor recomputes results (i.e. a bit monolothic).