Nannou – A creative coding framework for Rust
44 points
by dmit
2 days ago
| 5 comments
| github.com
| HN
pjmlp
4 hours ago
[-]
The problem with creative coding and languages like Rust, or C++ for that matter, is that long compilation times break down the interactivity that is expected in such workflows.
reply
neobrain
4 hours ago
[-]
That problem is solved by the subsecond crate (an offspring of the Dioxus UI framework), demo here: https://youtu.be/Kl90J5RmPxY?t=1288

It's not integrated in Nannou specifically, but they're showing off Bevy and ratatui in that demo, both very popular frameworks in the Rust world. (In fact, Nannou is in the process of being rebuilt on top of Bevy.)

reply
CJefferson
4 hours ago
[-]
Yes, I wanted to play with things like this, I love Rust, but nowadays I use things built in Python or Lua (like love2d) -- because I need fast interactivity for visual creative coding.
reply
toboramai
2 hours ago
[-]
This is a cool project, but it seems like it hasn't been updated in a long time?

It seems like https://github.com/chaosprint/glicol has a similar problem.

reply
ThisNameIsTaken
2 hours ago
[-]
That is on the main branch. Behind the scenes [1] they're working a a huge rewrite to use the Bevy engine. A big effort that seems to be moving at a quite constant pace. It seems they're doing it quite rigourously: I've seen some issues in the bevy tracker where they check what is specific to their project, or where bevy can use some work.

[1]: https://github.com/nannou-org/nannou/tree/bevy-refactor

reply
matusnovak
5 hours ago
[-]
This reminds me of OpenFrameworks [0], which provides very similar framework style functionality like Nannou but for C++.

[0]: https://openframeworks.cc/

reply
roboben
5 hours ago
[-]
yep looks heavily inspired by OF. Anyone knows whats up with that project? I was involved years ago, it seems to still be going but I think many people moved on?
reply
plastic041
7 hours ago
[-]
It hasn't been actively maintained, but it is still a good crate. Also it has good document unlike other similar crates. I loved this community tutorial: https://github.com/sidwellr/schotter
reply
agluszak
4 hours ago
[-]
AFAIK it's being rewritten to use bevy

https://github.com/nannou-org/nannou/tree/bevy-refactor

reply
paulglx
3 hours ago
[-]
Very nice name and reference!
reply