The person on the video, known online as Tsoding (or by some as "mista azozin"), was writing a music visualizer program using the raylib library for writing videogames. raylib doesn't have code aimed at UI handling, meaning he had to manage the UI by himself. He likes doing a little bit of trolling, so that's why he picked that title.
Tsoding does by far the most entertaining recreational programming sessions I have ever seen on the Internet, so, despite them being quite long (about two hours), I recommend you watch at least a little bit of his videos/streams if you have time.
It's interesting to see Apple fighting the EU's regulatory bodies while complying with everything that the Chinese government asks.
There's a simple reason for this. If Apple doesn't follow every single one of the Chinese government's orders, they may be entirely banned from the country. In the EU, specially being it a union that prioritises democracy, they can complain all they want.
Tsoding has created a few rules for writing Rust to make Rust "fun" to program in, and gave them the name of Crust.
Here is the rule set (it may change over time):
Every function is unsafe.
No references, only pointers.
No cargo, build with rustc directly.
No std, but libc is allowed.
Only Edition 2021.
All user structs and enums #[derive(Clone, Copy)].
Everything is pub by default.
If you ever want to try this out for some ungodly reason, there's a GitHub repository with an example Main that shows how to use libc and other libraries (in the example, it's raylib), and with a Makefile showing how to compile your projects (remember we aren't using cargo).
OP, I don't think you've correctly linked to the post (when I visit the linked webpage, the browser tries to download an ActivityPub activity instead of showing the post in the Mastodon web UI). Please replace the link with this one.
I went to check why the hell this happened. It looks like the pair ("(,)") is defined as an instance of Foldable, for some reason, which is the class used by functions like foldl() and foldr(). Meanwhile, triples and other tuples of higher order (such as triples, quadruples, ...) are not instances of Foldable.
The weirdest part is that, if you try to use a pair as a Foldable, you only get the second value, for some reason... Here is an example.
The person on the video, known online as Tsoding (or by some as "mista azozin"), was writing a music visualizer program using the raylib library for writing videogames. raylib doesn't have code aimed at UI handling, meaning he had to manage the UI by himself. He likes doing a little bit of trolling, so that's why he picked that title.
Tsoding does by far the most entertaining recreational programming sessions I have ever seen on the Internet, so, despite them being quite long (about two hours), I recommend you watch at least a little bit of his videos/streams if you have time.
If you're interested specifically on this video in question: