177
Mistakes (lemmy.ml)
submitted 2 days ago by yogthos@lemmy.ml to c/memes@lemmy.ml
top 4 comments
sorted by: hot top controversial new old
[-] velox_vulnus@lemmy.ml 8 points 2 days ago

For the life of me, I can't still figure out what PDP-11 virtual machine architecture is, and why it exists for C. And does that makes the situation somehow bad?

[-] yogthos@lemmy.ml 8 points 2 days ago
[-] xthexder@l.sw0.com 2 points 2 days ago

Interesting read.
I think by all the same arguments, running raw machine code (not even assembly) is not a "low-level language" either by their definition.
The branch prediction, instruction-level-parallelism, and cache behaviors all happen in hardware at a lower level than the programmer can control.

All the talk about compiler optimizations seem irrelevant because you can still just turn them off and output simple machine code.

I'm not really sure what the point of arguing the distinction is anyway? Any practical arguments would be much more specific about typical high-level features like garbage collection.

[-] yogthos@lemmy.ml 2 points 2 days ago

Right, what we call low level is really just an emulation layer that's actually at odds with how the actual hardware works. Interestingly enough, it seems like functional style provides a programming model that can be optimized better because it doesn't rely on global shared state.

this post was submitted on 04 Jul 2024
177 points (96.3% liked)

Memes

44122 readers
1353 users here now

Rules:

  1. Be civil and nice.
  2. Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.

founded 5 years ago
MODERATORS