r/ProgrammingLanguages • u/ThomasMertes • Oct 14 '26
Improved article about memory safety
Thank you to everyone who gave feedback on my article about memory safety.
I used the input to vastly improve the article (see "Achieving memory safety").
Please take a look and share your thoughts again and consider starring the Seed7 project on GitHub.
13
Upvotes
View all comments
Show parent comment
4
u/Athas Futhark Oct 15 '26
This is impossible to do. You need to rethink the definition of memory safety, because if you include arbitrary IO, then there is no way to avoid arbitrary system-level actions. What would prevent an IO function from launching another process, perhaps a shell script, to do whatever you are trying to prevent in your library? I see that Seed7 has a Shell library, so this is straightforward today. There is also
/dev, which contains ways of modifying system memory if the process is privileged.These are not Seed7-specific concerns. Any memory safe language that supports IO must be careful to specify what they mean by memory safety, and my guess (it's not my field) is that it's usually a guarantee "modulo external effects caused by IO", or something like that.