Издательство: | Addison-Wesley |
Дата выхода: | сентябрь 2002 |
ISBN: | 0-201-91465-4 |
Объём: | 306 страниц |
Масса: | 570 г |
Размеры(В x Ш x Т), см: | 24 x 17 x 2 |
Обложка: | твёрдая |
These are the timesaving techniques relished by computer hackers--those devoted and persistent problem-solvers engrossed in their code who seek elegant and efficient solutions for building better software. The truth is that much of the computer programmer\'s job involves a healthy mix of arithmetic and logic. In Hacker\'s Delight, veteran programmer Hank Warren shares the tricks he has collected from his considerable experience in the worlds of application and system programming. Most of these devices are eminently practical, but a few are included just because they are interesting and unexpected. The resulting work is an irresistible collection that will help even the most seasoned programmers better their craft.
Topics covered include:
A collection useful programming devices the author has collected over the years
Small algorithms for common tasks
Power-of-2 boundaries and bounds checking
Rearranging bits and bytes Integer division and division by constants
Some elementary functions on integers
Gray code
Hilbert\'s space-filling curve
And even formulas for prime numbers!