logoalt Hacker News

hn_submityesterday at 5:41 PM3 repliesview on HN

C is literally "high level assembly" and therefore lacks any guard rails you'd expect in a programming language. It's just unfortunate that so many software developers embraced C for its speed, even when it wasn't strictly needed.

I always remind people that C is a systems programming language and not fit for regular application programming. For that you need an application programming language like Pascal or Java.


Replies

sitzkriegyesterday at 6:19 PM

yea, we certainly wouldn’t want regular user applications to run fast or respect user resources. can’t have that

show 3 replies
inigyouyesterday at 7:25 PM

C should be considered powerful, more than fast. Part of that power is that it doesn't try to stop you from going so fast it's unsafe. But that's just one way you can choose to use your power.

emilfihlmanyesterday at 7:06 PM

>therefore lacks any guard rails you'd expect in a programming language

This is simply not true. Guardrails are enforced by the compiler, and both gcc and clang have a myriad of flags to make C safe, not to mention Fil-C.