To support custom operators for PowerPC and ARM, we will need to avoid using closures as these are not supported (JuliaLang/julia#34326 and JuliaLang/julia#32154). There might be performance advantages on other platforms as well.
We currently skip the relevant tests on these platforms (#353)
Some options:
- convert
Op(f, T=Any) to a generated function
- write a macro that allows us to "declare" custom operator/type combinations, i.e.
would define a non-closure
cfunction for Op(::typeof(f),::Type{T})
To support custom operators for PowerPC and ARM, we will need to avoid using closures as these are not supported (JuliaLang/julia#34326 and JuliaLang/julia#32154). There might be performance advantages on other platforms as well.
We currently skip the relevant tests on these platforms (#353)
Some options:
Op(f, T=Any)to a generated function@Op f TcfunctionforOp(::typeof(f),::Type{T})