https://opendal.apache.org/ logo
wasm support in opendal
# general
m
I wanted to talk about wasm support in opendal
x
Hi
m
these threads new discord feature ?
x
I believe they have been exist for a while
m
hmm
anyways, I am really interested in trying to get wasm working for the project
What do you want
or see as potential future
when you say want it to work in browser ?
x
while, opendal itself is a lib. So it's naturally to make opendal compilable on both wasm32-unknown-unknown and wasm32-wasi targets.
And
wasm32-unknown-unknown
is mostly talking about browser.
m
ok, what I initially would like to do is try getting in running on a runtime
this is also because wasmtime seems to have poly fills that would make it work on browser
x
on a runtime
means running opendal on wasmtime or something?
m
yes
x
I believe they are different targets.
m
yes, they are different targets
it is kind of like wrapper
I also saw the current bindings for node use napi
do you know who has done that ?
might help me get a little bit of jump start
x
I'm still a bit confused about the thing you want to build.
Are you talking about implement opendal-wasm which is able to run on a wasm runtime?
m
yes
very much so
x
Got it.
Would you like to start an issue for this idea so I can invite people who intereted in this topic to join in?
In fact, we have some people working with wasmedge to make it happen.
m
yes, that would be great
you want me to create an issue or your will be creating one ?
x
By the way, napi has added native wasm32-wasi support. Maybe worth a look to see if we can make opendal-nodejs on wasm runtime.
Please create one which represents your ideas. 😘
m
alright, will do so
thanks
9 Views