Post B1LoL8LxSLHfJ3InPk by jsbarretto@social.coop
(DIR) More posts by jsbarretto@social.coop
(DIR) Post #B1LoKvP1bd0r8ndYtE by jsbarretto@social.coop
2025-12-17T20:32:47Z
1 likes, 1 repeats
> 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)
(DIR) Post #B1LoL0GhW0KEEQmU6q by jsbarretto@social.coop
2025-12-17T20:34:21Z
1 likes, 1 repeats
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)
(DIR) Post #B1LoL8LxSLHfJ3InPk by jsbarretto@social.coop
2025-12-17T20:35:00Z
0 likes, 0 repeats
I know these people are just trolls, but still. It irks me to see people still saying this in the wild.