Very cool. :) Since you're binding to JavaScript in both cases I imagine you can make the syntax identical for both libraries.
On Mon, Dec 15, 2014 at 5:54 PM, Juha Järvi <[email protected]> wrote: > > Embind has a wonderful syntax for avoiding boilerplate code when creating > Javascript bindings for C++ code, but it only works together with > emscripten. In my case the same C++ code is needed in the browser and > server and while Node.js could run code produced with emscripten, it should > be more efficient to compile the C++ parts into a native Node.js plugin. > That seemed to involve a terrible amount of boilerplate compared to embind, > so I started nbind, a bindings generator for Node.js that aims to have > syntax identical to embind. It's here: > > https://github.com/jjrv/nbind > > Hopefully it will be useful for others as well and perhaps even encourage > some libraries to support both environments. > > It's a work in progress and for example references as parameters probably > don't work yet. > > -- > 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 [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- Chad Austin Technical Director, IMVU http://engineering.imvu.com <http://www.imvu.com/members/Chad/> http://chadaustin.me -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
