Decompiler Refactor 101 #12
Labels
difficulty: easy
good to resolve if you know basic java and have some time to learn
difficulty: hard
requires knowing quite some background knowledge to resolve
difficulty: medium
requires some internal insights of the project itself
refactor
Not feature or bug, but adds the pleasure of reading code.
This is a requirement for decompiler refactor. Current decompiler suffers a lot from leaky abstraction and not enough abstraction.
Anti-patterns such as "using namespace std" is used everywhere.
Upstream does not currently has any idea on refactor the code. This might be on our own.
My thought is to write down notes on how the refactor could happen and people interested in this might gradually submit commits on making the code enjoyful to read.
Some of the refactors could be:
Rule
: LLVM could give us some insights of how this could be done possibly. Current implementation of rewrite is handled manually, may be suboptimal. -- HARDActionGroup
, it is a concept of "how they might be performed", like in a look or something. But no dependency management is actually performed aside from the comments which is an anti-pattern as well -- obviously the comments are not enough to ensure the constraints. Some sort of dependency management may solve this better. Also, this allows the reader to understand what action takes effect to what algorithm. -- UNKNOWNThe text was updated successfully, but these errors were encountered: