
i told a mathematician that a catamorphism is a banana and that a monad is a burrito. he told me i have no buisness studying math. this ever happen to anyone else?

i wrote an html parser with gll and it’s really slow.

Chez Scheme Version 9.5.7.7
Copyright 1984-2021 Cisco Systems, Inc.
> (import (html))
> (time (compile '(call-with-input-file "2022-05-23-compiler-books.html" read)))
(time (compile (quote (...))))
128 collections
277.057056666s elapsed cpu time, including 0.400991000s collecting
277.771220000s elapsed real time, including 0.401885000s collecting
1072788544 bytes allocated, including 737995920 bytes reclaimed
(html
((lang . "en"))
(body
()
(article
()
((h1 ((id . "perspective")) "Perspective")
(p ()
"These books were meant to be used in undergraduate courses and, serve as supporting material for a first course in compilers. So, how well do these books do this? They're both reasonable at it. They present common techniques of compiling languages well. Especially the tiger book which has a second part going over general concepts of less common compilation techniques. However, they both pedagogically lack perspective of computer science as a whole. They both present a compiler in a single way and, don't give students enough common vocabulary to do or study research on compilers.")))))

Chez Scheme Version 9.5.7.7
Copyright 1984-2021 Cisco Systems, Inc.
> (import (html))
> (time (call-with-input-file "2022-05-23-compiler-books.html" read))
(time (call-with-input-file "2022-05-23-compiler-books.html" ...))
128 collections
290.763276542s elapsed cpu time, including 0.387786000s collecting
291.646820000s elapsed real time, including 0.388467000s collecting
1072766272 bytes allocated, including 738067488 bytes reclaimed
(html
((lang . "en"))
(body
()
(article
()
((h1 ((id . "perspective")) "Perspective")
(p ()
"These books were meant to be used in undergraduate courses and, serve as supporting material for a first course in compilers. So, how well do these books do this? They're both reasonable at it. They present common techniques of compiling languages well. Especially the tiger book which has a second part going over general concepts of less common compilation techniques. However, they both pedagogically lack perspective of computer science as a whole. They both present a compiler in a single way and, don't give students enough common vocabulary to do or study research on compilers.")))))

it’s not about the destination. it’s about the journey.