Deliver to your Kindle or other device

 
 
 

Try it free

Sample the beginning of this book for free

Deliver to your Kindle or other device

Sorry, this item is not available in
Image not available for
Colour:
Image not available
 

Hacker's Delight (2nd Edition) [Kindle Edition]

Henry S. Warren
5.0 out of 5 stars  See all reviews (3 customer reviews)

Print List Price: £36.99
Kindle Price: £20.09 includes VAT* & free wireless delivery via Amazon Whispernet
You Save: £16.90 (46%)
* Unlike print books, digital books are subject to VAT.

Free Kindle Reading App Anybody can read Kindle books—even without a Kindle device—with the FREE Kindle app for smartphones, tablets and computers.

To get the free app, enter your e-mail address or mobile phone number.

Formats

Amazon Price New from Used from
Kindle Edition £20.09  
Hardcover £30.14  
Kindle Daily Deal
Kindle Daily Deal: Up to 70% off
Each day we unveil a new book deal at a specially discounted price--for that day only. Learn more about the Kindle Daily Deal or sign up for the Kindle Daily Deal Newsletter to receive free e-mail notifications about each day's deal.

Book Description

In Hacker’s Delight, Second Edition, Hank Warren once again compiles an irresistible collection of programming hacks: timesaving techniques, algorithms, and tricks that help programmers build more elegant and efficient software, while also gaining deeper insights into their craft. Warren’s hacks are eminently practical, but they’re also intrinsically interesting, and sometimes unexpected, much like the solution to a great puzzle. They are, in a word, a delight to any programmer who is excited by the opportunity to improve.


Extensive additions in this edition include

  • A new chapter on cyclic redundancy checking (CRC), including routines for the commonly used CRC-32 code
  • A new chapter on error correcting codes (ECC), including routines for the Hamming code
  • More coverage of integer division by constants, including methods using only shifts and adds
  • Computing remainders without computing a quotient
  • More coverage of population count and counting leading zeros
  • Array population count
  • New algorithms for compress and expand
  • An LRU algorithm
  • Floating-point to/from integer conversions
  • Approximate floating-point reciprocal square root routine
  • A gallery of graphs of discrete functions
  • Now with exercises and answers

 



Product Description

Review

“This is the first book that promises to tell the deep, dark secrets of computer arithmetic, and it delivers in spades. It contains every trick I knew plus many, many more. A godsend for library developers, compiler writers, and lovers of elegant hacks, it deserves a spot on your shelf right next to Knuth. In the ten years since the first edition came out, it’s been absolutely invaluable to my work at Sun and Google. I’m thrilled with all of the new material in the second edition.”

— Joshua Bloch

 

“When I first saw the title, I figured that the book must be either a cookbook for breaking into computers (unlikely) or some sort of compendium of little programming tricks. It’s the latter, but it’s thorough, almost encyclopedic, in its coverage. The second edition covers two new major topics and expands the overall collection with dozens of additional little tricks, including one that I put to use right away in a binary search algorithm: computing the average of two integers without risking overflow. This hacker is indeed delighted!”

— Guy Steele

About the Author

Henry S. Warren, Jr., has had a fifty-year career with IBM, spanning from the IBM 704 to the PowerPC and beyond. He has worked on various military command and control systems and on the SETL (SET Language) project under Jack Schwartz. Since 1973, Hank has been with IBM’s Research Division, focusing on compilers and computer architectures. He currently works on a supercomputer project aimed at an exaflop. Hank received his Ph.D. in computer science from the Courant Institute at New York University.


Product details

  • Format: Kindle Edition
  • File Size: 23670 KB
  • Print Length: 512 pages
  • Simultaneous Device Usage: Up to 5 simultaneous devices, per publisher limits
  • Publisher: Addison-Wesley Professional; 2 edition (25 Sept. 2012)
  • Sold by: Amazon Media EU S.à r.l.
  • Language: English
  • ASIN: B009GMUMTM
  • Text-to-Speech: Enabled
  • X-Ray:
  • Word Wise: Not Enabled
  • Average Customer Review: 5.0 out of 5 stars  See all reviews (3 customer reviews)
  • Amazon Bestsellers Rank: #279,927 Paid in Kindle Store (See Top 100 Paid in Kindle Store)
  •  Would you like to give feedback on images?


