There is SWIG, but from extremely shallow online searching,
- for python, compared to Boost.Python, C++ devs find it advantageous to use Boost.Python instead of SWIG for performance and fluency/idiom reasons (link).
- for the web, SWIG doesn't seem to support running the output in a browser (link).
-
the cmake preset "dev" inherits the toolchain preset's condition. If this gets implemented, we can make use of it to have a clean solution.
-
emscripten links and things for future reference
cmake -S . --preset dev.emscripten
- conan and emscripten
- compiling
- EmBind vs WebIDL Binder
- I'll use embind
- embind
- the JS module object
- why aren't
compare_three_way_result
and things likeis_neq
found? I can clearly see them declared in emscripten/upstream/lib/c++/v1/compare
-
Oh boy. There's a pybind11 successor: https://github.com/wjakob/nanobind
-
- based on Boost.Python. Seems people think well of it and like it a bit more than Boost.Python.
- Has the advantage that I don't need to pull in all of boost just to get this.
not yet confirmed to be on roadmap.