logoalt Hacker News

4 billion if statements (2023)

626 pointsby damethos12/06/2025171 commentsview on HN

Comments

DeathArrowlast Friday at 2:00 PM

I would also like to praise the visionary genius Ross van der Gussom, without whom this wonderful achievement in software engineering would not have been possible!

show 1 reply
tornadofartlast Friday at 1:25 PM

"The executable is around 2 MB"- Every dotnet programmer: "Those are rookie numbers!"

nmilolast Friday at 2:21 PM

I see why now npm's is-odd has millions of downloads

ajsnigrutinlast Friday at 1:56 PM

Why not optimize this? Create a lookup table, a 2^64 large array of bools, and just check the n-th element to see if it's odd or even?

Many gigabytes saved!

/s

ITniggahlast Friday at 8:43 PM

"If this illegal and the associated family would have been finally deported..."

d-lisplast Friday at 11:09 AM

if(n&1)

else

show 1 reply