-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
client-sdk: use tinygo to compile to wasm #370
Comments
@tiero can you explain problem with standard go we already using? what should be solved by this? |
The WASM is 35MB. The limit on Cloudflare Pages is 25MB. Due to his popularity we expect many other users to want to host JS apps that uses Ark SDK there. |
@sekulicd the problem is: ark-sdk.wasm is >35MB in size:
A different approach would be to build the wasm into different files:
|
I would give TinyGo a chance, looking into possible optimizations https://tinygo.org/docs/guides/optimizing-binaries/ Other option is also to use compression when compiling and then decompressing in the browser https://github.com/httptoolkit/brotli-wasm |
@tiero @bordalix update on this: TinyGo doesnt support native net/http pkg, there is ported https://github.com/tinygo-org/net pkg but replacing standard pkgs with TinyGo doesnt seem nice option? |
No description provided.
The text was updated successfully, but these errors were encountered: