-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Framework for organizing passes #126
Comments
@pawamoy ça pourrait t’intéresser |
Hey @tristanlatr, thanks for mentioning me 🙂 It's cool to see that you're still working on static analysis. @tusharsadhwani has created a Discord channel on the static analysis topic, if you'd like to join and share this there: https://discord.gg/fZCBfm4r 🙂 I've read the mentioned issue. It looks very serious and promising 👍 However I do have to say I have trouble understanding why and how I would use this passmanager (by the way, I understand that "passmanager" is the name used in LLVM, GCC and Pythran, but I can't help but think of "password manager" when I read it 😅). For ignorant devs like myself, I would expect to see the following things explained:
Without this it's hard for me to see how I could use such package for my own static analysis needs. How would I plug it into existing AST visitors? Would I have to migrate all of my visitor's code, or could I just use the passmanager in specific places to infer the values of I found the Pythran docs to be the most readable ones, if that helps 🙂 |
Thanks for your feedback, I'll try to improve these points. In the meantime, there is this docstring full of doctest that could be more or less what your looking for: https://github.com/tristanlatr/libstatic/blob/passmanager/libstatic/_lib/passmanager/__init__.py
It's aimed to be flexible, so you should be able to use it once at specific places, for instance to transform |
The docstring is great, thanks! |
Hello static analysis enthousiastes,
I believe this proposal could be interesting for the work you’re doing in this repository.
twisted/twisted#12176
Basically I’m trying to describe an infrastructure that would allow to hook any analysis or transformation into a system in charge of ensuring optimizations and consistency of analysis results when a transformation happen.
It’s currently unclear where this code will be hosted for the long term. I’m opening this issue to gather feedbacks and see if there are potential contributors here that could help me finish the implementation and maintain this over time.
thanks,
The text was updated successfully, but these errors were encountered: