403
Code is a spectrum (files.catbox.moe)
submitted 1 month ago by Gork@lemm.ee to c/programmerhumor@lemmy.ml
all 28 comments
sorted by: hot top controversial new old
[-] TimeSquirrel@kbin.melroy.org 43 points 1 month ago

Everything is open source if you can read assembly.

[-] tetris11@lemmy.ml 21 points 1 month ago

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

[-] TimeSquirrel@kbin.melroy.org 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. 😁

[-] davel@lemmy.ml 28 points 1 month ago

I think it’s most commonly called machine code.

[-] idunnololz@lemmy.world 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).

[-] Ziglin@lemmy.world 4 points 1 month ago

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

[-] NigelFrobisher@aussie.zone 40 points 1 month ago
[-] steal_your_face@lemmy.ml 34 points 1 month ago

Quantum computers enter the picture

[-] Luccus@feddit.org 32 points 1 month ago

Damn woke physics

[-] ayyy@sh.itjust.works 23 points 1 month ago
[-] vane@lemmy.world 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.

[-] Sonotsugipaa@lemmy.dbzer0.com 4 points 1 month ago

No, all files are base 256

[-] lord_ryvan@ttrpg.network 9 points 1 month ago

That's just binary with extra steps.

[-] fnrir@lemmy.world 22 points 1 month ago
[-] SpaceNoodle@lemmy.world 27 points 1 month ago* (last edited 1 month ago)
[-] fnrir@lemmy.world 18 points 1 month ago

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

[-] horse_battery_staple@lemmy.world 7 points 1 month ago

Dark mode would be NB-PM

[-] SpaceNoodle@lemmy.world 0 points 1 month ago
[-] racketlauncher831@lemmy.ml 2 points 1 month ago* (last edited 1 month ago)

C for crap.

R for rubish.

Fair enough.

[-] lone_faerie@lemmy.blahaj.zone 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.

[-] SubArcticTundra@lemmy.ml 10 points 1 month ago

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

[-] lord_ryvan@ttrpg.network 8 points 1 month ago

*glances at PR*

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

[-] SubArcticTundra@lemmy.ml 4 points 1 month ago
[-] Valmond@lemmy.world 8 points 1 month ago

New gender dropped, source baby source!

[-] Endymion_Mallorn@kbin.melroy.org 0 points 1 month ago

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

this post was submitted on 03 Jan 2025
403 points (95.3% liked)

Programmer Humor

32707 readers
74 users here now

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

Rules:

founded 5 years ago
MODERATORS