takoscript
v0.1.7
Published
A JavaScript to native compiler and runtime
Maintainers
Readme
TakoScript
A JavaScript to native compiler and runtime.
Installation
npm (Recommended)
npm install -g takoscriptFrom Source
Requirements:
- Rust 1.85.0+
- LLVM 21.1
# Install Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# Install LLVM 21 (Ubuntu/Debian)
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 21
sudo apt-get install -y libpolly-21-dev
export LLVM_SYS_211_PREFIX=/usr/lib/llvm-21
# Install LLVM 21 (macOS)
brew install llvm@21
export LLVM_SYS_211_PREFIX=$(brew --prefix llvm@21)
# Build
cargo build --release
# The binary will be at target/release/takoUsage
Run JavaScript
tako run script.jsCompile to Native Binary
tako build script.js -o outputRun Tests
tako testCommands
| Command | Description |
|---------|-------------|
| tako run <file> | Run JavaScript file with interpreter |
| tako build <file> [-o output] | Compile to native executable |
| tako test [--aot\|--run] | Run test suite |
| tako test262 | Run ECMAScript test262 conformance tests |
| tako test-node-compat | Run Node.js compatibility tests (allowlist/skiplist) |
| tako bench | Run performance benchmarks with optional regression check |
| tako version | Show version info |
License
MIT
