translating Knuth's “man or boy” test from ALGOL 60 into C, by reifying the activations as structs and closure-converting the call-by-name thunks. Like this.
I considered trying to run it by hand instead, but that would certainly take a lot of paper, and also as Knuth himself apparently failed in that task, I thought perhaps not.
Showing posts with label compiler. Show all posts
Showing posts with label compiler. Show all posts
2007-11-09
Subscribe to:
Posts (Atom)