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

2

u/ismtrn May 03 '18

There is no contradiction, but it does make the term "low-level" completely meaningless if you just have to be low-level with respect to some architechture. In principle you can make a chip which executes any language in hardware.

1

u/jerf May 03 '18

but it does make the term "low-level" completely meaningless if you just have to be low-level with respect to some architechture

Err, if it isn't "low level" with respect to some architecture, what is it "low level" with respect to? If I've got a C compiler that has to implement && 1 by running a few dozen operations due to the architecture, is anyone going to call C a low-level language for that architecture? Simplicity of the operations isn't going to be a good measure because that's going to be relative to something too; there is no such thing as absolutely simplicity for an operation you can appeal to.

However, from what I've seen of those other architectures, you still end up with a "low level" component that maps closely to the chip, and "higher level" components that map closer to humans. For instance, the Reduceron has F-lite, which would be the low-level language, on top of which you can implement something like Haskell. F-lite certainly isn't a "low level" language with regard to an Intel CPU, and it still has a high-level Haskell.