News for hackers. Stuff that matters.
Re:Ask HN: What are some good resources to learn safety-crit... by 0xbeefeed on Friday August 05, 2022 @01:31PM (#32359215)
UGH! Why there’s always a Rust cult follower ruining every C thread with their “opinions”?
Re:Ask HN: What are some good resources to learn safety-crit... by speedgoose on Friday August 05, 2022 @04:17PM (#32361485)
I didn't mention Rust or any language because depending on the problem, many other programming languages may be better too, such as Golang, C#, Python, Java…

I know that some people get upset when they have a question, and they don't get the answer but some suggestions. But sometimes, people are not aware of the alternatives, and it's important to remind them that perhaps a better solution exists.

If someone asks how to cut crusty bread with a butter knife safely, you can talk about the proper technic, how most people do it wrong, write a book about your industry do it better, but perhaps, someone should also mention that it's easier and better with a bread knife.

Re:Ask HN: What are some good resources to learn safety-crit... by fizzynut on Friday August 05, 2022 @04:53PM (#32361847)
There's many other issues to mention, but in the "memory safe" languages you have poor control over memory allocation and fragmentation, which over time can cause issues with performance, size, swapping, etc.
Re:Ask HN: What are some good resources to learn safety-crit... by buescher on Friday August 05, 2022 @04:44PM (#32361763)
What happens when you're using a really nice sharp serrated bread knife and a terrible cutting process?