4 billion if statements (2023)
andreasjhkarlsson.github.io
4 billion if statements (2023)
1–10 of 183 posts
Re: 4 billion if statements (2023)
#2discussed 2 years ago,
https://news.ycombinator.com/item?id=38790597
4B If Statements (469 comments)
Re: 4 billion if statements (2023)
#3> As a side note, the program is amazingly performant. For small numbers the results are instantaneous and for the large number close to the 2^32 limit the result is still returned in around 10 seconds.
Amazing!
Re: 4 billion if statements (2023)
#4discussed 2 years ago, https://news.ycombinator.com/item?id=38790597 4B If Statements (469 comments)
Meta: Yeah, this should have a "(2023)" tag in the title. Thanks.
Re: 4 billion if statements (2023)
#5> Visionary genius Ross van der Gussom
Thanks for making me doubt myself & googling who that guy who made python was again, because surely "van der Gussom" isn't a normal Dutch name. Well played.
Re: 4 billion if statements (2023)
#6if(n&1)
else
Re: 4 billion if statements (2023)
#7This reminds me of my personal "prime number" grabber research https://github.com/tigranbs/prime-numbers I needed to create the unique graph nodes and assign prime numbers, and to make things efficient, I thought, why not just download the list of known prime numbers instead of generating them one by one. So I did and compiled everything with a single Go binary. Ehh, good old days with a nice feith in making "the best" crappy software out there.
Re: 4 billion if statements (2023)
#8Gemini took 4 seconds to answer this prompt: "Here is a number 4200020010101. Think deeply about it and tell me if it is not or or not even."
So if you're concerned with privacy issues, you can run the assembly version proposed in the article locally and be well within the same order of performance.
Let's thank the author of the article for providing a decent alternative to Google.
ah, but the license is not that good we can't reproduce his code.
Re: 4 billion if statements (2023)
#9If the author is available for consulting I have this bag of rice I need cooked. Should be around 30,000 grains, each needs about 1mL of water and 2m on the stove. Will pay $10 (2025 dollars)
Re: 4 billion if statements (2023)
#10> Now, this is a time-memory tradeoff, but my time on this earth is limited so I decided to meta-program the if statements using a programmer program in a different programming language.
for i in range(2*8):
if i % 2 == 0:
No comment...