News for hackers. Stuff that matters.
Re:The faker's guide to reading (x86) assembly language by 15155 on Wednesday January 04, 2023 @11:45AM (#34247889)
In my opinion, most articles, lessons, etc. that purport to teach assembly miss the forest for the trees. This is a good article for someone wanting to learn "what assembly _is_" - but I have yet to see an article targeted to programmers that would teach "how do I practically use this."

One can learn the vague syntax complexities, etc. - maybe even write a Hello World..but without having real-world exposure of what compilers actually do to source code, people cannot actually derive meaningful signal or intuition. A very experienced programmer without exposure to assembly might be able to optimize a tight loop or spot a performance issue, but that's probably the extent of it.

Complexity increases as you introduce platform-specific calling conventions, APIs, etc.

I don't know a better way to acquire assembly intuition than by implementing a RISC-V CPU or staring at a lot of decompiled output.

Re:The faker's guide to reading (x86) assembly language by GaNuongLaChanh on Wednesday January 04, 2023 @12:10PM (#34248305)
AsmBB - a forum written in Assembly prove that usage
Re:The faker's guide to reading (x86) assembly language by rcarr on Wednesday January 04, 2023 @01:50PM (#34249727)
I've heard nothing but good things about this course which should do the trick:

https://www.nand2tetris.org

It on my todo list at some point, maybe this year or next.

Re:The faker's guide to reading (x86) assembly language by markus_zhang on Wednesday January 04, 2023 @04:38PM (#34252131)
I completed the hardware part last month. It's definitely accessible and serves as a good entry project for interested students. However it glossed over a lot of things (that even I'm aware of) so I decided to up the game and find other projects/lectures. The CPU project of University of Tokyo seems interesting but is too tough for whoever just completes nand2tetris. Some bridge project is needed.
Re:The faker's guide to reading (x86) assembly language by rcarr on Thursday January 05, 2023 @11:46AM (#34262562)
I came across this on HN a month or two back, might be the kind of project you're looking for?

https://539kernel.com

Re:The faker's guide to reading (x86) assembly language by markus_zhang on Friday January 06, 2023 @12:25PM (#34277763)
Thanks! That's part of the picture. I'm looking for something similar to nand2tetris but level up one notch. 539kernel definitely can serve as part of the puzzle.
Re:The faker's guide to reading (x86) assembly language by timmisiak on Thursday January 05, 2023 @02:15PM (#34264974)
Covering how to practically use it is far too much for a single post (and I don't think I really claimed to teach assembly... I just want to give people the tools they need to start learning assembly). This was mainly to get people to not be scared and start reading asm, which is really the only way you can learn this stuff. In my opinion, writing a hello world in asm is not useful for most people. But learning enough to understand what part of a complex C++ expression caused a program to crash is much easier, and more widely useful. My plan for future posts is to talk about common compiler-generated code patterns to help people recognize what's causing a crash even if they don't understand every line of asm.