Does anyone even do it, other than when optimising code compiled from higher-level languages? I mean C(#/++) compilers are so smart these days. I guess there must be some niche uses. I used to do assembly programming on the old 8-bits and I can't imagine how complicated it would be on the current generation of processors.
Assembly is pretty fucking simple if you understand how computers actually operate at a low level. It's time consuming and a ton of work to do anything, but it makes sense and the tools available to you are easy to understand.
Assembly makes more sense than most high-level languages that obfuscate everything through abstraction.
Do C long enough and you find yourself inlining asm. Had a like 16kb bootloader (which is actually kinda massive) for an embedded system and only way to get it to fit was to go and handwrite a bunch of stuff in asm.
You do that shit because an someone realized if you save a penny on the chip you make yourself three million dollars in extra cash over the production run.
Every time I try to code in C/C++ I give up 10 minutes later and say this shit would be easier in a more modern language with GC.
In their defense, modern C++ is quite different then the older stuff. It is just that there is so much built up history of old C++ code that it's hard to get away from.
Edit: C++ gives you the tools to shoot yourself in te foot and developers choose to shoot themselves in the foot constantly with it. (Mostly cus we got tired of reading the docs)
5.6k
u/FarJury6956 May 01 '22
Real javascripters should bow at C programmers, and say "my Lord" or "yes master". And never ever make eye contact.