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
37
u/sagittarius_ack Dec 31 '25
The author seems to fail to understand that memory safety (or other safety properties) can be achieved via a combination of compile-time checks and runtime checks. Java is memory safe (at least with respect to null pointer dereference) because it doesn't actually let you dereference null pointers at runtime. Any attempt to do that will result in a runtime exception. It is similar to how most languages do not allow you to divide by 0.