Live data from Hacker News

Nannou – A Creative Coding Framework for Rust

nannou.cc

1–10 of 26 posts

Re: Nannou – A Creative Coding Framework for Rust

#3
Nannou is great! I tried it and found that:

1. The initial setup and build time is perhaps a little long or complex for use in classrooms/workshops but it's fine for personal/professional use.

2. Rust's build time might not feel like a natural fit for creative coding. Even though initial build times are long (~3 minutes on an 8-core 2019 MBP), rebuilds are fast enough to create a short feedback loop. It's not as fluid as dynamic languages like Clojure/JavaScript, but it's good enough.

3. It's a nice way to learn Rust.

4. MacTuiTui is worth following for their Nannou sketches: https://www.instagram.com/mactuitui/

Re: Nannou – A Creative Coding Framework for Rust

#4

Nannou is great! I tried it and found that: 1. The initial setup and build time is perhaps a little long or complex for use in classrooms/workshops but it's fine for personal/professional use. 2. Rust's build time might not feel like a natural fit for creative coding. Even though initial build times are long (~3 minutes on an 8-core 2019 MBP), rebuilds are fast enough to create a short feedback loop. It's not as flui…

Borrow checking, generics (dynamics) and lifetimes could be tricky to explain to beginners.

I recently wrote myself a software renderer in rust to learn the ropes and had a pretty big initial hill to climb.

Re: Nannou – A Creative Coding Framework for Rust

#5
post #2

This could be a cool way to get into Rust. I remember what processing did for my overall understanding of writing code, so this might make me familiar with Rust in the same way.

If you're looking for projects that you find interesting, as a mean to learn Rust, you may also find interesting The Ray Tracer Challenge and Mazes for Programmers.

There are also application-based books (rather than "concept-based"), like Rust Programming by Example, and the upcoming Hands-on Rust. Also, a notable app-based tutorial is "Build your own JIRA with Rust" (I didn't try it, though).

Re: Nannou – A Creative Coding Framework for Rust

#7
post #4

Nannou is great! I tried it and found that: 1. The initial setup and build time is perhaps a little long or complex for use in classrooms/workshops but it's fine for personal/professional use. 2. Rust's build time might not feel like a natural fit for creative coding. Even though initial build times are long (~3 minutes on an 8-core 2019 MBP), rebuilds are fast enough to create a short feedback loop. It's not as flui…

Borrow checking, generics (dynamics) and lifetimes could be tricky to explain to beginners. I recently wrote myself a software renderer in rust to learn the ropes and had a pretty big initial hill to climb.

For sketches, I find that in practice I tend not to bump up against the borrow checker at all. Here’s a thread of sketches (all with code) that I wrote when I was experimenting with nannou; explicit lifetimes are nowhere to be seen.

https://twitter.com/paulgb/status/1248698789839454214?s=21

Re: Nannou – A Creative Coding Framework for Rust

#8

Nannou is great! I tried it and found that: 1. The initial setup and build time is perhaps a little long or complex for use in classrooms/workshops but it's fine for personal/professional use. 2. Rust's build time might not feel like a natural fit for creative coding. Even though initial build times are long (~3 minutes on an 8-core 2019 MBP), rebuilds are fast enough to create a short feedback loop. It's not as flui…

Appart for #3, what's the draw here? Is there any tangible benefit to this versus using Processing or OpenFrameworks?

Edit: Read through their doc, it seems the benefits over Processing is performance, and Nannou targets realtime audio/video which is where Processing performance can start to be too sluggish. And OpenFrameworks being C++ means less reliable to live performance piece, where you wouldn't want a segfault or memory race to show up, as well as just Rust can be said to be a nicer language, if you prefer its style.

Re: Nannou – A Creative Coding Framework for Rust

#9

Unrelated to the project, Nannou is also a beautiful Aphex Twin track (one of my personal favourites) and highly recommended: https://www.youtube.com/watch?v=A-Pkx37kYf4 Video sfw. Comments likely less so.

Co-creator of nannou here, the project is indeed named after this track :)

Re: Nannou – A Creative Coding Framework for Rust

#10

Nannou is great! I tried it and found that: 1. The initial setup and build time is perhaps a little long or complex for use in classrooms/workshops but it's fine for personal/professional use. 2. Rust's build time might not feel like a natural fit for creative coding. Even though initial build times are long (~3 minutes on an 8-core 2019 MBP), rebuilds are fast enough to create a short feedback loop. It's not as flui…

I found it funny you mention Clojure since leiningen takes 20 seconds to get to a REPL prompt on a full spec MBP 16 from last year. For all the hype about interactive development, I think Clojure people are deluding themselves if they think that’s reasonable for a dynamic language.
Post reply on HN