Interesting that this is in a self-developed subset/dialect of Rust called Crust which attempts to treat it as a better C, using unsafe everywhere among other things.
That's a little bit interesting. It remains then a C-like language with generics, and that sounds a lot more fun than regular C. I don't yet understand the point of avoiding references or libstd, though.
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."
pveierland|8 months ago
https://github.com/tsoding/b/blob/main/src/codegen/uxn.rs
https://wiki.xxiivv.com/site/uxn.html
treyd|8 months ago
kzrdude|8 months ago
IshKebab|8 months ago
avmich|8 months ago
int_19h|8 months ago
aap_|8 months ago
elvircrn|8 months ago
louis771|8 months ago
desumeku|8 months ago
"The Rules of Crust
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."
paddw|8 months ago
The least recreational languages are probably like Java,C#
IshKebab|8 months ago
sureglymop|8 months ago
He doesn't actually use rust "idiomatically". He calls this "crust":
1. Every function is unsafe
2. No references, only pointers
3. No cargo, just rustc
4. No std, only libc
...
I don't know if he is sticking to these rules throughout but that was the idea in the beginning of this project.
https://github.com/tsoding/Crust
DiabloD3|8 months ago
nurettin|8 months ago
ZeroAurora|8 months ago
[deleted]