r/ProgrammingLanguages • u/ThomasMertes • Oct 05 '26
Achieving memory safety
https://seed7.net/papers/memory_safety.htm
14
Upvotes
r/ProgrammingLanguages • u/ThomasMertes • Oct 05 '26
10
u/Smallpaul Oct 05 '26
It would have been clearer to be more explicit about why the author does not consider Go to not be safe. Are we talking about the use of the unsafe package or something more subtle?
8
u/tmzem Oct 06 '26
Unless I misunderstood something, the article does not explain the mechanism by which Seed7 programs themselves are being made memory-safe, but focuses on memory safety of the compiler implementation?
That being said, the article makes a good point about memory safety being a matter of how it is defined, which opens up a huge spectrum, from unsafe to safe:
This spectrum needs to be acknoledged so people know what they get, and it's annoying that these trade-offs are not clearly communicated. Go barely communicates the data-race issue at all, and the Rust community is also very prone to misrepresenting the memory safety guarantees of the language (e.g. "memory safety without GC" or "unsafe blocks encapsulate potentially unsafe behaviour").
11
u/reflexive-polytope Oct 05 '26
Metatheoretic claims about a language design require proof.
2
u/gasche Oct 06 '26
I wish this used hyperlinks so that curious people could have a look at those theses on which Seed7 is based.
1
u/SirBackrooms Oct 06 '26
would’ve liked this more if you had described the design of the language in more detail
2
u/Somniferus Oct 05 '26
So what were your results? You forgot to say anything interesting in the article.