Author: Evan Shipley
A universal, polyglot coding language and interpreter built for performance and portability. Nλvescript is the "Universal Omni-Language," designed to bridge multiple languages, capabilities, and hardware targets under a single, highly-optimized runtime.
Nλvescript features a unique Polyglot Transmutation Engine that allows it to translate, execute, and verify code from multiple languages:
- Supported Languages: Python, JavaScript, Ruby, Bash, Perl.
- Transmutation Loop:
- Translate: Accepts foreign language source code.
- Execute: Runs foreign code in a sandboxed environment.
- Transmute: Converts the foreign output/state into Nλvescript's native JSON representation.
- Verify: Runs native Nλvescript operations (addition, string manipulation, array reversal) against the foreign output to ensure semantic correctness.
- Assert: Performs rigorous equality checks (Assertion engine) to guarantee the translation matches the origin behavior.
This cyclic verification loop ensures that Nλvescript-translated code functions exactly as the origin language intended.
- WASI 0.2 (Preview 2): Built on the WebAssembly Component Model for modern, composable binaries.
- Component Model: True "LEGO brick" modularity with rich, language-agnostic types via WIT.
- GraalVM Polyglot: Bridge for zero-copy execution of Python, JavaScript, and Ruby.
- Capability-Based Security: Explicit declaration of required OS permissions at the "World" level.
- High-Performance Runtime: Powered by Wasmtime component-model engine.
# Requires Rust and Cargo
git clone https://github.com/naveos/navescript
cd navescript
cargo build --releasecargo run -- run examples/wasi_test.navecargo run -- compile examples/wasi_test.nave --output component.watcargo run -- statussrc/parser.rs: Component and World definition parser.src/ir.rs: Intermediate Representation for Component Interfaces.src/compiler.rs: Translates Nλ-IR to WASI 0.2 Component WAT.src/runtime.rs: Wasmtime component-model execution engine.src/polyglot.rs: GraalVM cross-language bridge architecture.wit/navescript.wit: Interface definition for the Nλvescript world.
MIT License