this post was submitted on 28 Mar 2024
357 points (93.6% liked)

Programmer Humor

32483 readers
424 users here now

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

Rules:

founded 5 years ago
MODERATORS
top 50 comments
sorted by: hot top controversial new old
[–] [email protected] 262 points 7 months ago (4 children)

Size of an uncompressed image of the Washington Crossing the Delaware painting = 1 Yankee

12 Yankees in a Doodle

60 Doodles in an Ounce (entirely unrelated to the volume or weight usage of ounce)

[–] [email protected] 75 points 7 months ago (2 children)
[–] [email protected] 41 points 7 months ago (3 children)

That's too straightforward. It should be 113 Doodles in a Dandy. And 73 Dandies in a Macaroni.

load more comments (3 replies)
load more comments (1 replies)
[–] [email protected] 38 points 7 months ago (3 children)

Make sure to make the specific term "Computer Ounce", or co. oz.

[–] [email protected] 10 points 7 months ago

Better yet, just use "cooz" as the "common unit"

Then it's proportioned following fluid ounce measurements from there. e.g. "coc" (computer cup) is 16 coozes.

load more comments (2 replies)
[–] [email protected] 27 points 7 months ago* (last edited 7 months ago)

Sampled at what resolution, though? It's a physical painting and the true, atomic-scale resolution would make this whole system useless.

May I suggest the entire constitution in ASCII (American Standard Code for Information Interchange) instead? Bonus points if any future amendments change the whole system.

Edit: I suppose you actually want to start small. Maybe just the declaration sans-signatures, then. So, 6610*7 = 46,270 bits.

load more comments (1 replies)
[–] [email protected] 158 points 7 months ago (2 children)

How about feet of IBM punch cards?

A 1 foot tall stack holds 1,647,360 bits of data if all 80 columns are used. If only 72 columns are used for data then it's 1,482,624 bits of data and the remaining columns can be used to number each card so they can be put back in order after the stack is dropped.

[–] [email protected] 40 points 7 months ago (1 children)

I like this because the amount of bits in a stack can vary depending on whose foot you use to measure, or the thickness of the card stock.

[–] [email protected] 13 points 7 months ago

IBM standard cards are one 48th of a barleycorn thick. I believe IBM measured from the 1932 Iowa Reference Barleycorn, now kept in the vault inside Mt Rushmore.

[–] [email protected] 24 points 7 months ago

THIS is what I’m talking about!

[–] solrize 89 points 7 months ago* (last edited 7 months ago) (2 children)

1 tweet = 140 bytes

1 (printed) page = 60 lines of 60 characters = 3600 bytes

1 moa (minute of audio in 128000 bps mp3) = 960000 bytes

1 mov (minute of video) = typically around 30MB but varies by resolution and encoding, like ounces vs troy ounces vs apothecary ounces.

1 loc (library of congress, used for measuring hard drive capacity) = around 10TB depending on jurisdiction.

load more comments (2 replies)
[–] [email protected] 83 points 7 months ago (1 children)

bit, Nibble, Byte, Word, doubleword, longword, quadword, double-quadword, verylongword, halfword

They check all Imperial criteria:

  • confusing names
  • some used only in some systems
  • size depends on where you are
  • some may overlap
  • doesn't manage to cover all the possible needs, but do you really need more than 64 bits?
  • would probably cause you to crash a rocket
load more comments (1 replies)
[–] DontRedditMyLemmy 52 points 7 months ago (2 children)

Did anyone say Magabyte yet?

[–] [email protected] 31 points 7 months ago

1/6th of a MAGAbyte is an insurrection

[–] laughterlaughter 10 points 7 months ago

Ugh. I hate you.

Upvoted.

[–] [email protected] 51 points 7 months ago* (last edited 7 months ago) (2 children)

