Comment

Comment by derdi

Fair! Though I still don't know what you mean by "removing" nodes from the tree-walking interpreter's AST. Assume we have an AST like:

    (Add (LoadConst 1) (LoadVar x))
The corresponding stack machine code might be:

    [PushConst 1, PushVar x, Add]
In what way was anything "removed" from the tree?
parent derdi 2 months ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton