r/ProgrammingLanguages • u/matklad • Dec 31 '25
Memory Safety Is ...
https://matklad.github.io/2025/12/30/memory-safety-is.html
37
Upvotes
r/ProgrammingLanguages • u/matklad • Dec 31 '25
View all comments
Show parent comment
1
u/koflerdavid Jan 02 '26
Dereferencing C or dividing by 0 is actually "fine" in the sense that nothing ill-behaved happens. In the first case a modern OS will kill the process with a segmentation fault. In the latter case something similar will happen as well. The JVM has to prevent these things purely to prevent them pulling down the whole process.