I am new to Emscripten/javascript as well as this Overstack community.  I apologize, in advance, if my situation has already been addressed.      From a windows 7 environment, I've used emcc to compile a simple c program which accepts an array an...
I have a C program that takes one argument (a char array / string) via command line and also reads from stdin. I've compiled it to JavaScript using emscripten. This was successful and I can run it just like the normal C program using node.js:  em...
As you can read here: https://forum.vuejs.org/t/wasm-how-to-correctly-call-a-webassembly-method-in-vue-js/83422/24 I'm trying to figure out how to import a module generated by emscripten in Vue.js in order to call its methods.  Following the indi...
I would like to test WebAssembly for doing some complex array calculations.   So I've written a simple C++ function adding two int arrays containing 3 elements each  :  // hello.cpp extern "C" {  void array_add(int * summed, int* a, int*...
I would like to port a C library. There is a really short tutorial about it here: Interacting with code  I need to create a struct using javascript, and return a pointer to it. I looked into the libraries, which are already ported. My code looks like...
I'm trying to build a basic webworker example in C++ with emscripten. The API looks very simple, but I can't get it working. I actually wanted to implement this functionality in my project, but after failing tried to make a minimal example an...
Given the simplest of swift files:  println("lol")   It's trivial to run this on the command line with xcrun swift -i lol.swift or compile to an executable with xcrun swift lol.swift -o lol, but how about a simple proof of concept for ems...
Actually I'm using GSL in my c++ program. I've referred to the emscripten documentation but got nothing. This is what I see in the documentation, which makes no sense:  # For example, consider the case where a project “project” uses a lib...
As of today is there any way to combine native JS scripts with modules generated from C++ code (from Emscripten, chirp, clang-8+, ..) in a way that makes it possible to exchange/modify the script while reusing the modules (i.e. not having to re-proce...
I have a wasm process (compiled from c++) that processes data inside a web application. Let's say the necessary code looks like this:  std::vector<JSONObject> data for (size_t i = 0; i < data.size(); i++) {     process_data(data[i]);...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.