I would suggest:

  • 1KB = storage capacity of 1 kg of 1.44 floppy disks.
  • 1MB = storage capacity of 0.0106 mile of CD drives.
  • 1GB = storage capacity of 1 good computer in the 2000s.
  • 1TB = storage capacity of 1 truck of GB (see above)

PS: just to be clear, I meant CD drives, not CD discs.

[–] WayTooDank 23 points 7 months ago (1 children)

1 kg

(͡•_ ͡• )

Don't you mean one pound, abbreviated lb?

[–] [email protected] 25 points 7 months ago

Naw, it's actually one Kinda Gallon; a Kinda Gallon of course referring to the average of the masses of a gallon of water, a gallon of beer, and a gallon of whiskey.

[–] laughterlaughter 10 points 7 months ago (1 children)

I know you're joking, but that first Kb definition makes me grind my teeth!

1.44 floppy disks can store, well, 1.44 MEGAbytes. So how can 1 kg of floppy disks can just store 1 KB?

[–] [email protected] 20 points 7 months ago* (last edited 7 months ago) (1 children)

Thank you for your compliment. I love it. The floppy disk is 1.44 non-freedom MB, not 0.015264 miles of CD drives.

load more comments (1 replies)
[–] [email protected] 49 points 7 months ago* (last edited 7 months ago) (3 children)

KiB, MiB, GiB etc are more clear. It makes a big difference especially 1TB vs 1TiB.

The American way would probably be still using the units you listed but still meaning 1024, just to be confusing.

Either that or maybe something that uses physical measurement of a hard-drive (or CD?) using length. Like that new game is 24.0854 inches of data (maybe it could be 1.467 miles of CD?).

[–] [email protected] 16 points 7 months ago (3 children)

The difference really needs to be enforced.

My ram is in GiB but advertised in GB ???

load more comments (3 replies)
load more comments (2 replies)
[–] [email protected] 45 points 7 months ago

