Had to verify. And yes. Kernighan and Ritchie really did this. TIL :)
And no, Stroustroup did NOT do this in the C++ book and also no, Knuth didn’t do this in AOCP :)
@jwildeboer Stoustrup is perhaps tad less whimsical, although he had few funny remarks when I saw him at a conference in Berlin last year. "This is my boasting slide" he said, and pulled out a slide with a list of major technologies based on C++.
@saustrup "based on" or "written in"?
@RA_Negm "written in" probably. It/they wouldn't be there without C++.
@saustrup That's a bold claim.
@RA_Negm Similar claims can be made for the work of Niklaus Wirth and his teams. Sadly he passed away on January 1st. Let's try to learn as much of the few giants that are left as possible while they are still there.
@wiert To mention both Stoustrup and Wirth in one sentence is an insult – of Wirth.
@saustrup @jwildeboer
In my years on the ANSI C++ standards committee I think Stroustrup told 1 or 2 jokes. He always seemed a very serious and determined person.

@jwildeboer

OTOH, Stroustrup did publish this hilarious gem in '98: https://www.stroustrup.com/whitespace98.pdf

@jwildeboer Okay, technically I agree. Knuth didn't do recursion, he had a circular reference in the index. And ten years before the first edition of K&R C.

@jwildeboer

Knuth's version was MUG (MIX user's group).

The one thing that K&R really could usefully have included in their book would have been the statement:

"Look, we've mangled the formatting of our examples and put the brackets all over the fucking place because our publishers told us to save space. It shouldn't need saying, but DON'T DO THIS AT HOME kids: put the brackets on lines by themselves FFS, just as you've been doing forever in ALGOL, BCPL, ect ect."

@jwildeboer I finally had some time to check out more on the history of these book index puns (having gained back energy after the refurbishing and move last winter exhausted me a bit too much):

Donald Knuth did put a recursion joke in The Art of Computer Programming - Volume 1: Fundamental Algorithms.

- Index and Glossary page 631: "Circular Definition"
- Index and Glossary page 633: "Definition, Circular"

1/

@jwildeboer I need to check out the first and second edition of The Art of Computer Programming - Volume 1: Fundamental Algorithms as well, as given https://en.wikipedia.org/wiki/Donald_Knuth I expect this to be in the first edition which makes me think he started this whole series of index puns.

In the end, a blog post will come up with more of these jokes as I think they are historically very interesting and it is remarkably hard to actually find the materials to make photos/screenshots from.

2/2

Donald Knuth - Wikipedia

@wiert @jwildeboer No!!! I have all of AOCP at home, so absolutely must look this up later!
@wiert @jwildeboer Just checked my copies of TCPL and AOCP and both of these 'jokes' are in there. Thanks to whomever pointed these out, as otherwise I would never have known!

@jwildeboer I bought that very book (when it was new, likely at a #ComputerLiteracy bookshop) and probably never saw that until now!

Also, I met Don Knuth, I think in 2019. :)

@johnlogic @jwildeboer
Met him twice. Once for a lecture in Stockholm and a year later at his 80th birthday conference in PiteΓ₯. Both times a funny story to tell ... :-)
@jwildeboer This is obligatory in true computing texts.
@jwildeboer Ah darn, Kernighan didn't do it in "The Go Programming Language". I guess I'll pencil it in.
@jwildeboer but he did do it in β€œThe Elements of Programming Style”
@trini Does it also have "infinite loop - see loop, infinite" and vice versa?
@jwildeboer It's also in the german edition.
@jwildeboer at least the exit condition comes first πŸ˜„

@jwildeboer

Cool πŸ˜ƒ

If you want to understand recursion, you need to understand recursion …

@jwildeboer
A good one from Common LISP the Language 2ed, Guy Steele
@dhanya
ഇഀࡁ ΰ΄•ΰ΄£ΰ΅ΰ΄Ÿΰ΄Ώΰ΄Ÿΰ΅ΰ΄Ÿΰ΄Ώΰ΄²ΰ΅ΰ΄²ΰ΅‡?
@jwildeboer That is very funny πŸ˜‚
@jwildeboer wait... qsort is a C-lib builtin?
@crvs @jwildeboer Yeah, qsort and bsearch are standard C functions (declared in stdlib.h).
@jwildeboer Turns out you can be nerdy _and_ funny _and_ not racist/misogynist/ableist. Who knew!?
@jwildeboer I learned C from that book! It was my bible for a long time...
@jwildeboer oh, this was my bible )
@jwildeboer
Bit late but now I was finally able to check my old copy, and yes, I have the same edition as you have. :)
@jwildeboer
Bought on 13 January 2004 for 27,90€... ;)
@jwildeboer
Their humor is more subtle than Adam Saddler's.
@jwildeboer I should check that in my version.
@jwildeboer Thanks for the tip. I had to check but it was lost on the French translation (Second edition). I'm glad I got the English version of the book as well.
@jwildeboer I have a copy somewhere, I'm sure I haven't thrown -that- book out.
@jwildeboer There's some sort of joke about the Bible and self-fulfilling prophesies that I'm not clever enough to make right now.
@jtgrimes @jwildeboer The New Testament has some passages about actively trying to fulfill prophecies, which sounds so sinisterly Bene Gesserit I'm surprised they left them in there.

@jwildeboer The 1st edition of the Java Language specification is full of this sort of thing
Ramanujan, Srinivasa, 224
On page 224 is an example with
class Super { static int taxi = 1729; }

It all disappeared in the 2nd edition

@tug @jwildeboer

Your post reminded me of someone, so what is the chance they wrote about 1729 today!

https://mastodon.social/@ionica@mathstodon.xyz/111750326024706992

@tug @jwildeboer

Regrettably that post by @ionica has disappeared, but this is another place explaining the love for the number 1729 in English:

https://www.maastrichtuniversity.nl/news/ionica-koos-een-getal-en-wij-maakten-dat-moeilijk

(not sure why Mastodon has been rate-limiting me over the last couple of days making posting tough, but the responses lately so many years after your initial post are because I finally found the combination of energy and time for writing up a blog post on the puns in these books)

Ionica chose a number (and we made it difficult)

I remember once going to see him [Ramanujan] when he was lying ill at Putney. I had ridden in taxi-cab No. 1729, and remarked that the number seemed to be rather a dull one, and that I hoped it was not an unfavourable omen. "No," he replied, "it is a very interesting number; it is the smallest number expressible as the sum of two cubes in two different ways."

en.wikipedia.org/wiki/Taxicab_…

@tug TIL! Thanks!

@jwildeboer

Taxicab number - Wikipedia

@jwildeboer Ooooh now I have to go look that up in my copy when I get home, very cool!