Has anyone ever written a C plugin for Node.js? I'm wondering how hard it would be to create random objects on the C side and then launch them over to the JS side, like a CocoaBridge would.

@ccgus I once wrote an ObjC bridge for SpiderMonkey, that wasn't too bad. I would assume that it isn't JVM-bad in V8 either, but never actually tried.

@ccgus I’ve done that - you end up with a C++ glue layer. It’s... better than it was, using the newer APIs, but I wasn’t trying to do dynamic dispatch (I knew up front all the methods/classes I wanted to expose)

Sign in to participate in the conversation

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!