9d icon indicating copy to clipboard operation
9d copied to clipboard

Get the gate code work with emscripten

Open rep-movsd opened this issue 7 years ago • 3 comments

rep-movsd avatar Aug 21 '17 12:08 rep-movsd

So what it takes to be able to compile the C++ to JS - initially use node.js, once it works, get it to work on a browser

rep-movsd avatar Aug 21 '17 12:08 rep-movsd

What I understand from this is :

  • we want an extension written in C++, which can then run as any node package and then make it run on a browser.
  • or use node-ffi.
  • or build/employ a compiler to simply convert cpp to js

Please help out with more description.

sourabhtk37 avatar Aug 21 '17 12:08 sourabhtk37

Learn how emscripten works - it takes CPP and creates .JS using clang/llvm

Figure out how to call that from some node.js / browser

rep-movsd avatar Aug 21 '17 14:08 rep-movsd