Skip to content

Crystal Alpha 1.20.0-dev (Incremental + WASM)

Choose a tag to compare

Crystal Alpha - Incremental Compilation + WASM Support

Pre-built binary for macOS ARM64 (Apple Silicon) with:

Incremental Compilation

  • File-level dependency graph with smart recompilation
  • Parse caching and signature-based change detection
  • Parallel parsing and semantic analysis
  • Watch mode (crystal-alpha watch)

WASM Support

  • Full wasm32-wasi target with exception handling, GC, fibers
  • Pre-compiled WASM object files eliminated — symbols emitted directly from codegen
  • LLVM 22+ exception model API support (version-gated)

Install via Homebrew

brew tap crimson-knight/crystal-alpha
brew install crystal-alpha

Quick Test

# Native compilation
crystal-alpha build hello.cr -o hello

# WASM compilation
CRYSTAL_LIBRARY_PATH=/tmp/wasm32-wasi-libs crystal-alpha build hello.cr \
  -o hello.wasm --target wasm32-wasi -Dwithout_iconv -Dwithout_openssl
wasmtime run --wasm exceptions hello.wasm

Requirements

  • macOS ARM64 (Apple Silicon)
  • LLVM 21+ (via brew install llvm)
  • For WASM: wasi-sdk libraries, wasmtime, wasm-opt (Binaryen)