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

Provide lib as WASM? #231

Open
shevernitskiy opened this issue Sep 17, 2022 · 3 comments
Open

Provide lib as WASM? #231

shevernitskiy opened this issue Sep 17, 2022 · 3 comments

Comments

@shevernitskiy
Copy link

Is it possible to compile lib into wasm?
In this case it will be usable in Deno.
Deno community will be happy and appreciate for that:)

@FlorentinDUBOIS
Copy link
Collaborator

Hey, I am interested by this use case as well. To me Deno is written in Rust, so it could be use as-is 🤔. Could you give me the reason why Deno community need a wasm version?

@shevernitskiy
Copy link
Author

Hey, I am interested by this use case as well. To me Deno is written in Rust, so it could be use as-is 🤔. Could you give me the reason why Deno community need a wasm version?

Deno is written in rust to work with js/ts. For example I would like to have a ts client on deno. If you take node.js, it uses C++ bindings and ready c++ client library, it's about the same here, only rust + deno. I.e. you can take an already ready client in rust, compile into wasm and use in deno applications on ts as a normal dependency.

@heavyrain266
Copy link

heavyrain266 commented Jan 7, 2023

I'm also interested in WASM but for Lunatic. Basically I'm building a network for distributed system (see fólkvangr where you compile your services to WASM and execute them using runtime similar to Erlang's Beam as additional security layer. My use case for Pulsar is a notification dispatcher which consumes messages from other services in the network, processes them with Arrow and then forwards them to e.g. admin panel, mobile devices or send emails etc.

I will have to do more tests but it may require a feature flag which gates lunatic as dependency for currently unsupported parts of std. In the future, Pulsar should be fully comaptible without any changes once cranelift (rust jit) will be merged as fully featured part of rustc.

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