3 ms·
I think the Lunatic architecture can enable shared memory regions between processes and between processes and host in addition to the erlang-like shared nothing
by nahuel0x 6y ago
I think the Lunatic architecture can enable shared memory regions between processes and between processes and host in addition to the erlang-like shared nothing approach. That would be an advantage over (non-NIF) erlang for some use-cases. Do you plan something like that? Can you easily map a data structure in Rust? (I think is doable between WASM process but not sure about between WASM and native host).
Another question: What about sending code between process? Like sending a fun between Erlang process.
IMHO this architecture has the potential to go beyond BEAM, good work!
- bkolobara 6y agoThank you! This is something I want to support and there is some WIP code for it. Currently I'm only waiting on Wasmtime (the WASM runtime used by Lunatic) to get support for shared memory. Regarding the question about sending code, this also can be implemented. Wasm allows you to share function indexes (pointers) and dynamically call them.