pouët.net

Rust and demomaking

category: code [glöplog]
I have got a picture that the main idea of Rust is to have a language which is memory safe and which makes it easy to write non-buggy multithread programs. But I assume that bug hunting is not so important in the context of demos (and compared to a web browser) which are non-interactive programs and functionally perfect if they just reach the credits screen without crashing.
It's not just 'not crashing', it's also the class of bugs that cause your demo to misbehave on someone else's machine, or doing subtly incorrect things because you happen to be overwriting a variable (or an uninitialized variable, or whatever).
added on the 2019-05-15 12:19:25 by sagacity sagacity
Saw this today: nannou, a creative coding framework for Rust. Might be interesting for non size limited demos (and the LAZZERRR support).
added on the 2019-06-11 11:00:50 by maeln maeln
If it is about graphics, I can recommend ggez. It was a breetze to get some graphics up and running. For audio output (writing audio samples) I found cpal also very useful. There are lots of graphics libraries for Rust already, but some are a bit bug ridden or way too much boilerplate to get something basic done.
Sadly the executables are a bit big (but at least usually statically linked), even in release mode.
added on the 2019-07-31 11:49:42 by WeirdCtor WeirdCtor
Quote:
Sadly the executables are a bit big (but at least usually statically linked), even in release mode.


Wanted to add: They are big if you work with std:: and ready made crates.
added on the 2019-07-31 18:36:26 by WeirdCtor WeirdCtor
added on the 2019-08-19 11:46:47 by xernobyl xernobyl

login