DEV Community

Discussion on: Help using Node addons to call c++

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀

Yes absolutely, Wasm compiles from a variety of languages including c++. The compiler you need is called emacripten, go download it to get started. Emacripten looks scary but it's not to bad I swear and I can help you. WASM typically runs in browsers but works in node too.

Thread Thread
 
gwsounddsg profile image
GW

Amazing! I just might take you up on your offer. Much appricated.

Thread Thread
 
adam_cyclones profile image
Adam Crockett 🌀

If you get a repo up and running I'm sure I can help.

Thread Thread
 
gwsounddsg profile image
GW

After a bunch of reading up on wasm and emscripten, I've been hitting a wall with just installing emscripten. Or more specifically, including emscripten.h. Any ideas? I'm on macOS.

Also, is there a better platform I can bug you with questions rather than this dev.to post?

Thread Thread
 
adam_cyclones profile image
Adam Crockett 🌀

I think il have to clone what you have, I'm macos as well. Honestly github repo private or public will be the best way to colab

Thread Thread
 
gwsounddsg profile image
GW

Great! Just created a repo and sent you a request.

Thread Thread
 
adam_cyclones profile image
Adam Crockett 🌀

Thanks, I might not be able to help tonight, I'm moving house soon so agreed to sit down and make some lists with my partner il be able to clone tomorrow.