News for hackers. Stuff that matters.
Re:Retiring a Favourite C++ Joke by u801e on Thursday March 16, 2023 @11:51PM (#35192827)
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
Re:Retiring a Favourite C++ Joke by nvader on Friday March 17, 2023 @12:16AM (#35193037)
I've watching you!
Re:Retiring a Favourite C++ Joke by klodolph on Friday March 17, 2023 @02:06AM (#35193741)
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

Re:Retiring a Favourite C++ Joke by ddulaney on Friday March 17, 2023 @09:17AM (#35196684)
On template expansion failures, I'd love a modern GCC reporting "your window wasn't tall enough to read this whole error message"
Re:Retiring a Favourite C++ Joke by cozzyd on Friday March 17, 2023 @12:18PM (#35199112)
"this error message will take over 200 lines, would you like me to order you a coffee?"
Re:Retiring a Favourite C++ Joke by kps on Friday March 17, 2023 @12:48PM (#35199563)
“I have a truly marvelous proof that your code is incorrect…”
Re:Retiring a Favourite C++ Joke by dvh on Friday March 17, 2023 @02:47AM (#35194032)
I made this compiler joke and received whoping 930 upvotes for it: https://i.redd.it/dp6ixt4ri1hz.png
Re:Retiring a Favourite C++ Joke by FpUser on Friday March 17, 2023 @07:03AM (#35195432)
LOL. Loved it
Re:Retiring a Favourite C++ Joke by secondcoming on Friday March 17, 2023 @08:31AM (#35196219)
Ha! It actually took me far too long to get it!
Re:Retiring a Favourite C++ Joke by fatcow on Friday March 17, 2023 @10:11AM (#35197311)
Why is it funny, please explain?
Re:Retiring a Favourite C++ Joke by jmaygarden on Friday March 17, 2023 @10:18AM (#35197422)
It is the error message you often get when creating a password.
Re:Retiring a Favourite C++ Joke by fatcow on Friday March 17, 2023 @10:27AM (#35197558)
Yes I get that, didn't quite understand why this switching of error message is relevant to the code...
Re:Retiring a Favourite C++ Joke by kps on Friday March 17, 2023 @10:45AM (#35197783)
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.)
Re:Retiring a Favourite C++ Joke by isaacremuant on Friday March 17, 2023 @10:46AM (#35197797)
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.

Re:Retiring a Favourite C++ Joke by DeathArrow on Friday March 17, 2023 @08:12AM (#35196001)
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!

Re:Retiring a Favourite C++ Joke by intelVISA on Friday March 17, 2023 @09:47AM (#35196992)
ChatGCC

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

Re:Retiring a Favourite C++ Joke by salawat on Friday March 17, 2023 @01:38PM (#35200256)
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.

Re:Retiring a Favourite C++ Joke by intelVISA on Friday March 17, 2023 @02:12PM (#35200727)
hacker disorder :)
Re:Retiring a Favourite C++ Joke by c9capital on Friday March 17, 2023 @09:47AM (#35196995)
A C++ programmer was arrested for indecent exposure. He was caught exposing his private class in public.
Re:Retiring a Favourite C++ Joke by fullstop on Friday March 17, 2023 @10:24AM (#35197513)
That's what friends are for, right?
Re:Retiring a Favourite C++ Joke by hinkley on Friday March 17, 2023 @11:09AM (#35198045)
Only special friends.
Re:Retiring a Favourite C++ Joke by masfuerte on Friday March 17, 2023 @11:20AM (#35198198)
Error: missing member reference