The Art of 64-bit Assembly
Randall Hyde's latest, "The Art of 64-Bit Assembly, Volume 2", promises to demystify complex programming constructs like OOP, exceptions, and concurrency at the instruction level. This eagerly anticipated book caters to advanced developers who want to understand how high-level concepts translate to raw assembly on Windows. Hacker News users, always keen on low-level technical mastery, will appreciate its focus on genuine understanding over plausible explanations.
The Lowdown
Randall Hyde's new book, "The Art of 64-Bit Assembly, Volume 2", aims to bridge the knowledge gap between high-level language constructs and their underlying machine-level implementations. It delves into how common programming paradigms, often taken for granted in C++, Python, or Rust, are built from scratch using MASM on Windows, ensuring a deep, instruction-level understanding.
Key areas explored and what readers will learn to build include:
- Object-oriented programming elements like vtables, method dispatch, and inheritance, all crafted manually in MASM.
- Windows structured exception handling (SEH) at an instruction-level, including installation and management.
- Higher-order function behaviors through thunks, closures, and iterators.
- Coroutines, generators, and fibers implemented without relying on high-level language features.
- Concurrent programs using direct assembly and synchronization primitives.
- Correct Unicode string handling, a notorious challenge at lower levels.
- Domain-specific macro languages constructed within MASM from fundamental principles.
This volume is designed for experienced assembly programmers who seek to move beyond surface-level explanations and gain an explicit, detailed understanding of how modern software concepts operate at the most fundamental hardware level.