4 ms·
Yeah sorry about the ninja edit. Very often I reply to a comment without actually finishing and then edit it. I thought Hacker News was delaying my comments by
by doodlesdev 4y ago
Yeah sorry about the ninja edit. Very often I reply to a comment without actually finishing and then edit it. I thought Hacker News was delaying my comments by 1 minute though according to my configs? Anyways, I agree that you don't really need a deep understanding of the hardware nowadays to write C, but my point is that it's still useful to learn because you still need more understanding of the hardware than you need to write something such as Ruby.
The point the OP was making is that it still forces you to learn more about the hardware than other languages. Arguably, it also forces you to learn more about the software itself with things being much more explicit than in a modern complex language such as Rust. I'm also just not aware of _any_ language that actually maps well to what the CPU is doing nowadays since they are such complex pieces of silicon.
- Mike_12345 4y agoBut does it really force you to learn more about the hardware versus other languages? I am challenging that assumption or belief. C has memory pointers, but those are pointers in a flat memory space abstracted over the physical memory hierarchy. So yes, you do need to understand that the hardware has memory addresses and that pointers can reference memory addresses. Aside from that I don't see much difference to Java or Python in terms of requiring a deeper understanding. Even Python has bitwise operators.
- Kamq 4y ago> Aside from that I don't see much difference to Java or Python in terms of requiring a deeper understanding. The big difference would be that it requires you to understand the difference between stack vs heap allocation.