logoalt Hacker News

raincoletoday at 8:31 AM3 repliesview on HN

> If a project in an unsafe language has ever had a memory bug (I'm looking at you, Bun), the maintainers objectively have a track record of not being capable of manual memory management

That's an interesting way to navigate the world. Do you hold this attitude towards other professionals? For example, if a lawyer ever lost a case by misinterpreting a law, they have a track record of not being capable to practice laws and should be disbarred?

There were (and most likely, still are) even memory bugs in Rust standard library[0]. By your logic the standard library maintainers objectively can't handle unsafe blocks.

[0]: https://nvd.nist.gov/vuln/detail/cve-2018-1000657


Replies

dminiktoday at 10:46 AM

It's not really that interesting. For instance, we've seemingly decided that various blue collar workers are incapable of not falling to their deaths and so have come up with OSHA and various other national equivalents. Drivers are incapable of not crashing and so we started including air bags. Woodworkers seemingly can't stop cutting their fingers off using a table saw and so we came up with SawStop.

Ygg2today at 10:51 AM

Fixed since 1.22.0

You're only proving unsafe Rust is tricky. Even for experienced maintenaners.

show 1 reply
slekkertoday at 8:49 AM

Following your analogy, if there is a way for the lawyer to never lose a case due to misinterpreting the law...