All Projects → yuyichao → FunctionWrappers.jl

yuyichao / FunctionWrappers.jl

Licence: other
No description, website, or topics provided.

Programming Languages

julia
2034 projects

FunctionWrappers.jl: Type stable and efficient wrapper of arbitrary functions

Build Status Build Status Build status codecov.io

Proof of principle implementation of JuliaLang/julia#13984.

Limitations

  1. Does not handle more than 128 arguments without jlcall wrapper

    128 is an arbitrary limit. Should be high enough for all practical cases

  2. Does not support vararg argument types

  3. Wrapper Object cannot be serialized by dump.c and therefore the precompilation of FunctionWrappers is done using a runtime branch and by making the wrapper type mutable.

Compared to @cfunction

This does not require LLVM trampoline support, which is not currently supported by LLVM on all the architectures julia runs on (JuliaLang/julia#27174). Other than this issue @cfunction should cover all of the use cases.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].