Are there any good frameworks/papers/etc. for source-to-source optimizing-compiler passes? e.g. copy propagation, dead code elimination but for ASTs instead of IRs.
-
-
Also, damn, forgot how gnarly C++ code bases can be... 900 LOC just to implement constant folding! https://github.com/rose-compiler/rose/blob/release/src/midend/programTransformation/constantFolding/constantFolding.C …
-
disregarding the implementation language, doing constant folding at the src-src level for C++ is extremely nontrivial
End of conversation
New conversation -
-
-
has a rep for being hard to work with though...
-
Mostly interested in seeing if there are any good ideas I can steal. But I think beyond the basics (e.g. tree visitors), most of what's hard for me isn't covered here. Dealing with closures, decorators, comprehensions, generators, **kwargs.
End of conversation
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