3 ms·
Yes, except it's "less abstract" than any other language in mainstream use...
by icedchai 7y ago
Yes, except it's "less abstract" than any other language in mainstream use...
- Tomte 7y agoYou're right. But that wasn't my point. My point was that C isn't the close-to-the-machine language that many programmers think it is. That other languages don't qualify, either, is beside the point. Ruby or Java aren't mistaken to be close-to-metal. Point in case: you don't even see anything about Harvard vs. von Neumann architecture in portable C sources. Not to speak of micro code or anything like that.
- icedchai 7y agoRuby and Java aren't mistaken to be close-to-metal because they aren't. C is primarily about memory access and structure at a relatively low level. How do you explain that most operating system kernels and device drivers are written in C? Again, C is much closer to the machine than anything else in mainstream use. The C "abstract machine" is mostly a myth.
- Tomte 7y agoAgain, I don't dispute that C is much closer to the metal than Java. I'm disputing that the C execution model is adequately and exhaustively modelling the idiosyncracies of real existing modern hardware, where "modern" means "almost anything in my lifetime".
- takeda 7y ago> You're right. But that wasn't my point. My point was that C isn't the close-to-the-machine language that many programmers think it is. It is, but what happened though, is that assembly/machine language no longer is as close to the real machine as it was in the past, it is an abstraction on top of micro code. The high level languages that you mentioned are further away, and competition abstracted away from the assembly.