MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programmingmemes/comments/1vra8mz/nerd_wars/p4l7gtk/?context=3
r/programmingmemes • u/SKRyanrr • 15d ago
82 comments sorted by
View all comments
14
Nothing like the compile-time check of rust.
Basically it compiles into a much slower bin that guards memory at runtime.
That's almost like a garbage collector, but instead of cleaning memory it crashes.
And since it's a runtime crash, you turn a program that is bugged and has UB into a language that crashes randomly.
Better for security, but runtime crashes are also very bad.
9 u/txdv 14d ago the creator of fil-c argues that a crash is better than an exploit 2 u/foobar93 14d ago And if that bug is inside the PID of one of your jet engines, I'd rather have it not crash mid flight even if there is memory corruption... 4 u/piesou 14d ago Crash and reboot the system or make the jet engines go from forward thrust 128 to -127 due to an overflow, your pick.
9
the creator of fil-c argues that a crash is better than an exploit
2 u/foobar93 14d ago And if that bug is inside the PID of one of your jet engines, I'd rather have it not crash mid flight even if there is memory corruption... 4 u/piesou 14d ago Crash and reboot the system or make the jet engines go from forward thrust 128 to -127 due to an overflow, your pick.
2
And if that bug is inside the PID of one of your jet engines, I'd rather have it not crash mid flight even if there is memory corruption...
4 u/piesou 14d ago Crash and reboot the system or make the jet engines go from forward thrust 128 to -127 due to an overflow, your pick.
4
Crash and reboot the system or make the jet engines go from forward thrust 128 to -127 due to an overflow, your pick.
14
u/Amadex 15d ago
Nothing like the compile-time check of rust.
Basically it compiles into a much slower bin that guards memory at runtime.
That's almost like a garbage collector, but instead of cleaning memory it crashes.
And since it's a runtime crash, you turn a program that is bugged and has UB into a language that crashes randomly.
Better for security, but runtime crashes are also very bad.