-
Notifications
You must be signed in to change notification settings - Fork 2
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
Can someone explain how this code works? #7
Comments
Hi! Thanks for your curiosity. Please keep in mind that this only works on Julia v0.4. :) The basic idea is that it creates a generated ("staged") function that handles a custom dispatch algorithm in a static way. The part starting with In Julia v0.5 onwards, the rules for generated functions became more restrictive and this approach stopped working (you can think of the reason as being that the compiler does a better job of optimizing by making certain assumptions, and letting generated functions do arbitrary things broke some of those assumptions. In v0.6 onwards there are also further assumptions about conditional recompilation, which means the above approach may become "stale" as methods are added and called). |
How is this looking for 1.x then? Is it possible to reactor to make it work with comparable functionality? |
See #10 |
Hi,
Can someone explain how x::Integer::Small works? What does it mean?
When I macro expand this code:
I get the following expansion. Can some one explain to me how the following code works?
Thanks
The text was updated successfully, but these errors were encountered: