jco icon indicating copy to clipboard operation
jco copied to clipboard

Provide wasm-tools APIs in the browser

Open guybedford opened this issue 1 year ago • 2 comments

Since Jco exposes the wasm-tools APIs, it would be nice for the browser build of Jco to also expose these APIs properly.

guybedford avatar May 06 '24 16:05 guybedford

One possibility that might be able to help smoth this is to use the wasm32-unknown-unknown compilation target. That avoids importing WASI APIs at the cost of having to maybe work around some minor issues in the standard library (e.g. manually avoiding std::time, filesystems, etc)

alexcrichton avatar May 06 '24 18:05 alexcrichton

It would be great to have support for isomorphic api, so that they can be executed on both nodejs and web at the same time.

I did a simple test, wasm-tools has better performance than wabt, good job https://github.com/ahaoboy/wasm-tools-wasm-demo

ahaoboy avatar May 11 '24 03:05 ahaoboy