News for hackers. Stuff that matters.
Re:Some Assembly Required: An approachable introduction to a... by weinzierl on Tuesday June 28, 2022 @01:23PM (#31910466)
This is like saying chess is simple stuff because you can learn how the pieces move in five minutes.

If all you want is a basic understanding of how things work, that level is ok. If you want to play/program, it is a completely different story.

I'd even go so far to say: Why do assembly if your goal is not to be better than the compiler, at least in some respect? Beating the compiler, now tell me that it's simple stuff.

Re:Some Assembly Required: An approachable introduction to a... by djmips on Tuesday June 28, 2022 @01:43PM (#31910702)
But chess is approachable because you can learn how the pieces move in five minutes. Contrast that with some German board games where going over the instructions is the first hour and even then you aren't sure if you understand.

Why learn assembly?, well for one, the non-abstract aspect of assembly is less abstract, and arguably easier to understand than even the simplest high level languages. Secondly, learning assembly is also learning how computers work and that paradigm will help you even as you largely work in a high level language.

And beating the compiler isn't as hard as you might think if that becomes necessary some day.

Re:Some Assembly Required: An approachable introduction to a... by galangalalgol on Tuesday June 28, 2022 @03:30PM (#31911985)
I only read assembly these days, not write it. Usually when looking at profiling outputs for my hot path. So knowing assembly is still very valuable when you routinely find your code isn't keeping up with your data, and scaling isn't an option.
Re:Some Assembly Required: An approachable introduction to a... by khalladay on Tuesday June 28, 2022 @07:47PM (#31914603)
Another use case for assembly is reverse engineering, even if you aren't better than the compiler, being able to understand what the compiler spit out is really handy.
Re:Some Assembly Required: An approachable introduction to a... by astrange on Tuesday June 28, 2022 @01:30PM (#31910557)
A compiler’s main virtue is patience, not smarts. That’s because there’s no value in smarts; the systems like Itanium designed to need them turned out to be unusable.