> Rust is too constrained without [unsafe blocks] to get any useful work done.
-
> Rust is too constrained without [unsafe blocks] to get any useful work done.
Just saw this in the wild again.
@veloren has about 330,000 lines of Rust code today. It's a networked, multi-threaded, 3D, portable game and game engine played by thousands of people. Very much not a contrived example. Name any sort of code and you'll find it in there: GUI, packet parsing, physics, DSP, decision trees, database calls, ECS, procgen, audio. It's all in there.
It has 12 instances of `unsafe`:
(1/2)
-
> Rust is too constrained without [unsafe blocks] to get any useful work done.
Just saw this in the wild again.
@veloren has about 330,000 lines of Rust code today. It's a networked, multi-threaded, 3D, portable game and game engine played by thousands of people. Very much not a contrived example. Name any sort of code and you'll find it in there: GUI, packet parsing, physics, DSP, decision trees, database calls, ECS, procgen, audio. It's all in there.
It has 12 instances of `unsafe`:
(1/2)
Of those 12 instances:
- 6 relate to hot reloading (dynamic linking) and aren't even presented in public builds
- 3 relate to the plugin system (JIT compilation and other things that are almost impossible to provide hard soundness proofs for)
- 2 relate to shader compilation (also JIT)
- 1 relates to accessing the OS clipboard and is unsafe because the underlying abstraction is perilously easy to abuse (thanks C)
-
Of those 12 instances:
- 6 relate to hot reloading (dynamic linking) and aren't even presented in public builds
- 3 relate to the plugin system (JIT compilation and other things that are almost impossible to provide hard soundness proofs for)
- 2 relate to shader compilation (also JIT)
- 1 relates to accessing the OS clipboard and is unsafe because the underlying abstraction is perilously easy to abuse (thanks C)
I know these people are just trolls, but still. It irks me to see people still saying this in the wild.
-
undefined oblomov@sociale.network shared this topic