tessi / wasmex

Execute WebAssembly from Elixir
MIT License
546 stars 31 forks source link

Compatibility with Lunatic.Solutions #427

Closed gwpl closed 1 year ago

gwpl commented 1 year ago

Is possible compatibility with https://lunatic.solutions/ ? Would it be possible to provide libraries, allowing one codebase to work on a top of Lunatic.solutions and Elixir via WASMEX? cross-linking: https://github.com/lunatic-solutions/lunatic/issues/208 and https://twitter.com/GWierzowiecki/status/1658220520414822406

tessi commented 1 year ago

I guess, lunatic is a web framework (at least as far as i understand) where you can implement handlers for certain paths in WASM. It should be possible to use a combination of phoenix and wasmex to emulate lunatics approach.

feel free to try and report back :)

gwpl commented 1 year ago

My understanding is that Lunatic is implementation of idea of OTP known from Erlang ( https://en.wikipedia.org/wiki/Open_Telecom_Platform ), which is runtime environment for programming basd on actor model .

As I read about WASMEX:

Wasmex is a fast and secure WebAssembly and WASI runtime for Elixir.

Let's assumed actor that is processing incoming messages, and is compiled in WebAssembly.

I can imagine such running/existing both, with help of WASMEX and on Lunatic.

Therefore question arised, if there couldn't be a way/framework/template/ substet (DSL , domain specific language), that would allow certain level of intercompatibliity, allowing to reuse big chunks of actors written on one framework to be used on another.