15 January 2007
Lampson: Lazy and Speculative Execution
18
Lazy: “Formatting operators”
nIn text editors, how to make text “italic”
oAttach a function that computes formatting. Examples:
▬Set “italic”
▬Next larger font size
▬Indent 12 points
oOnly evaluate it when the text needs to be displayed.
nThe bet: text will never be displayed
oA win in latency: things you can see now appear faster
oSaves work: things not visible are never rendered
nUsed in Microsoft Word