Follow

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
Mastodon

Follow friends and discover new ones. Publish anything you want: links, pictures, text, video. This server is run by the main developers of the Mastodon project. Everyone is welcome as long as you follow our code of conduct!