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

Use WASM component model #3

Open
dabreegster opened this issue Jan 19, 2024 · 0 comments
Open

Use WASM component model #3

dabreegster opened this issue Jan 19, 2024 · 0 comments

Comments

@dabreegster
Copy link
Contributor

dabreegster commented Jan 19, 2024

The frontend Svelte code should be able to talk to a client-side WASM Rust or Python "backend" easily, or even a remote one. The difference is ideally mostly invisible to the frontend. The WASM backend should run in a web worker, be called async (maybe via https://github.com/GoogleChromeLabs/comlink?), and have a well-defined TS API. Stuart also pointed to https://github.com/WebAssembly/component-model as possible inspiration / something to use.

Edit: adapt https://github.com/stuartlynn/Component_model_example

@dabreegster dabreegster changed the title Generic backends Use WASM component model May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant