Post your setup!

The place to discuss ANYTHING not related to the Monster Hunter universe. Please, keep politics, religions, and any controversial topic out of this section.
User avatar
Grender
Admin
Posts: 123
Joined: Tue Jun 27, 2023 11:59 pm
Location: Spain and Kokoto
Contact:

Re: Post your setup!

Post by Grender »

Kresna wrote: Wed Aug 09, 2023 12:39 am Grainy photo of my desk

Image
I love everything about your photo! Is Hacker's Delight worth a read?
Server Admin & Developer — Want to support my work? https://ko-fi.com/grender

MH1: Aeryx, HR20 · MHG: N/A · MH2: Grender, HR12
User avatar
Kresna
Greenhorn
Posts: 15
Joined: Thu Jun 29, 2023 12:24 am

Re: Post your setup!

Post by Kresna »

Grender wrote: Mon Aug 14, 2023 10:37 pm I love everything about your photo! Is Hacker's Delight worth a read?
Thank you!

As for Hacker's Delight, it's a great book, but it's uses in modern programming are basically zero.

It's a collection of clever math hacks and bit tricks with a focus on optimising RISC assembly. The book uses three different kinds of notation, computer algebraic notation, a "basic RISC" instruction set (the most common shared opcodes across RISC architectures at the time), and C code. If you're writing MIPS assembly (hello, PS2!), or RISC assembly for another system, and you need extremely fast math, then it's pure gold.

If the reader mostly spends time with JIT compiled languages, or interpreted languages, then the book is worthless. I don't think many readers would get much out of it even if they were writing modern C/C++, because CISC architecture has evolved so much, and modern computing power so cheap, that taking the time to write inline assembly probably isn't worth it (and you'll probably be beaten by modern compilers, too).

But, don't let me put you off the book! I don't use it often, but when I do it's priceless! I think there's some merit to at least seeing some of these tricks, and, honestly, it's a tome of pure engineering marvels. If you can pick up a used copy for cheap, I think you'll enjoy it!
Post Reply

Return to “Off-Topic”