2 ms·
If you want a 'safe' C subset, that's what MISRA C is for, no? C++ is a bit of a different beast, as they occasionally concede performance for convenience/corr
by MaxBarraclough 8y ago
If you want a 'safe' C subset, that's what MISRA C is for, no?
C++ is a bit of a different beast, as they occasionally concede performance for convenience/correctness. std::shared_ptr is always thread-safe, like it or not.
> Otherwise POSIX derived OS will continue to be a collection of security patches and band aids trying to make up for those issues.
Agree. The constant stream of buffer-overflow attacks shows just that.
It's regrettable that C/C++ are the 'default' languages for writing things like web servers, DBMSs, shells. I imagine it wouldn't be impractical to have a lot of kernel code written in a safer language, for that matter.
C is sometimes appropriate, but it's used everywhere.