this post was submitted on 15 Jul 2025
458 points (94.9% liked)

Programmer Humor

37235 readers
23 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] ferric_carcinization@lemmy.ml 4 points 2 days ago (2 children)

I hope that the language's ints are at most 32 bits. For 8 bits it could even be written by hand & the source code for a 32 bit version would only take up avg_line_len * 4GiB space for the source code of the function. But it might take a bit of time to compile a version that supports the full range of 64 or 128 bit ints.

[–] Patches@ttrpg.network 6 points 2 days ago* (last edited 2 days ago)

My mate, Paul, says all numbers after 700 repeat so we can stop there.

We just give them different names so you think they're going up.

[–] segfault11@hexbear.net 6 points 2 days ago

all you have to to is throw an exception if the number is bigger than 100, who even needs numbers that big anyways?