latest status on using webidl binder or embind for C++ bindings

600 views
Skip to first unread message

Krishna Bhogaonker

unread,
Apr 8, 2017, 1:39:57 PM4/8/17
to emscripten-discuss
Hello all.

I saw a note from a few months ago about whether Embind was still being actively developed or not. I included the link below. I was just wondering if there were any updates on the development status of Embind versus WebIDL Binder. I did not want to start developing in one tool, only to find out that it was no longer under active development. 


Can someone indicate the safest bet in terms of development? I don't need much in the way of exotic binding features. I mostly have array pointers and some potential subclassing, but otherwise all standard stuff.

Thanks.

Alon Zakai

unread,
Apr 10, 2017, 1:33:53 PM4/10/17
to emscripten-discuss
There is renewed activity in embind, so if it's useful, I think it's safe to use.

In general, the webidl binder does much less than embind - it just lets you write IDL that is used to wrap compiled C++ classes for use from JS. And it supports basic types but not sophisticated c++ things like smart pointers and std::strings etc. If the webidl binder is enough for you, then I recommend using it, since it's simpler and has much less runtime overhead than embind - that's why it's used for box2d.js and ammo.js.

--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-discuss+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Krishna Bhogaonker

unread,
Apr 10, 2017, 1:56:16 PM4/10/17
to emscripten-discuss
Thanks @Alon Zakai. There is always the risk with open source software that projects will run out of steam. So I appreciate your insight on this. I appreciate it.
Krishna
Reply all
Reply to author
Forward
0 new messages