this post was submitted on 03 Jan 2025
397 points (95.0% liked)

Programmer Humor

33166 readers
161 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
all 28 comments
sorted by: hot top controversial new old
[–] [email protected] 44 points 1 month ago (1 children)

Everything is open source if you can read assembly.

[–] [email protected] 21 points 1 month ago (3 children)

binaries aren't assembly though, they're *peers at notes, draws a blank* they're.... something else

[–] [email protected] 35 points 1 month ago

You just have to be able to navigate whatever executable file format it is, figure out where the data/code sections are, how different parts are linked together, and translate all the binary opcodes to readable mnemonics.

Easy. 😁

[–] [email protected] 28 points 1 month ago (1 children)

I think it’s most commonly called machine code.

[–] [email protected] 3 points 1 month ago

True. Machine code usually has a 1:1 mapping to assembly so it's not hard to read machine code as assembly. Although you will not see any of the labels (unless for some reason the the labels were left in).

[–] [email protected] 4 points 1 month ago

They're assembled into binary (together with metadata in some cases).

[–] [email protected] 40 points 1 month ago (4 children)
[–] [email protected] 34 points 1 month ago (1 children)

Quantum computers enter the picture

[–] [email protected] 32 points 1 month ago

Damn woke physics

[–] [email protected] 23 points 1 month ago
[–] [email protected] 12 points 1 month ago

There are ternary computers - just not so popular. Maybe when Carbon nanotube computers will take off it will be a thing.

[–] [email protected] 4 points 1 month ago (1 children)

No, all files are base 256

[–] [email protected] 9 points 1 month ago

That's just binary with extra steps.

[–] [email protected] 22 points 1 month ago (2 children)
[–] [email protected] 27 points 1 month ago* (last edited 1 month ago) (1 children)
[–] [email protected] 18 points 1 month ago (2 children)

Now all we need to do is rewrite this in Rust (the enby solution) and call it... idk... "enbym"?

[–] [email protected] 7 points 1 month ago

Dark mode would be NB-PM

[–] [email protected] 0 points 1 month ago (1 children)
[–] [email protected] 2 points 1 month ago* (last edited 1 month ago)

C for crap.

R for rubish.

Fair enough.

[–] [email protected] 10 points 1 month ago

Also: https://github.com/TodePond/DreamBerd

Booleans can be true, false or maybe. Technical info: Booleans are stored as one-and-a-half bits.

[–] [email protected] 10 points 1 month ago (1 children)

Remember, there is no 'bad' code – we have to be tolerant. There is just 'different' code.

[–] [email protected] 8 points 1 month ago (1 children)

*glances at PR*

Man why does your code look so... *Different? *

[–] [email protected] 4 points 1 month ago
[–] [email protected] 8 points 1 month ago

New gender dropped, source baby source!

[–] [email protected] 0 points 2 weeks ago

Nah, everything is binary. We just view it through false lenses because the switches got too tiny and people got too dumb.