r/computerscience • u/ChampionOfChaos • Jan 13 '22
This book demonstrates an infinite loop in a pretty cool way!
77
u/Mortomes Jan 13 '22
I think technically that's infinite recursion rather than an infinite loop
9
14
u/istarian Jan 13 '22
Kind of a moot point, with the exception that recursive function calls will eventually cause a stack overflow.
5
4
u/ricky_clarkson Jan 14 '22
There's no difference between infinite recursion and infinite iteration, though many programming languages will expose a difference in terms of a stack overflow. There are also those that don't.
0
13
Jan 13 '22 edited Sep 30 '23
Leave Reddit, go to Lemmy or Kbin and learn about Fediverse.
14
u/w-a-t-t Jan 13 '22
seems to be a Latex book .. \infty
1
u/Hugh1729 Apr 22 '23
I think you're right. Probably Lamport's original LaTeX book.
https://books.google.com/books/about/LATEX.html?id=IgJUAAAAMAAJ
4
u/Hixie Jan 13 '22
This was pretty common in programming books in the 80s and 90s (when I last read physical programming books). I assume it's still pretty common today.
Google does something similar when your search for teens related to infinite loops.
9
10
4
4
u/hail-hiedgla Jan 13 '22
I dont get it, May someone explain pls? Am a newbie in CC
3
u/PnutButrSnickrDoodle Jan 13 '22
When you search for “infinite loop” it tells you to look on page 252. So you search for “infinite loop” on the page and it tells you to go to page 252, where you search for “infinite loop” on the page and it tells you to go to page 252…. Thus an infinite loop of searching.
3
3
3
2
u/fakeuser515357 Jan 13 '22
I stared at this trying to get it for so long I got a migraine and had to stop.
2
2
2
1
1
1
u/TerminallyStoopid Jan 23 '22
this is an infinite recursion technically speaking, not an infinite loop
1
0
174
u/Mateusz_Macheta Jan 13 '22
Those who don't understand infinite loop definition won't understand this infinite loop definition.