You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expect it to have the same behavior as the existing jsoo build (which works pretty well). Then I can compare what (mostly performance) difference it actually makes.
To add more context, the module is used in the ReScript's playground. I guess this could be the ideal use case for WebAssembly + WebWorker.
Versions
Chrome 119.0.6045.199 (It's failed to WebAssembly.instantiate in Node.js, so I'm testing it in Chrome)
ocamlc 4.14.0
js_of_ocaml (lib, compiler) 5.3.0
wasm_of_ocaml-compiler 5.3.0-wasm
wasm-merge (binaryen) 116
The text was updated successfully, but these errors were encountered:
I was expecting file descriptors to be small integers, so I'm storing some information in an array using them as an index. But memfs uses large integers (see streamich/memfs#607).
I'm going to fix that.
Describe the bug
After a few modifications related to export functions, the build was successful, but the following error occurred when running the main code.
Uncaught RuntimeError: requested new array is too large.
I don't know where exactly the error is produced. I couldn't find any information searching in various places.
This is the source code https://github.com/rescript-lang/rescript-compiler/blob/master/jscomp/jsoo/jsoo_playground_main.ml and WASM the build I made using wasm_of_ocaml https://github.com/cometkim/rescript-wasm-test
Expected behavior
I expect it to have the same behavior as the existing jsoo build (which works pretty well). Then I can compare what (mostly performance) difference it actually makes.
To add more context, the module is used in the ReScript's playground. I guess this could be the ideal use case for WebAssembly + WebWorker.
Versions
WebAssembly.instantiate
in Node.js, so I'm testing it in Chrome)The text was updated successfully, but these errors were encountered: