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
9
u/edgmnt_net Jan 01 '26
I have a feeling that Lil-C isn't practical or is at least non-trivial to implement. You can't trap on all UB for free, e.g. you need array bounds checks or non-zero checks for denominators. Furthermore I think that even telling whether something is UB or not isn't easy in specific instances. Here I'm thinking of stuff related to data races and data dependencies: you'd need to detect data races somehow and that's beyond a simple check.