arkworks-rs / std

A standard library wrapper for use in the `arkworks` ecosystem

Home Page:https://www.arkworks.rs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WASM compilation/Webapp proof of concept

jon-chuang opened this issue · 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.

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

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.