-
Notifications
You must be signed in to change notification settings - Fork 46
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
PyJL: Julia without type annotations #536
Comments
Hello! |
Cool! The point here is that this would help to leverage the abilities of Julia concerning generic programming and multiple dispatch. |
Just to clarify, if there are explicit type annotations in the Python, should they also be removed from the emitted Julia? My guess is you only want the types inferred by py2many to be removed from the output. It would be very helpful if you could provide a sample input where not emitting the types allows for "better" Julia output. Another approach to this may be to allow annotating the input Python with type |
Thanks for coming back! For function calls, basically, Julia autodetects parameter types and emits specialized code without the need of annotation - very much like with a generic C++ header lib. The almost only case where you type-annotate parameters for Julia function is in oder to distinguish different implementations for different types. For struct entries, the situation is different - here, type annotations are critical for performance. I will try to come up with a more elaborated example to continue the discussion. May take some time as I am juggling too many balls currently... |
Hi, would it be possible to have an option which removes all type annotations for when emitting Julia code ?
The text was updated successfully, but these errors were encountered: