- Persistent Python, Lua and JavaScript workers.
- Reused runtimes for repeated short executions.
- Stable long running execution through isolated worker queues.
- Dependency graph discovery for Python, Lua and JavaScript local modules.
- Absolute and relative path normalization.
- Windows and Unix path input support.
- Inline code execution support.
cargo runThe demo starts:
- Python file execution from
python_app/main.py. - Lua file execution from
lua_app/main.lua. - Inline Python execution.
- Inline Lua execution.
- Auto import libs
The kernel accepts:
python_app/main.py./python_app/main.pypython_app\\main.py- absolute paths
Paths are normalized before loading and checked against the filesystem.
Python and Lua use dedicated long-lived threads:
- startup cost is paid once;
- runtime state can be reused;
- task queues prevent unlimited memory growth;
- repeated executions avoid recreating interpreters.
Python:
kernel.run_python("examples/python_app/main.py")?;Lua:
kernel.run_lua("examples/lua_app/main.lua")?;JavaScript:
kernel.run_js("examples/js_app/main.js")?;Language workers supports inline code