arkworks-rs / std

A standard library wrapper for use in the `arkworks` ecosystem
https://www.arkworks.rs
Apache License 2.0
37 stars 33 forks source link

WASM compilation/Webapp proof of concept #8

Open jon-chuang opened 4 years ago

jon-chuang commented 4 years ago

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.

Pratyush commented 4 years ago

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

howardwu commented 4 years ago

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.