Hacker News new | ask | show | jobs
by rbanffy 43 days ago
I didn't say "make no mistakes". I said "using its features unwisely". If you can't write software that manages shared mutable state, then don't do it. The world still needs lots of simpler programs.
2 comments

In this case the features are things like "allocating memory on the heap" and "incrementing a pointer."

It isn't like C has some "there be dragons" set of features that are hard to use. The source of exploitable memory safety issues is consistently just foundational language features.

Why can't simpler programs be written in languages that at least make an attempt to be memory-safe?
Of course you can. You should pick the right tool for the job.

There is a catch, however. Some languages will not allow you to take some shortcuts you know are safe unless you can prove them safe.