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/pdp10 May 01 '18

Lisp predates C considerably, and in 1985 was the second-most popular language after C in TIOBE (such as TIOBE is). The third was a version of Pascal, which has also been a relatively popular systems language along with C and Lisp, but was not C derived as it predated C.

Therefore we can conclude that nobody was forced by lack of alternatives to use C or to have C-influenced constructs in new languages.

C just has no concept of your GPU

It has no concept of a mouse, either, despite the mouse being invented in 1968. Use a library, just like we use a C library with inline assembler to access platform SIMD or crypto instructions. (Does the Haskell language have a concept of a mouse?)

1

u/AntiauthoritarianNow May 02 '18

It has no concept of a mouse, either

It's more like how, e.g., C has no concept of hard drives, but the standard library presents its own concept of files. Similarly, the language has no concept of a CPU, but it does present its expectations of its execution environment. The argument is that this environment is defined in a way that isn't amenable to a real-life CPU+GPU system. "Pass it off to a library" is a valid option, but it's not exactly first class and certainly isn't "low level".