Re:Re: Integrating "safe" languages into OpenBSD? (2017)
by sbt567 on Sunday May 03, 2020 @12:56PM
(#23060203)
can you elaborate please?
[ Parent
| on HN ]
Re:Re: Integrating "safe" languages into OpenBSD? (2017)
by steveklabnik on Sunday May 03, 2020 @01:01PM
(#23060247)
... I am not really sure how to elaborate, to be honest. Rust prevents memory unsafety, but memory leaks are not memory un-safe. There are many kinds of bugs that Rust does not prevent. Leaks are one of them.
Re:Re: Integrating "safe" languages into OpenBSD? (2017)
by zerpelin68 on Sunday May 03, 2020 @01:51PM
(#23060639)
How can leaked memory, pragmatically, be considered safe? The language spec definition seems useless.
Re:Re: Integrating "safe" languages into OpenBSD? (2017)
by steveklabnik on Sunday May 03, 2020 @01:55PM
(#23060668)
The only issue memory leaks can cause is being a DDoS vector. Memory unsafety can cause a host of other issues, and much more serious ones.
It is also very difficult to come up with a definition of "memory leak" that doesn't include programmer intention, and so it's not clear that you can come up with static analysis to preclude it.
Re:Re: Integrating "safe" languages into OpenBSD? (2017)
by zerpelin68 on Sunday May 03, 2020 @02:02PM
(#23060715)
Agreed there is not much you can do about a programmer using memory in an unsafe way...so what is the point?
Re:Re: Integrating "safe" languages into OpenBSD? (2017)
by steveklabnik on Sunday May 03, 2020 @02:29PM
(#23060900)
You can, in general. Just not for memory leaks.
The point is defense in depth.