801
C++ (ani.social)
submitted 3 months ago* (last edited 3 months ago) by [email protected] to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 16 points 3 months ago

I mean, the comic is fine I guess, but if it implies the Cpp lady is hitting you, it's not. That would be the kernel, the lady did what you told her to do.

[-] [email protected] 13 points 3 months ago

If undefined behavior is triggered anywhere in the program, then it is allowed by the standard for the process to ask the anthropomorphized compiler to punch you.

100% based and standards-compliant comic

[-] [email protected] 3 points 3 months ago* (last edited 3 months ago)

In some build modes clang will simply put a trap where it sees undefined behavior. https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html

Not saying your wrong, just a fun fact I guess

[-] [email protected] 1 points 3 months ago

Yeah that is fun, credit where it's due, compilers do a lot of cool work behind the scenes.

this post was submitted on 16 Mar 2025
801 points (98.2% liked)

Programmer Humor

24262 readers
1186 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS