Conversation
|
@chenyan-dfinity What's the status here? |
|
What's our plan for wasm_bindgen? It's working locally on my machine, but no nix support. We can keep this branch as a playground. Or I can absorb the code into the IDL rust library. |
|
Do we need a plan for wasm_bindgen? What are the benefits of having support? |
I don't know. Given that we already have a JS userlib, it may not be a priority for SDK. But it's nice to have. Maybe when we open source, the community can build something similar for us. |
We would still have to maintain a userlib, just the IDL part would go away. And since we'll most likely have to maintain some kind of library for many languages, I don't see this as a big negative.
Until we need to support another language.
Apps will still have a JavaScript part. |
We can apply wasm_bindgen to most of the dfx codebase, so we can replace all the userlib JS code, e.g. http_agent, request, etc.
I think the idea is that with (hopefully) most language supporting WebAssembly, we don't need to maintain libraries for many languages.
We already have gaps between JS and Rust. Every new feature/bug fix needs to be done twice, in both languages.
Not necessarily :) |
|
I'm going to close this as it's at least 4 months old. |
This works locally on my machine. Will try to build with nix.
Observations:
Box<[JsValue]>,Result<T, JsValue>JS code