DeepRead
Cover of Hacker's Delight

About the book

Hacker's Delight is a collection of small programming tricks that work on individual machine words, mostly for integers in two's-complement form. Its scope is low-level arithmetic and logic: counting 1-bits, bit-field manipulation, and similar operations that combine arithmetic and logical instructions. It leaves out larger topics such as sophisticated sorting and compiler optimization. Its central claim is that many seemingly obscure bit-level techniques can be derived systematically rather than memorized as folklore. The author develops each trick from its underlying arithmetic, showing why it works and how to adapt it to different register sizes. Throughout, the book treats efficient word-level code as a matter of careful reasoning about how integers actually behave in hardware.

Written by Claude from what it knows of this book.

What Hacker News says 74% recommend · 2% critical

0204020082015202020262022 peak · 25
This bookAverage book in Programming classics and Java

In the commenters’ own words

What Open Library readers say 3.00 from 1 rating

  1. 50
  2. 40
  3. 31
  4. 20
  5. 10
  • 58 want to read
  • 4 reading
  • 3 have read

Only 1 rating: treat the average as a hint.

Open Library’s page for the book

What Wikipedia says

  • published 2002
  • 306 pages
  • 1,652 views a month

Read the Wikipedia article

Reddit communities — coming later

The threads it came up in

Details

First published
2002
ISBN
9780321842688
Editions known
4 at Open Library
Open Library
OL8022414W

005.1Computer hackersComputer programmingHackersQa76.6 .w375 2013

Explore in the mosaic

Read next: its neighbours on the mosaic