Cover of Hacker's Delight

Hacker's Delight

by Henry S. Warren Jr. · first published 2002

169mentions
105recommended by
142HN commenters
2008–2026first – last mentioned

74% recommend24% neutral2% critical

Why HN recommends it

Collection of bit-twiddling and low-level arithmetic tricks, such as magic-number division, overflow detection, perfect hashing and Montgomery multiplication. Suits performance-minded programmers who enjoy the puzzles.

Summarised by Claude from recommending comments

"This is a collection of small programming tricks that I have come across over many years. Most of them will work only on computers that represent integers in two's-complement form. Although a 32-bit machine is assumed when register length is relevant, most of the tricks are easily adapted to machines with other register sizes." "This book does not deal with large tricks such as sophisticated sorting and compiler optimization techniques. Rather, it deals with small tricks that usually involve individual computer words or instructions, such as counting the number of 1-bits in a word. Such tr

Affiliate links. As an Amazon Associate I earn from qualifying purchases.

Mentions per year

210 2007: 0 mentions2008: 1 mention2009: 5 mentions2010: 10 mentions2011: 10 mentions2012: 7 mentions2013: 5 mentions2014: 7 mentions2015: 12 mentions2016: 8 mentions2017: 17 mentions2018: 3 mentions2019: 11 mentions2020: 13 mentions2021: 9 mentions2022: 21 mentions2023: 9 mentions2024: 7 mentions2025: 3 mentions2026: 3 mentions200720172026

What Hacker News says

Keyboard shortcuts

/
Focus search
j / k
Next / previous book
Enter
Open focused book
Esc
Close / go back
g h
Go to Home
g t
Go to Top all-time
g m
Go to Most recommended
g r
Go to Rising
g f
Go to For You
?
Show this help