Repository navigation
Native Rust module execution for self-hosted Spacetime? #6529
lucascompython
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi there!
I've been looking into Spacetime's architecture and noticed that Rust backend modules are compiled to WebAssembly and executed through Wasmtime.
I understand the advantages of WASM regarding sandboxing, portability, and controlled execution, especially in multi-tenant environments.
However, for self-hosted deployments where all modules are trusted, I'm wondering whether native Rust execution has ever been considered.
Would it make sense to support an optional native execution backend, allowing Rust modules to be compiled directly to machine code instead of WASM?
I'm interested in:
Whether native execution could provide meaningful performance improvements for CPU-intensive workloads.
Whether removing the WASM boundary could reduce overhead for database operations.
Whether there are architectural constraints that would make native module hosting impractical.
Whether this is something the team might consider in the future
I'm not suggesting that native execution should replace WASM, but rather wondering whether it could be an optional backend for trusted, self-hosted environments.
Thanks!
All reactions