lunatic-solutions / lunatic

Lunatic is an Erlang-inspired runtime for WebAssembly
https://lunatic.solutions
Apache License 2.0
4.57k stars 136 forks source link

Is it possible to run RustPython => Wasm on a top of Lunatic.Solutoins? #209

Open gwpl opened 1 year ago

gwpl commented 1 year ago

There are a lot of libraries on Python, that one may want to use without reimplementing everything.

I wondered if it's possible to produce WebAssembly from Python using RustPython: https://rustpython.github.io/ and then somehow combine with wrapper around to make it run on a top of lunatic.soluiotns?

(Or any other way?)

Especially currently there is huge boom and work on LLMs with LangChain, and I would love to be able to use Lunatic.Solutions as basis for Autonomous Agents, but rust Lang Chain libraries are not not in pair with Python codebase, and code samples. (over time it will improve but it's to start easy and bring on many users fast on current wave of project popularity).

I see also extra benefits when sandboxing execution of LLM AI Agents inside web assembly runtimes.

(and as Agent model matches very nicely AI Agents, I also thought About Erlang/Elixir , that's why issue about WASMEX: https://github.com/lunatic-solutions/lunatic/issues/208 )