Most people would use "word", "half-word", "quarter-word" etc, but the Anglophiles insist on "tuppit", "ternary piece", "span" and "chunk" (that's 5 bits, or 12 old bits).

[–] DontRedditMyLemmy 44 points 7 months ago

A milebyte is 5280 bytes

[–] [email protected] 34 points 7 months ago (4 children)

my harddrive is 250 toby keiths and my processer is 500 lee greenwoods

load more comments (4 replies)
[–] [email protected] 32 points 7 months ago (1 children)

Mp3s, standard def movies, HD movies, and 4k movies.

[–] [email protected] 17 points 7 months ago

I’ve seen so many products advertised by how many “songs” or “movies” it can hold. Never mind you can encode the same movie to be massive or small. So I think we’ve found the right answer!

[–] [email protected] 31 points 7 months ago (1 children)

why go for RAMs when the constitution says ARMs...

and no more bits or bytes too, double bytes small or quadbytes regular size all the way.

  • kilo bytes is a grand

  • mega bytes is a venti

  • giga bytes is a grand venti

  • terabytes is a doble venti

really large amounts of ARM is a ton

load more comments (1 replies)
[–] prime_number_314159 29 points 7 months ago (3 children)

From smallest to biggest:

Bits (basic unit)

Bytes (8:1 reduction)

Words (4:1 reduction)

KiB (32:1 reduction)

MiB (1024:1)

GiB (1024:1)

TiB (1024:1)

PiB (1024:1)

A normal amount of porn (237:1)

[–] [email protected] 14 points 7 months ago* (last edited 7 months ago) (2 children)

All definitely not metric as metric uses steps of 1000 (and there's also 10 and 100 and 1/10th and 1/100th but that doesn't extend to 10000 and 1/10000th).

The KiB, MiB, etc, the 2^10 scale is called binary prefixes (as opposed to decimal prefixes KB, MB, etc) and standardised by the IEC.

And while the B in KiB is always going to mean eight bits it's not a given that a byte is actually eight bits, network people still use "octet" to disambiguate because back in the days there were plenty of architectures around with other byte sizes. "byte" simply means "smallest number of bits an operation like addition will be done in" in the context of architectures. Then you have word for two bytes, d(ouble)word for four, q(uad)word for eight, o(cto)word for 16, and presumably h(ex)word for 32 it's already hard to find owords in the wild. Yes it's off by one of course it's off by one what do you expect it's about computers. There's also nibble for half a byte.

EDIT: Actually that's incorrect word is also architecture-dependent, the word/dword/qword sequence applies to architectures (like x86) which went from being 16-bit machines to now being 64 bit while keeping backwards compatibility. E.g. RISC-V uses 32-bit words, 16 bits there are a half-word.

The bit, at least, is not under contention everyone agrees what it is. Though you can occasionally see people staring in wild disbelief and confusion at statements such as "this information can be stored in ~1.58 bits". That number is ~ log~2~ 3, that is, the information that fits in one trit. Such as "true, false, maybe".

load more comments (2 replies)
load more comments (2 replies)
[–] Witchfire 28 points 7 months ago* (last edited 7 months ago) (1 children)

12 bits to an eagle

27 eagles to a liberty (changes whenever an amendment is added)

1776 liberties to a freedom

Computers are still programmed in bytes, but filesize is always in freedoms.

load more comments (1 replies)
[–] waz 27 points 7 months ago (3 children)

I know you asked about memory, but the computer I just assembled had a 750watt power supply. As an American I think we should refer to it as a "one horsepower power supply" instead.

load more comments (3 replies)
[–] [email protected] 25 points 7 months ago (2 children)

We should measure size of files/storage as a function of how many standardized png's of an american flag would fit in the same amount of space.

[–] [email protected] 11 points 7 months ago* (last edited 7 months ago) (2 children)

We should measure size of files/storage as a function of how many ~~standardized~~ png’s of an american flag would fit in the same amount of space.

Fixed it, I will not be oppressed by your standards

load more comments (2 replies)
load more comments (1 replies)
[–] [email protected] 22 points 7 months ago (1 children)
[–] [email protected] 19 points 7 months ago (1 children)

If it's for American context then you mean 1 baby

load more comments (1 replies)
[–] [email protected] 18 points 7 months ago (4 children)

char, short, int, long, long long

load more comments (4 replies)
[–] [email protected] 16 points 7 months ago (1 children)

M$ already fucked that up for everybody calling GiB GB.

load more comments (1 replies)
[–] Buffalox 14 points 7 months ago* (last edited 7 months ago) (1 children)

May I suggest OB for Ounce Byte, or 28.35 Byte, one 16th of a PB PoundByte which is 453,6 Bytes.
These measures are both practical as freedom units because it's base is close to 28, which is clearly more suitable than 32 as a freedom unit base number, and the Pound Byte can be easily halved 4 times to make an Ounce Byte. Which makes it about as convenient as other freedom units.

load more comments (1 replies)
[–] [email protected] 13 points 7 months ago

Probably something based on 1/6 th of a byte that originates form old IBM systems that used 6 bits per byte that was then later never changed into 8 bit systems so you now have to convert between 6 bit and 8 bit systems and then fractions, gotta get those good fractions. So they'd say something like my SSD is 170⅔ GB for a 128GB drive

[–] [email protected] 12 points 7 months ago (3 children)
load more comments (3 replies)
[–] [email protected] 12 points 7 months ago (1 children)

I use jiffies to refer to clock speed.

load more comments (1 replies)
[–] andrewth09 12 points 7 months ago* (last edited 7 months ago) (1 children)

My CPU is running at 2.6 Triple thou cycles per imperial second (TTiS)

load more comments (1 replies)
[–] LEDZeppelin 11 points 7 months ago (2 children)

Football fields, Olympic size swimming pools, hotdogs, and quarters

load more comments (2 replies)
[–] [email protected] 11 points 7 months ago

1 bible = 69 porn clips = 420 feet (unrelated to the other measurement)

load more comments
view more: next ›