Closed yuyichao closed 7 years ago
This version passes tests on 0.4, 0.5 and 0.6 with JuliaLang/julia#19801. It should not have any dynamic dispatch in the callback on 0.5 and 0.6.
I should mention that the fix does not rely on JuliaLang/julia#19801 anymore and should be ready to go.
Thanks! Can you put together a PR to update the C-callback blog post at some point?
Well, I guess it's still unclear what https://github.com/JuliaLang/julia/pull/19801 will become. Currently there isn't a semantic for cfunction
so it's hard to describe...
cfunction
cacheDO NOT MERGE NOW!~~The broadcast fix is independent and is missing
@compat
. Thecfunction
fix requires https://github.com/JuliaLang/julia/pull/19801 and can also be further improved to eliminate dynamic dispatch in the callback. This is used mainly as a use/test case for https://github.com/JuliaLang/julia/pull/19801. ~~