this post was submitted on 14 Jan 2025
412 points (90.6% liked)

Programmer Humor

32877 readers
1736 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
[โ€“] luciferofastora@lemmy.zip 4 points 6 hours ago (2 children)

Approximation is an important tool for compressing information into useable forms. All labels are limited approximations too. Such compression is inevitably lossy, but that is a sacrifice for the sake of practicality. The important question is what level of compression is acceptable for a given context. If I describe the location of a chess piece on the board, I don't need to specify how far off-center on its square a given piece is, so a 0-7 offset along each of the two axes is enough for game purposes.

When it comes to gender, I think we all agree that [0, 1] is insufficient, but how do we determine what is sufficient? Do we argue that a 2-bit vector (masc, fem) is enough to describe {neither, fem, masc, both} for rough rounding, or do we need more detailed values along those axes, or perhaps a third axis too (or more)?

[โ€“] DeadMartyr@lemmy.zip 3 points 6 hours ago

This is a very nice and effective blurb, I'm saving this comment for future use

There's no awards/medals here but take this: ๐Ÿฅ‡

[โ€“] qaz@lemmy.world 1 points 5 hours ago

Maybe a byte using bitflags?

[โ€“] Agent641@lemmy.world 2 points 5 hours ago* (last edited 5 hours ago)

Mine is #1B4D3E

[โ€“] UltraGiGaGigantic@lemmy.ml 2 points 5 hours ago

Ayyyyy wanna smash bros?

[โ€“] vane@lemmy.world 1 points 12 hours ago
[โ€“] RandomVideos@programming.dev 22 points 1 day ago (1 children)

Even if every single person in the world had a unique gender, you could store that in 33 bits

You can store that in a small QR code

[โ€“] Floey@lemm.ee 4 points 23 hours ago (1 children)

Those bits wouldn't really provide the information to construct that gender though.

[โ€“] RandomVideos@programming.dev 4 points 19 hours ago

Neither would if you stored it as a bit

[โ€“] logging_strict@lemmy.ml 4 points 1 day ago

lets burn down our civilizations by spending all our wealth discussing this

The issue is based on legal terminology. Gender isn't a legal thing only pushed into our vocabulary.

Allocate an unbound memory blob and sit back for the herd of the Rust coders to line up. Sell them a soda while they do their best chicken parody

[โ€“] LovableSidekick@lemmy.world 13 points 1 day ago (2 children)

So many other things are also non-binary, but people insist that not being 100% on their side means you're a million percent on the extreme opposite hateful wrong side.

[โ€“] rabber@lemmy.ca 4 points 21 hours ago

A lot of the userbase here thinks this way and it's very tiresome

[โ€“] madcaesar@lemmy.world 5 points 1 day ago (1 children)

Absolutely. My baseline is that I want everyone to be treated equally and with respect. I want everyone have the same protections from the government and everyone to be allowed to be and to love whoever they want.

Past that, it gets into minutia I just can't get on board with and it's hurting the left as a whole because people are trying to force language and thought policing on people, which I don't like, it's authoritarian, and I think it's a losing strategy.

[โ€“] LovableSidekick@lemmy.world 3 points 12 hours ago

It's been said that indecisiveness and perfectionism are liberal weaknesses, and decisiveness and being willing to ignore imperfections for the sake of the team are conservative strengths. I think Michael Moore put it best... Liberals say, "What should we do about dinner? I don't know... do you want to go out? I dunno, do you? Well, if you do. Okay, where should we go? I dunno, where do you wanna go?" A conservative slams his hand on the table and says, "Get in the car, we're goin' to the Sizzler!"

[โ€“] CosmicTurtle0@lemmy.dbzer0.com 32 points 1 day ago (4 children)

There are 10 kinds of people in this world. Those who understand binary and those who don't.

[โ€“] luciferofastora@lemmy.zip 2 points 6 hours ago

There are n types of people in this world: Those who don't understand numeral systems, those who understand base x systems for x โˆˆ [2, n] and those who get pedantic about this meta-joke.

[โ€“] bamboo@lemmy.blahaj.zone 31 points 1 day ago (1 children)

There are 10 kinds of people in this world. Those who get ternary; those who don't; those who thought this was going to be a binary joke

[โ€“] stebo02@lemmy.dbzer0.com 11 points 1 day ago (5 children)

There are 10 kinds of people in this world. Those who get quaternary; those who don't; those who thought this was going to be a ternary joke; those who can see where this is going...

load more comments (5 replies)
load more comments (2 replies)
[โ€“] davel@lemmy.ml 40 points 1 day ago (1 children)

My gender is e, which can be represented by neither integers nor floating points.

[โ€“] Rentlar@lemmy.ca 26 points 1 day ago (2 children)

Can it be expressed or represented approximately in IEEE-754 form?

[โ€“] davel@lemmy.ml 41 points 1 day ago* (last edited 1 day ago) (4 children)

Always approximated, never truly represented ๐Ÿ˜ž

[โ€“] ReginaPhalange@lemmy.world 1 points 6 hours ago

No taxation without approximation!

load more comments (3 replies)
load more comments (1 replies)
[โ€“] AnnaFrankfurter@lemmy.ml 19 points 1 day ago (2 children)

Maybe it can be represented by 1qbit

[โ€“] JackbyDev@programming.dev 5 points 1 day ago* (last edited 1 day ago)

I don't think so, because with qubits the intermediate values can be non binary but the end result must be binary when read. Unless you wanna make a joke about filling out government forms I guess lol.

load more comments (1 replies)
[โ€“] Thorry84@feddit.nl 34 points 1 day ago (1 children)

Obviously, there is True, False and FILE_NOT_FOUND

load more comments (1 replies)
[โ€“] thisfro@slrpnk.net 26 points 1 day ago (3 children)

Choose one class of gender:

  • Natural
  • Rational
  • Irrational
  • Complex
[โ€“] AeonFelis@lemmy.world 5 points 1 day ago

That's a very quaternionphobic list.

load more comments (2 replies)
load more comments
view more: next โ€บ