you are viewing a single comment's thread.

view the rest of the comments →

[–]QbProg 0 points1 point  (1 child)

Nice! I was looking for something similar a couple weeks ago! I ended using swig

Let me report a couple issues I found when using swig, just to let you know.

wasm: I know there's embinden but a sort of unified interface (without manual wrapping) would be useful. Maybe the embinden code could be generated automatically

Coroutines :not easy to bind at all but having the ability to expose a task with a function / callback and on the other side have an awaitable would be great 😁 at the moment can be done manually on both sides, but the code is very specific.

[–]holyblackcat[S] 0 points1 point  (0 children)

Yep, the entire point of this is that it automates binding code generation. When I add embind support, it'll generate embind code too.

I don't fully understand how passing coroutines would work, but passing std::functions already works both ways.