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

Create version with wasm+wazero instead of cgo #16

Open
redexp opened this issue Oct 25, 2024 · 4 comments
Open

Create version with wasm+wazero instead of cgo #16

redexp opened this issue Oct 25, 2024 · 4 comments

Comments

@redexp
Copy link

redexp commented Oct 25, 2024

Good day

If you don't know wazero is fully go written WebAssembly runtime so with tree-sitter.wasm + wazero this project could be fully independent from cgo.

@amaanq
Copy link
Member

amaanq commented Oct 25, 2024

This would be nice to add support for, and have it gated behind a build tag

@ObserverOfTime
Copy link
Member

Why wazero and not wasmtime?

@redexp
Copy link
Author

redexp commented Oct 26, 2024

wazero don't have C dependency

Also I thought maybe create separate repo with just latest wasm file so js project and any other can just import one same file

@amaanq
Copy link
Member

amaanq commented Nov 9, 2024

It'd make more sense to use wasmtime though, since we already have the code in place for it in the C side

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

3 participants