4 ms·
Very interesting point of view. I wish I had projects (like games) that could benefit to craft meticulously with C. The feel of coding closer to the hardware is
by htk 7y ago
Very interesting point of view. I wish I had projects (like games) that could benefit to craft meticulously with C. The feel of coding closer to the hardware is great.
- krapp 7y agoI'm not sure C is that much closer to the hardware, nowadays.
- kccqzy 7y agoC is closer to the hardware in the sense that with any given C code, I can pretty much predict what the generated assembly will look like. You cannot say the same for, say, Python.
- Koshkin 7y ago> pretty much Not really... Not only the generated assembly code heavily depends on the compiler (LLVM, gcc, Intel, MSVC...) and the optimization settings, you cannot be completely sure what the machine code generated by the assembler even looks like these days.
- someguydave 7y agoand you also won't be able to predict the timings of complex code as various "uncore" and on-core resource limitations bite
- stephc_int13 7y agoThe goal is not actually to write bare metal super optimized code, most of the time. The goal (at least mine and of some authors following this minority trend) is to write and read simpler, more straightforward code. Take a look at the code in the examples of the following url to see what I mean. https://www.raylib.com/examples.html https://www.raylib.com/examples.html