emscripten-core / emscripten-core/emscripten

Guidance on bindings

Open
#22,680 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

Hi all,

The library I'm porting (GStreamer) works well enough now, and I'm investigating the possible ways to provide JS bindings for it. I understand the concepts of `embind` and `emscripten::val()` which are actually used in the project, but I want to give the user of the library the possibility to do the applications directly on JS that will call the corresponding compiled .wasm functions.

The idea is to generate the bindings dynamically, given that the library supports introspection, but I'm kind of lost on where to start. I understand that somehow it is related to `embind` itself, but instead of declaring types statically, be able to provide them dynamically. Is it possible? Do you have guidance on where to begin?

I appreciate your responses,
Regards

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.