this post was submitted on 21 May 2024
1610 points (98.8% liked)

Programmer Humor

32720 readers
519 users here now

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

Rules:

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

As a bytecode tinkerer, I'd say considering NOP to be global knowledge is a slippery slope.

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

It's insane how close that handwriting is to randall's, did he make multiple versions of this comic or was this written by a professional forger?

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

Why does it not surprise me at all that this exists?

https://github.com/ipython/xkcd-font

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

Wait, that's actually a great font

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

For context, here's the original comic:

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

Holy shit. I remembered the original comic, but didn't remember what the subject matter of it was. So if you hadn't left this comment, I would have just gone on believing that the OP's version was Randall's version.

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

They are talking about computer things, that's about how familiar I am with whatever they are talking about.

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

Yeah, it's intentionally obscure. Basically, x86 assembly code is a way of telling a processor what to calculate, at a very low level.
So, it's similar to programming languages, but those actually get translated into x86 assembly code, before it's told to the processor. ("x86" is a certain processor architecture. Others exist, too, most prominently "ARM".)

But yeah, even with me knowing that much, I'd need to guess what ret and int3 might do.

Everyone knows jmp and nop, though, of course. 🙃

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

Is there any situation where you'd want to remember the opcodes? Disassemblers should give you user-friendly assembly code, without any need to look at the raw numbers. Maybe it's useful to remember which instructions are pseudo instructions (so you know stuff like jz (jump if zero) being the same as je (jump if equal) making it easier to understand the disassembly), but I don't think you need to remember the opcode numbers for that.

Edit: Maybe with malware analysis where the malware in question may be obfuscated in interesting ways to make the job of binary analysis harder?

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

The important thing is to be important. Engineering has to deal with teammates that don’t have these problems, so they equalize.

[–] [email protected] 152 points 7 months ago (2 children)

There's an old joke about two mathematicians in a cafe. They're arguing about whether ordinary people understand basic mathematics. The first mathematician says yes, of course they do! And the second disagrees.

The second mathematician goes to the toilet, and the first calls over their blonde waitress. He says to her, "in a minute my friend is going to come back from the toilet, and I'm going to ask you a question. I want you to reply, "one third x cubed.'"

"One ther desque," she repeats.

"One third x cubed," the mathematician tries again.

"One thir dek scubed."

"That'll do," he says, and she heads off. The second mathematician returns from the toilet and the first lays him a challenge. "I'll prove it. I'll call over that blonde waitress and ask her a simple integration question, and see if she can answer." The second mathematician agrees, and they call her over.

"My friend and I have a question," the first mathematician asks the waitress. "Do you know what is the integral of x squared?"

"One thir dek scubed," she answers and the second mathematician is impressed and concedes the point.

And as she walks away, the waitress calls over her shoulder,

"Plus a constant."

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

Blue collar fucking aircraft worker and I get it.

load more comments
view more: ‹ prev next ›