Skip to content
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

Mypy integration for type inference and combined 2+3 codebase #10

Open
alanjds opened this issue Aug 21, 2018 · 1 comment
Open

Mypy integration for type inference and combined 2+3 codebase #10

alanjds opened this issue Aug 21, 2018 · 1 comment
Labels
imported Imported from google/grumpy

Comments

@alanjds
Copy link

alanjds commented Aug 21, 2018

google#8 opened by @datnamer on 4 Jan 2017

This looks fantastic.

@JukkaL on the mypy team is looking at a static compile capability using mypy here : python/mypy#1862

Referencing pyir ideas here: https://docs.google.com/document/d/1jGksgI96LdYQODa9Fca7EttFEGQfNODphVmbCX0DD1k/edit

Perhaps these efforts could be combined so that a standard mypy/python typed IR can be emmited that grumpy can consume?

This would have the following advantages:

  1. Integration with type hints for large codebases
  2. improved type inference for fast code
  3. Potentially making 2+3 support easier
  4. development synergy with dropbox (and maybe other players below)

I might be dreaming but perhaps Pyjion (@brettcannon et al) and Numba (@seibert, @pzwang et al) can get in on this as well. I think it would be mutually beneficial for python and it's users.

@alanjds
Copy link
Author

alanjds commented Aug 21, 2018

Comment by datnamer
Wednesday Jan 11, 2017 at 15:29 GMT


For py3 the new variable annotation and frame eval api might help here.

@alanjds alanjds added the imported Imported from google/grumpy label Aug 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
imported Imported from google/grumpy
Projects
None yet
Development

No branches or pull requests

1 participant