logoalt Hacker News

typical182 • today at 3:06 PM • 1 reply • view on HN

Go is broadly considered to be a memory safe language.

See for example comments from tptacek like:

https://news.ycombinator.com/item?id=43335748

https://news.ycombinator.com/item?id=46028232

https://news.ycombinator.com/item?id=44672371

(The gist: memory safety is a term of art coined by security practitioners. Go, Python, Rust, Java, others: memory safe. C/C++: memory unsafe. Periodically, people in different slices of industry or academia come up with new definitions of memory safety that declare Rust or Go or other languages to be memory unsafe, but that is not by the broadly accepted definition across industry.)


Replies

mitxela • today at 3:33 PM

Rust does allow you to overflow buffers, confuse types, and duplicate mutable pointers in safe code. See cve-rs.

➕ show 1 reply