logoalt Hacker News

saghmyesterday at 9:45 PM4 repliesview on HN

[flagged]


Replies

musicaleyesterday at 10:54 PM

> "No way to prevent this", Says Only Language Where This Regularly Happens

   clang -fbounds-safety ...
also see lib0xc etc.: https://news.ycombinator.com/item?id=47978834
show 1 reply
dvtyesterday at 9:54 PM

Obviously the way to prevent this is by bounds checking, which is literally in the `770594e` patch. It's just a bug and they happen routinely in all languages. Since this is doing pointer arithmetic, it could just as easily happen in unsafe Rust, for example.

show 5 replies
slopinthebagtoday at 1:22 AM

Surely nobody could create a better language in 50 years. Surely we can't fix these issues.

themafiayesterday at 11:24 PM

And you see a lot of other languages being used to create operating systems with complicated multiprocessor and locking semantics?