r/programming • • May 01 '18

C Is Not a Low-level Language - ACM Queue

https://queue.acm.org/detail.cfm?id=3212479
152 Upvotes

303 comments sorted by

View all comments

Show parent comments

101

u/yiliu May 01 '18

So really what he's saying is that C is a low-level language...for a different (and much simpler) system than what your code is actually running on. What you're actually running on is kind of a PDP-11 hardware emulation layer on top of a heavily-parallelized multi-core architecture with complex memory and cache layouts. Maintaining that hardware emulation layer is becoming a burden, and is starting to result in exploits and regressions.

10

u/munificent May 03 '18

Maintaining that hardware emulation layer is becoming a burden

I think a better way to describe it is that it's an increasingly leaky abstraction. And those leaks are becoming so bad that we should consider whether it's even the right abstraction to use anymore.

9

u/Valmar33 May 02 '18

Would make a good tl;dr. :)

3

u/[deleted] May 03 '18

So really what he's saying is that C is a low-level language...for a different (and much simpler) system than what your code is actually running on.

Something like Itanium actually. I'm not sure if those features are actually exposed in any architecture anyone actually uses.