Skip to content

v0.3.0: Cranelift JIT SSA, Embedded SQLite, RFC 4180 CSV & Microservice Showcase

Choose a tag to compare

@github-actions github-actions released this 14 Oct 03:12
· 103 commits to main since this release

What's New in Shae v0.3.0

⚡ Cranelift JIT SSA Backend Expansion

  • Native f64 Float SSA Math: Lowered arithmetic (+, -, *, /), unary negation, float comparisons (==, !=, <, <=, >, >=), and native return status code 3 for sub-nanosecond floating point routines.
  • Direct Native Recursive JIT Calls: Direct function-to-function invocation without hopping in and out of VM evaluation loops.
  • Fast-Path Native Array Indexing & Bounds Checking: SSA lowering for OpCode::IndexGet with hardware pointer arithmetic (target + 8 + (index * 8)), memory-safe bounds checks, and automatic fallback deoptimization.
  • Explicit & Tiered JIT Control: jit("compile", fn), jit("status"), jit("enable"), and automatic JIT tiering threshold for hot functions.

🗄️ Standard Library Batteries

  • Embedded SQLite (std:sqlite): Zero-dependency runtime dynamic linking across Linux (libsqlite3.so), Windows (winsqlite3.dll), and macOS (libsqlite3.dylib). Complete with prepared statement parameter binding, CRUD, aggregations, and transactional DDL.
  • RFC 4180 CSV Engine (std:csv): High-throughput parsing and serialization with quoted multiline strings, escaped quotes, and type coercion.
  • Ergonomic HTTP Client (std:http): High-level get, post_json, query parameter URL encoding, status verification, and automatic JSON response decoding.
  • Foreign Function Interface (std:ffi): Dynamically load and invoke C ABI shared libraries with typed arguments and return signatures.
  • System, CLI, and Collections: std:env (dotenv loading), std:cli (ANSI styling and arguments), std:collections (Sets).

🛠️ Developer Experience & Tooling

  • Language Server (shae lsp): Autocompletion and hover documentation for all standard modules and the jit engine.
  • VS Code Extension v0.3.0: Published .vsix package with syntax grammar, live diagnostics, and LSP integration.
  • Production Microservice Showcase: examples/realworld_service/ demonstrating real-time SQLite persistence, CSV batch import/export, and HTTP routing.
  • Standalone Demos: examples/sqlite_demo.shae, examples/csv_demo.shae, examples/http_demo.shae, and examples/jit_demo.shae.

🔮 What's Next (Phase 3: Industrial Hardening)

  • Hash-DoS Resilience (Milestone 3.1): SipHash-2-4 keyed hashing for Map and Set tables.
  • UTF-8 Rune & Grapheme Safety (Milestone 3.2): Unicode grapheme cluster indexing and slicing.
  • Graceful OS Signal Handling (Milestone 3.3): std:sys.on_signal hooks for connection draining and clean shutdowns.