Skip to content
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

[EXP] with-wasm #102

Closed
3 tasks done
shiqimei opened this issue Jul 15, 2022 · 4 comments
Closed
3 tasks done

[EXP] with-wasm #102

shiqimei opened this issue Jul 15, 2022 · 4 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@shiqimei
Copy link

shiqimei commented Jul 15, 2022

How do you envision this feature/change to look/work like?

Provide "out-of-box" support for WASM integration.
Web Assembly (Wasm) Support (Integration & Recipes)

What is the purpose of this change/feature? Why?

For some performance sensitive cases, like video encoding/decoding, WASM does matter.

I made a benchmark for base64 encoding/decoding before (rust WASM version is 6X faster than pure JavaScript version on my macbook m1). Another example is that tf.js blogged how WASM helped them get 10X performance improvement.

It will be great if we can provide some "out-of-box" integration for WASM. The "integration" could be example projects, APIs , some recipes (Best Practices for instance) in the documentation even a Javascript/Rust hybird project template.

(OPTIONAL) Example implementations

No response

(OPTIONAL) Contact Details

No response

Verify canary release

  • I verified that the issue exists in plasmo canary release

Code of Conduct

  • I agree to follow this project's Code of Conduct
  • I checked the current issues for duplicate problems.
@shiqimei shiqimei added the enhancement New feature or request label Jul 15, 2022
@louisgv louisgv added the good first issue Good for newcomers label Jul 18, 2022
@louisgv
Copy link
Contributor

louisgv commented Jul 18, 2022

Would be great if the community can spearhead this :) - I think plasmo has most of the tooling needed to support wasm, i.e via web accessible resource and the url scheme.

@louisgv louisgv added the help wanted Extra attention is needed label Jul 19, 2022
@louisgv louisgv added documentation Improvements or additions to documentation and removed enhancement New feature or request labels Jul 28, 2022
@louisgv louisgv changed the title [RFC] Web Assembly (Wasm) Support (Integration & Recipes) [EXP] with-wasm Web Assembly (Wasm) Support (Integration & Recipes) Jul 28, 2022
@louisgv louisgv changed the title [EXP] with-wasm Web Assembly (Wasm) Support (Integration & Recipes) [EXP] with-wasm Aug 16, 2022
@louisgv louisgv self-assigned this Aug 21, 2022
@louisgv
Copy link
Contributor

louisgv commented Aug 21, 2022

Watch this repo: https://github.com/PlasmoHQ/with-wasm-zig

We're learning zig boiiii (and zig -> wasm too kek)

@louisgv
Copy link
Contributor

louisgv commented Aug 21, 2022

Once the setup is done, if it's lean enough we might just throw it in our examples repo. For now, I'm just experimenting with zig for fun.

@louisgv louisgv removed good first issue Good for newcomers help wanted Extra attention is needed labels Aug 31, 2022
@louisgv
Copy link
Contributor

louisgv commented Aug 31, 2022

@lolimay the zig experimentation is done for stage 1. Feel free to checkout the repo linked above. I noted a tons of work that we can do to improve the DX for zig <-> ts (via wasm). If anyone would like to help out, pls chime in on the discord :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants