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

Implementation on pure go #5

Open
kalloc opened this issue Jul 11, 2024 · 4 comments
Open

Implementation on pure go #5

kalloc opened this issue Jul 11, 2024 · 4 comments

Comments

@kalloc
Copy link

kalloc commented Jul 11, 2024

No description provided.

@ngotchac
Copy link

ngotchac commented Aug 1, 2024

A first implementation could be to compile the rust version to WASM, and use a WASM interpreter in a go library

@cdump
Copy link
Owner

cdump commented Aug 1, 2024

Why use WASM if we can compile Rust to a .so library and just call it using CGo (by writing a minimal Go wrapper library for users)?

@ngotchac
Copy link

ngotchac commented Aug 1, 2024

Wouldn't that be platform-dependent? Requiring to compile it to all supported platforms.

@cdump
Copy link
Owner

cdump commented Aug 1, 2024

Yes, but I think it can be solved somehow (like in Python packages - prebuilt for popular platforms + compilation on install for others), and probably it would be easier than living with WASM limitations in Rust code.
Anyway, I'm open to all solutions and will probably do some R&D before deciding on the best option.

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