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

Investigate compiling xh to WebAssembly #88

Open
ducaale opened this issue Mar 4, 2021 · 2 comments
Open

Investigate compiling xh to WebAssembly #88

ducaale opened this issue Mar 4, 2021 · 2 comments

Comments

@ducaale
Copy link
Owner

ducaale commented Mar 4, 2021

This could be useful if we decide to have an online playground like jqplay.

@ducaale
Copy link
Owner Author

ducaale commented Mar 11, 2021

It seems WASI could be the perfect solution for us.

Screenshot 2021-03-11 000511

That being said:

Edit: WASI doesn't seem to support async/await currently so WASM would be the way to go.

@ducaale
Copy link
Owner Author

ducaale commented Mar 14, 2021

Proof of concept: https://xh-playground.netlify.app/

Screenshot 2021-03-14 235349

crates + npm packages used

Edit: the code is hosted at https://github.com/ducaale/xh-playground

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