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

Compiling and targetting to WASM? #100

Open
jymchng opened this issue Aug 19, 2024 · 2 comments
Open

Compiling and targetting to WASM? #100

jymchng opened this issue Aug 19, 2024 · 2 comments

Comments

@jymchng
Copy link

jymchng commented Aug 19, 2024

Thank you for your great work!

I have a simple Python playground which I am intending to add a [Check] button for type checking or even language server if I figure out how to run a WebSocket with a Web Worker and WASM.

I am just curious since Ruff has successfully targetted WASM, is this in your plans as well?

@mtshiba
Copy link
Owner

mtshiba commented Aug 20, 2024

Under crates, there is a crate called pylyzer_wasm. If you compile this with wasm-pack, you can use the basic features of pylyzer. In this case, it is needed to connect the analyzer and the editor manually. When I created a playground for the Erg language in the past, I used this method.

I have no experience with using a language server in-browser, but the following may be helpful.

@jymchng
Copy link
Author

jymchng commented Aug 22, 2024

Under crates, there is a crate called pylyzer_wasm. If you compile this with wasm-pack, you can use the basic features of pylyzer. In this case, it is needed to connect the analyzer and the editor manually. When I created a playground for the Erg language in the past, I used this method.

I have no experience with using a language server in-browser, but the following may be helpful.

Thank you for sharing, let me study these examples more closely.

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

2 participants