Hi Alon,

I am starting up with web assembly with no prior experience and have played
around with some basic examples with and without emscripten.

Some basic questions:

1. My original concept of using wasm is to write multiple wasm modules for
different computational tasks and keep as a library of wasm modules. Do you
think that it makes sense?
2. As a concept this at least seems possible without enscripten as I can
create SIDE_MODULEs and load using instantiateStreaming and instance.exports
list. But this approach without emscripten generated JS is going to be
tough to manage as I will have to do memory management myself with
constantly updating webassembly as I understand.
3. With emscripten js/wasm pair, as I understand, memory management task is
offloaded to emscripten. It is great. But I see few
limitations/restrictions:

   - The emscripten js script needs to be loaded in root index.html under
   <script> tags. Why is it not flexible to be loaded dynamically as and when
   required? Let's say I want to load different wasm modules in different
   angular components.
   - How could I load multiple modules (wasm, js pairs) both alive at the
   same time? It appears that the latest wasm, js pair seems to be overwriting
   the earlier one. The command used to create these pairs is *emcc demo.c
   -s WASM=1 -O2 -o demo.js*
   - Would you point to any working examples for above if this is at all
   possible.

Regards,
Atul

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/CACcXSkS%2Bxa26s4KA_ksY4J4QTw7zuQLVCZFJH_fStPmtoD%2BUPQ%40mail.gmail.com.
  • Starting up Kulkarni, Atul

Reply via email to