Skip to content

Avoid closures for custom operators #404

@simonbyrne

Description

@simonbyrne

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.
    @Op f T
    would define a non-closure cfunction for Op(::typeof(f),::Type{T})

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions