Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Cxxwrap was broken for a while there, maybe a few years? Maybe it was cxx

Yes, Cxx: https://github.com/JuliaInterop/Cxx.jl -- it uses Clang to generate JIT'd interop thunks, and does neat things to enable that, like cross-language type inference and inlining (in addition to the REPL).

CxxWrap is a different thing, which AFAIK has been actively maintained for > 5 years now: https://github.com/JuliaInterop/CxxWrap.jl

It is similar to Boost.Python/pybind11/nanobind: bindings are written in C++ and compiled ahead of time into a module that defines Julia entrypoints. Those entrypoints take care of signature selection, translation to/from Julia objects, and lifetime bookkeeping.



There is also a new player in the game of C++ wrapping Julia: https://github.com/Clemapfel/jluna


Good project, but note that it has its own (pre 1.9) threading model.


Classic Julia. Every minor version bumps you gotta rewrite your code.


If you're using plain-old-C, don't overlook the excellent CBinding.jl:

https://github.com/analytech-solutions/CBinding.jl




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: