std icon indicating copy to clipboard operation
std copied to clipboard

WASM compilation/Webapp proof of concept

Open jon-chuang opened this issue 5 years ago • 2 comments

It would be nice if WASM tooling could be added. Short of creating a full webapp, it would be cool if people could simply benchmark performance on their browser. This is related to arkworks-rs/algebra#79 , and the WebGPU benchmarks in browser mode can also be added there.

WASM-specific optimisations may also have to be considered under given compilation options.

I have to investigate how to integrate WebGPU into a WASM compilation pipeline. I don't think it's too hard.

jon-chuang avatar Apr 03 '20 16:04 jon-chuang

Most of the library (except dpc) supports no_std, so compiling to a wasm target is straightforward.

Pratyush avatar Apr 03 '20 16:04 Pratyush

I’ve been spending some time experimenting with WASM. For the purposes of Zexe, ‘no_std’ provides a sufficient level of support for WASM frameworks.

The bigger barrier I potentially see is insufficient memory / stack overflows when running in a browser. I think we can address these as they come.

howardwu avatar Apr 03 '20 16:04 howardwu