More About the Author

Discover books, learn about writers, and more.

What Other Items Do Customers Buy After Viewing This Item?


Customer Reviews

4 star
0
3 star
0
2 star
0
1 star
0
5.0 out of 5 stars
5.0 out of 5 stars
Most Helpful Customer Reviews
1 of 1 people found the following review helpful
5.0 out of 5 stars awesome 12 May 2013
Format:Hardcover|Verified Purchase
One of the best books I've read in ages. Lots of interesting tips and ideas. Lots of 'ah ha' moments when you realise that you sort of knew this all along but now that somebody mentioned it, yeah, I'll do it that way from now on ! Pure hacker enjoyment.
Comment | 
Was this review helpful to you?
1 of 1 people found the following review helpful
5.0 out of 5 stars Even better than the first edition 27 Jan. 2013
Format:Hardcover|Verified Purchase
The additions to the 1st edition and corrections of errata make this a required book on your shelf. It's a great improvement on a classic.
Comment | 
Was this review helpful to you?
5.0 out of 5 stars Great book! 18 April 2014
Format:Hardcover|Verified Purchase
This is not a book for those that are starting to program, but for those who want to tweak your programs! You will learn some tricks, for exemple exchanging the value of two variable without using an auxiliary one.
Comment | 
Was this review helpful to you?
Most Helpful Customer Reviews on Amazon.com (beta)
Amazon.com: 4.5 out of 5 stars  22 reviews
23 of 23 people found the following review helpful
5.0 out of 5 stars Very, very useful 5 Dec. 2012
By Edward Jennings - Published on Amazon.com
Format:Kindle Edition
Well written and (relatively) concise book. It contains numerous techniques for efficiently managing binary data and various examinations of bitwise arithmetic.

The algorithms explained are detailed and useful. I've used a number of them 'in anger' and they've worked perfectly. I haven't come across any other book that addresses the field as well as this one does.
9 of 9 people found the following review helpful
5.0 out of 5 stars A version upgrade 8 Jan. 2013
By Erebus - Published on Amazon.com
Format:Hardcover|Verified Purchase
Hacker's Delight first edition was resourceful. This second edition even more so.

The bit manipulation chapters have lots of hints on how to code without branches.

There are some "scary" math on later chapters but you can ignore it.
12 of 14 people found the following review helpful
5.0 out of 5 stars excellent book of hacks 5 Feb. 2013
By hardly_b - Published on Amazon.com
Format:Hardcover|Verified Purchase
The book is full of useful bit-twiddling tricks. How do you quickly count the number of bits set in a 2's complement long integer? If you can't imagine caring, then this book isn't for you, but if you need to write fast, low-level code on occasion, the price of the book will be repaid the first time you find a clear explanation of some trick, instead of having to figure it out for yourself. It's a more polished, restricted version of Hackmem, which I also recommend.
7 of 8 people found the following review helpful
5.0 out of 5 stars Great upgrade 24 Jan. 2014
By wiredweird - Published on Amazon.com
Format:Hardcover|Verified Purchase
I rarely recommend a second edition of anything to someone who owns the first, but this stands out as a worthy exception. It starts with the amazing menagerie of slick tricks that the first edition had, but adds material regarding CRCs, error correction, creative arithmetic, and more. Oh, I'm sure you can get by without these for lots of purposes. When efficiency really matters, though, or when you need to work in constrained environments (like small embedded processors that lack floating point or maybe even division instructions), approaches like these more than make up for the effort involved in using them. And, if you code in VHDL or Verilog instead of sequential languages, tools like these can help you past that last nanosecond to meet timing.

Highly recommended, not just because my copy of the first edition came with so many poorly-bound, loose pages.

-- wiredweird
2 of 2 people found the following review helpful
5.0 out of 5 stars Hacker's Delight -- valuable addition to a programmer's collection 12 April 2014
By Rick Tanney - Published on Amazon.com
Format:Hardcover|Verified Purchase
This book focuses on low-level programming algorithms designed to optimize code efficiency and execution speed. Serious programmers will benefit from studying this volume.
Were these reviews helpful?   Let us know
Search Customer Reviews
Only search this product's reviews

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 

Search Customer Discussions
Search all Amazon discussions
   


Look for similar items by category