IUCompilerCourse / Essentials-of-Compilation

A book about compiling Racket and Python to x86-64 assembly
1.27k stars 137 forks source link

Ch. 5.12 Python version comments #148

Open AndrewTolmach opened 1 year ago

AndrewTolmach commented 1 year ago

Maybe too late for this edition, but...

Section 5.12 is still not very convincing.

jsiek commented 1 year ago

Indeed, I noticed this too a couple days ago and edited to deal with it.

jsiek commented 1 year ago

I've pulled the short-cutting of Goto into the first version of create_block and then introduced an example along the lines of what you give above to motivate the lazy evaluation.

Those are neat thoughts regarding reordering blocks.