for what language?
-
-
-
Working in Python, but any Algol-derivative would be good!
- Show replies
New conversation -
-
-
This one, in the context of Scheme, might provide some inspiration (though it’s tailored toward effect-free code). Definitely ideas in here to steal: Waddell and Dybvig. Fast and effective procedure inlining. http://www.cs.indiana.edu/~dyb/pubs/inlining.pdf … Follow the citation trail too.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Polyglot (a java source-to-source compiler) has some limited support for this sort of thing. cf:https://github.com/polyglot-compiler/polyglot/blob/master/src/polyglot/visit/CopyPropagator.java …
-
Ah great! Seems like they build a control-flow graph on the AST, then do data-flow analysis on the CFG with a transfer function defined over AST nodes (https://github.com/polyglot-compiler/polyglot/blob/master/src/polyglot/visit/CopyPropagator.java#L379-L463 …). Then they transform the AST with the output of dataflow using visitors (https://github.com/polyglot-compiler/polyglot/blob/master/src/polyglot/visit/CopyPropagator.java#L484-L519 …).
- Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
cognitive psychology. PhD