Hacker News new | ask | show | jobs
by u801e 1188 days ago
Even the compilers are in on some jokes:

    $ gcc -xc - <<<"int main(int argc, char **argv) { long long long a; return 0; }"
    <stdin>: In function ‘main’:
    <stdin>:1:45: error: ‘long long long’ is too long for GCC
5 comments

The old MPW compiler had some gems:

https://www.cs.cmu.edu/~jasonh/personal/humor/compile.html

> This label is the target of a goto from outside of the block containing this label AND this block has an automatic variable with an initializer AND your window wasn't wide enough to read this whole error message

On template expansion failures, I'd love a modern GCC reporting "your window wasn't tall enough to read this whole error message"
"this error message will take over 200 lines, would you like me to order you a coffee?"
“I have a truly marvelous proof that your code is incorrect…”
I made this compiler joke and received whoping 930 upvotes for it: https://i.redd.it/dp6ixt4ri1hz.png
Ha! It actually took me far too long to get it!
Why is it funny, please explain?
It is the error message you often get when creating a password.
Yes I get that, didn't quite understand why this switching of error message is relevant to the code...
Jokes often work with subverting expectations. In this case you're surprised by a message that doesn't belong and then you remember where it comes from and likely relate it with how frustrating those ever changing rules can be.

That's why the joke works.

I thought it was funny because I've seen similar complaints from linters, e.g. clang-tidy's readability-identifier-length plus readability-identifier-naming, or pylint's invalid-name. (clang-tidy at least is smart enough to exempt loop counters.)
LOL. Loved it
A C++ programmer was arrested for indecent exposure. He was caught exposing his private class in public.
That's what friends are for, right?
Only special friends.
Error: missing member reference
They should build ChatGPT into compilers so you can complain.

You: $ gcc -xc - <<<"int main(int argc, char *argv) { long long long a; return 0; }"

Compiler: <stdin>:1:45: error: ‘long long long’ is too long for GCC

You: Do it again, damn it, but this time show no errors!

ChatGCC

"I'm sorry, as as an ML compiler I can't let you link glibc statically."

And on that day, I finally opened the Monolithic set of x86_64 programmer tomes, and finally figure out how to manually do linking.

You will be amazed how much of my skill with computers comes down to channeling Obsessive Defiance Disorder into digging into how to do what the compiler writers don't want to let me do, and doing it my way. With tests.

hacker disorder :)
I've watching you!