logoalt Hacker News

shikck200 • yesterday at 4:17 PM • 1 reply • view on HN

Are you saying any language that does not promise data-race freedom is memory unsafe? That would rule out almost every programming language.


Replies

simonask • yesterday at 4:23 PM

I am, but you’d be surprised. All of the single-threaded languages are fine, for example. Very few languages are actually low-level enough to allow data races. C# and Java go to great lengths to avoid it.

Race conditions in general are another matter, and aren’t generally considered a requirement (though you can certainly create nasty bugs).

➕ show 1 reply