extism / elixir-sdk

Extism Elixir Host SDK
BSD 3-Clause "New" or "Revised" License
27 stars 1 forks source link

Host Function Support #2

Open bhelx opened 11 months ago

bhelx commented 11 months ago

We can't really support host functions in elixir because a NIF cannot synchronously call Elixir code. The easiest way would be to add something like this: https://github.com/tessi/wasmex/issues/256#issuecomment-848339952

This is a bit heavyweight. It could be made lighter if we add tokio support to our nif but that could also be a big lift. Wasmex is also attempting that: https://github.com/tessi/wasmex/pull/462

I think this needs some more discussion before we choose a path. Related to #3

ludns commented 6 months ago

Would be very interested in this!

munjalpatel commented 2 months ago

Same here. Having host function support would be huge!