Thanks a lot Jakob.
I will move the HandleScope out of the loop first. I think moving to Wee8
is the best solution, since I only need WebAssembly support. (I tried Wee8
some months ago, but failed. I will give it another try.) I will experiment
with your suggestion of producing the string in
No, there is no way to write to stdout directly, and that's intentional.
WebAssembly code can only use imported functions to communicate with the
environment.
The lowest-hanging fruit here is to move the HandleScope out of the loop.
HandleScope creation/destruction is somewhat expensive, and you
Hi all,
I am compiling WebAssembly modules that perform computations and produce
results. These results (tuples of values of various types) I would like to
print to stdout. My current approach is importing a callback function to
the WebAssembly module instance that performs the printing: