7 ms·
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’:
by u801e 4y 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
- nvader 4y agoI've watching you!
- klodolph 4y agoThe old MPW compiler had some gems: https://www.cs.cmu.edu/~jasonh/personal/humor/compile.html 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
- ddulaney 4y agoOn template expansion failures, I'd love a modern GCC reporting "your window wasn't tall enough to read this whole error message"
- dvh 4y agoI made this compiler joke and received whoping 930 upvotes for it: https://i.redd.it/dp6ixt4ri1hz.png https://i.redd.it/dp6ixt4ri1hz.png
- FpUser 4y agoLOL. Loved it
- secondcoming 4y agoHa! It actually took me far too long to get it!
- fatcow 4y agoWhy is it funny, please explain?
- jmaygarden 4y agoIt is the error message you often get when creating a password.
- fatcow 4y agoYes I get that, didn't quite understand why this switching of error message is relevant to the code...
- kps 4y agoI 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.)
- isaacremuant 4y agoJokes 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.
- DeathArrow 4y agoThey 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!
- intelVISA 4y agoChatGCC "I'm sorry, as as an ML compiler I can't let you link glibc statically."
- salawat 4y agoAnd 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.
- intelVISA 4y agohacker disorder :)
- tskool3 4y ago[dead]
- c9capital 4y agoA C++ programmer was arrested for indecent exposure. He was caught exposing his private class in public.