Repository navigation
Releases
Shae v0.8.0
Shae v0.6.0 — Gradual Type Checker, Package Registry & Space Invaders 2D Showcase
We are thrilled to announce Shae v0.6.0, a massive evolutionary leap for the Shae programming language. This landmark release introduces an opt-in Gradual Static Type System & Diagnostics Checker, a complete decentralized Remote Package Registry Subsystem, the Shae Studio Web IDE, and the Unified Creative Suite featuring a full retro Space Invaders 2D arcade game with synthesized waveform audio.
🌟 Key Highlights & Major Milestones
1. 🛡️ Gradual Typing & Static Type Checker (shae check)
- Syntax Type Annotations: Opt-in static typing on functions, parameters, return bounds, and variable declarations:
fn calculate_tax(subtotal: float, rate: float | null) -> float { let effective_rate: float = rate ?? 0.08 return subtotal * effective_rate } - Type Universe: Primitive types (
int,float,string,bool), compound types (list,map), escape hatch (any), and nullable sentinel (null). - Nullable Union Types: Expressive union syntax (
int | null,string | float | any) with natural null-safety ergonomics. - Deep Static Analysis Engine:
shae checkverifies return type consistency, parameter arity and types, and variable assignments without executing code. - LSP Diagnostics Integration: Full real-time editor diagnostic squiggles and hover tooltips for typed identifiers.
- 100% Backward Compatibility: Dynamically typed code continues to execute seamlessly without friction.
2. 📦 Remote Package Registry & Manager Subsystem (shae pkg)
- Comprehensive CLI Suite:
shae pkg init <name>: Scaffolds a standardized package repository withshae.toml.shae pkg add <pkg>@<version>: Downloads dependencies from local or remote registries and records them inshae.toml.shae pkg install: Deterministically resolves and installs all dependencies fromshae.lock.shae pkg pack: Packages libraries into portable, compressed.shaepkgarchives.shae pkg publish: Securely authenticates and uploads packages to remote HTTP registries.shae pkg verify: Validates package integrity, structure, and metadata checksums.
- Cryptographic Security: Every package is validated with SHA-256 integrity checksums, and the extractor enforces Zip-Slip path traversal defense.
3. 👾 Space Invaders 2D Showcase & Unified Creative Engine
examples/space_invaders.shae: Full retro 2D arcade game running natively in pure Shae:- 5x11 animated alien armada with stepped pacing and descent.
- Player laser cannon with collision detection and bunker degradation.
- Real-time score tracking, wave escalation, and lives HUD.
std:guiMulti-Mode Graphics:- 24-bit TrueColor ANSI half-block terminal canvas rendering at 60 FPS.
- Embedded desktop windowing fallback (
minifb) with hardware pixel buffers. - Sprite blitting, color fills, and non-blocking keyboard input polling (
is_key_down).
std:audioHardware Sound Synthesis:- Pure waveform synthesis engine: sine, square, triangle, sawtooth, and white noise.
- Retro sound triggers:
shoot,invader_killed,explosion, andstep. - Master volume controls, ADSR envelope generation, and headless audio event tracing.
std:uiArcade UI Toolkit:- Arcade HUD components (
draw_hud,draw_score,draw_lives_icons,draw_panel). - Immediate-mode UI widgets: buttons, sliders, checkboxes, and progress bars.
- Arcade HUD components (
4. 💻 Shae Studio Web IDE (shae ide / shae studio)
- Zero-Dependency Browser IDE: Run
shae ide --port 8080to launch an interactive development environment directly from the Shae binary. - Integrated Toolchain: Code editor with syntax formatting (
/api/fmt), static type analysis (/api/check), sub-millisecond execution runner (/api/run), interactive REPL console, and workspace file explorer.
5. 📖 Comprehensive Genesis Guide (SHAE_FROM_SCRATCH.md)
- A master architectural manifesto detailing the journey from sand and silicon to the Pratt parser, stack bytecode VM, Cranelift JIT SSA, LLVM 18 IR generation, and distributed actor clusters.
📦 Installation & Verification
Single-Line Universal Installer (Linux, macOS, Windows)
curl -fsSL https://raw.githubusercontent.com/spdedsec/shae/main/install.sh | bash
# Or via official site:
curl -fsSL https://shae-site.vercel.app/install.sh | bashBuild and Install from Source
git clone https://github.com/spdedsec/shae.git
cd shae
cargo install --path .Verify your installation:
shae --version
# Expected: shae 0.6.0Shae v0.7.0
Shae v0.6.0 — Gradual Type Checker, Package Registry & Space Invaders 2D Showcase
We are thrilled to announce Shae v0.6.0, a massive evolutionary leap for the Shae programming language. This landmark release introduces an opt-in Gradual Static Type System & Diagnostics Checker, a complete decentralized Remote Package Registry Subsystem, the Shae Studio Web IDE, and the Unified Creative Suite featuring a full retro Space Invaders 2D arcade game with synthesized waveform audio.
🌟 Key Highlights & Major Milestones
1. 🛡️ Gradual Typing & Static Type Checker (shae check)
- Syntax Type Annotations: Opt-in static typing on functions, parameters, return bounds, and variable declarations:
fn calculate_tax(subtotal: float, rate: float | null) -> float { let effective_rate: float = rate ?? 0.08 return subtotal * effective_rate } - Type Universe: Primitive types (
int,float,string,bool), compound types (list,map), escape hatch (any), and nullable sentinel (null). - Nullable Union Types: Expressive union syntax (
int | null,string | float | any) with natural null-safety ergonomics. - Deep Static Analysis Engine:
shae checkverifies return type consistency, parameter arity and types, and variable assignments without executing code. - LSP Diagnostics Integration: Full real-time editor diagnostic squiggles and hover tooltips for typed identifiers.
- 100% Backward Compatibility: Dynamically typed code continues to execute seamlessly without friction.
2. 📦 Remote Package Registry & Manager Subsystem (shae pkg)
- Comprehensive CLI Suite:
shae pkg init <name>: Scaffolds a standardized package repository withshae.toml.shae pkg add <pkg>@<version>: Downloads dependencies from local or remote registries and records them inshae.toml.shae pkg install: Deterministically resolves and installs all dependencies fromshae.lock.shae pkg pack: Packages libraries into portable, compressed.shaepkgarchives.shae pkg publish: Securely authenticates and uploads packages to remote HTTP registries.shae pkg verify: Validates package integrity, structure, and metadata checksums.
- Cryptographic Security: Every package is validated with SHA-256 integrity checksums, and the extractor enforces Zip-Slip path traversal defense.
3. 👾 Space Invaders 2D Showcase & Unified Creative Engine
examples/space_invaders.shae: Full retro 2D arcade game running natively in pure Shae:- 5x11 animated alien armada with stepped pacing and descent.
- Player laser cannon with collision detection and bunker degradation.
- Real-time score tracking, wave escalation, and lives HUD.
std:guiMulti-Mode Graphics:- 24-bit TrueColor ANSI half-block terminal canvas rendering at 60 FPS.
- Embedded desktop windowing fallback (
minifb) with hardware pixel buffers. - Sprite blitting, color fills, and non-blocking keyboard input polling (
is_key_down).
std:audioHardware Sound Synthesis:- Pure waveform synthesis engine: sine, square, triangle, sawtooth, and white noise.
- Retro sound triggers:
shoot,invader_killed,explosion, andstep. - Master volume controls, ADSR envelope generation, and headless audio event tracing.
std:uiArcade UI Toolkit:- Arcade HUD components (
draw_hud,draw_score,draw_lives_icons,draw_panel). - Immediate-mode UI widgets: buttons, sliders, checkboxes, and progress bars.
- Arcade HUD components (
4. 💻 Shae Studio Web IDE (shae ide / shae studio)
- Zero-Dependency Browser IDE: Run
shae ide --port 8080to launch an interactive development environment directly from the Shae binary. - Integrated Toolchain: Code editor with syntax formatting (
/api/fmt), static type analysis (/api/check), sub-millisecond execution runner (/api/run), interactive REPL console, and workspace file explorer.
5. 📖 Comprehensive Genesis Guide (SHAE_FROM_SCRATCH.md)
- A master architectural manifesto detailing the journey from sand and silicon to the Pratt parser, stack bytecode VM, Cranelift JIT SSA, LLVM 18 IR generation, and distributed actor clusters.
📦 Installation & Verification
Single-Line Universal Installer (Linux, macOS, Windows)
curl -fsSL https://raw.githubusercontent.com/spdedsec/shae/main/install.sh | bash
# Or via official site:
curl -fsSL https://shae-site.vercel.app/install.sh | bashBuild and Install from Source
git clone https://github.com/spdedsec/shae.git
cd shae
cargo install --path .Verify your installation:
shae --version
# Expected: shae 0.6.0Shae v0.6.0
Shae v0.6.0 — Gradual Type Checker, Package Registry & Space Invaders 2D Showcase
We are thrilled to announce Shae v0.6.0, a massive evolutionary leap for the Shae programming language. This landmark release introduces an opt-in Gradual Static Type System & Diagnostics Checker, a complete decentralized Remote Package Registry Subsystem, the Shae Studio Web IDE, and the Unified Creative Suite featuring a full retro Space Invaders 2D arcade game with synthesized waveform audio.
🌟 Key Highlights & Major Milestones
1. 🛡️ Gradual Typing & Static Type Checker (shae check)
- Syntax Type Annotations: Opt-in static typing on functions, parameters, return bounds, and variable declarations:
fn calculate_tax(subtotal: float, rate: float | null) -> float { let effective_rate: float = rate ?? 0.08 return subtotal * effective_rate } - Type Universe: Primitive types (
int,float,string,bool), compound types (list,map), escape hatch (any), and nullable sentinel (null). - Nullable Union Types: Expressive union syntax (
int | null,string | float | any) with natural null-safety ergonomics. - Deep Static Analysis Engine:
shae checkverifies return type consistency, parameter arity and types, and variable assignments without executing code. - LSP Diagnostics Integration: Full real-time editor diagnostic squiggles and hover tooltips for typed identifiers.
- 100% Backward Compatibility: Dynamically typed code continues to execute seamlessly without friction.
2. 📦 Remote Package Registry & Manager Subsystem (shae pkg)
- Comprehensive CLI Suite:
shae pkg init <name>: Scaffolds a standardized package repository withshae.toml.shae pkg add <pkg>@<version>: Downloads dependencies from local or remote registries and records them inshae.toml.shae pkg install: Deterministically resolves and installs all dependencies fromshae.lock.shae pkg pack: Packages libraries into portable, compressed.shaepkgarchives.shae pkg publish: Securely authenticates and uploads packages to remote HTTP registries.shae pkg verify: Validates package integrity, structure, and metadata checksums.
- Cryptographic Security: Every package is validated with SHA-256 integrity checksums, and the extractor enforces Zip-Slip path traversal defense.
3. 👾 Space Invaders 2D Showcase & Unified Creative Engine
examples/space_invaders.shae: Full retro 2D arcade game running natively in pure Shae:- 5x11 animated alien armada with stepped pacing and descent.
- Player laser cannon with collision detection and bunker degradation.
- Real-time score tracking, wave escalation, and lives HUD.
std:guiMulti-Mode Graphics:- 24-bit TrueColor ANSI half-block terminal canvas rendering at 60 FPS.
- Embedded desktop windowing fallback (
minifb) with hardware pixel buffers. - Sprite blitting, color fills, and non-blocking keyboard input polling (
is_key_down).
std:audioHardware Sound Synthesis:- Pure waveform synthesis engine: sine, square, triangle, sawtooth, and white noise.
- Retro sound triggers:
shoot,invader_killed,explosion, andstep. - Master volume controls, ADSR envelope generation, and headless audio event tracing.
std:uiArcade UI Toolkit:- Arcade HUD components (
draw_hud,draw_score,draw_lives_icons,draw_panel). - Immediate-mode UI widgets: buttons, sliders, checkboxes, and progress bars.
- Arcade HUD components (
4. 💻 Shae Studio Web IDE (shae ide / shae studio)
- Zero-Dependency Browser IDE: Run
shae ide --port 8080to launch an interactive development environment directly from the Shae binary. - Integrated Toolchain: Code editor with syntax formatting (
/api/fmt), static type analysis (/api/check), sub-millisecond execution runner (/api/run), interactive REPL console, and workspace file explorer.
5. 📖 Comprehensive Genesis Guide (SHAE_FROM_SCRATCH.md)
- A master architectural manifesto detailing the journey from sand and silicon to the Pratt parser, stack bytecode VM, Cranelift JIT SSA, LLVM 18 IR generation, and distributed actor clusters.
📦 Installation & Verification
Single-Line Universal Installer (Linux, macOS, Windows)
curl -fsSL https://raw.githubusercontent.com/spdedsec/shae/main/install.sh | bash
# Or via official site:
curl -fsSL https://shae-site.vercel.app/install.sh | bashBuild and Install from Source
git clone https://github.com/spdedsec/shae.git
cd shae
cargo install --path .Verify your installation:
shae --version
# Expected: shae 0.6.0Shae v0.5.0
Shae v0.5.0 — Native 2D GUI, Creative Engine & Direct Scripting Release
We are proud to announce Shae v0.5.0, a landmark release transforming Shae into a high-performance creative and graphical programming language. This release introduces an embedded 60 FPS 2D software framebuffer with native Wayland and X11 windowing, new creative standard library modules (std:gui, std:random, std:math, std:io), direct script execution with shebang support, language ergonomics, rich LSP documentation, and complete playable showcase games.
🌟 Key Highlights & Major Milestones
1. 🎮 Native 2D Game & Windowing Engine (std:gui / std:graphics)
- 60 FPS Software Rasterizer: Embedded immediate-mode 2D framebuffer rendering natively on Linux Wayland (
wayland-1) and X11 (DISPLAY=:0). - Complete Drawing Primitives:
- Solid fills and clears:
gui.clear(win, [color]). - Individual pixels:
gui.pixel(win, x, y, color). - Rectangles:
gui.rect(win, x, y, w, h, color)andgui.rect_outline(win, x, y, w, h, color, [thickness]). - Circles:
gui.circle(win, cx, cy, r, color)andgui.circle_outline(win, cx, cy, r, color). - Lines: Bresenham line rasterizer
gui.line(win, x0, y0, x1, y1, color). - Text: Scalable retro text
gui.text(win, x, y, text, color, [scale]).
- Solid fills and clears:
- Zero-Dependency 8x8 Bitmap Font: Embedded font table covering ASCII 32 (
' ') through 126 ('~') enabling instant in-game typography without external asset dependencies. - Non-Blocking Input Polling: Non-blocking keyboard state querying (
gui.is_key_down,gui.get_keys) and mouse coordinates/buttons (gui.mouse_pos,gui.is_mouse_down). - Frame-Rate Capping: Microsecond loop pacing with
gui.limit_fps(win, 60)andgui.sleep(ms). - Virtual Headless Canvas: Automatic fallback to an in-memory virtual canvas when executed in headless CI/SSH environments, ensuring test suites and headless simulations never panic.
2. 🎲 Creative Standard Library Suite (std:random, std:math, std:io)
std:random: Fast seedable PRNG supportingint(min, max),float(min, max),bool(prob),choice(arr),shuffle(arr), and deterministicseed(n).std:math: Comprehensive mathematical functions includingsqrt,abs,min,max,pow,floor,ceil,round,sin,cos,tan,atan2,clamp, and constantsPIandE.std:io: Standard stream utilitiesprint,println,input([prompt]), andflush.
3. 📜 Direct Script Execution & Shebang Support
- Direct Invocation: Run any script immediately with
shae <file.shae>without requiringshae run. - Shebang Integration: Scripts can start with
#!/usr/bin/env shaeand execute directly in bash (./game.shae). - Script Comments: First-class support for
#single-line comments alongside//. - Desktop Launcher: Freedesktop
.desktoprunner (shae-runner.desktop) and MIME type configuration (shae.xml) for single/double-click script execution in Linux file managers.
4. ⚡ Language Ergonomics & VM Optimizations
- Boolean Negation: Added
!operator alias fornot. - Compound Assignment: Full support for
+=,-=,*=,/=, and%=across both Evaluator and Bytecode VM. - Built-in
input([prompt]): Read interactive user input directly from standard input. - String Method Aliases: Added
.to_upper(),.to_lower(),.to_uppercase(), and.to_lowercase()to string primitives.
5. 🛠️ LSP & VS Code Extension Overhaul
- LSP Auto-Completion & Hover Docs: Real-time signatures and interactive documentation for
std:gui,std:random,std:math,std:io,std:actor,std:actor:cluster, andstd:async. - VS Code Extension v0.5.0: Updated TextMate grammar for
#comments, compound assignment operators, and modern syntax tokens.
6. 🕹️ Playable Games & Showcase Demos
snake.shae: 60 FPS retro arcade Snake game with score counter, apple spawning, collision physics, and instant restart ([R]).particles.shae: 60 FPS generative particle physics and fireworks sandbox with gravity, wall/floor bounces, and interactive mouse bursts.dungeon.shae: Pure-Shae terminal RPG with procedural combat, inventory management, and ASCII rendering.
📦 Installation & Upgrade
Single-Line Universal Installer (macOS, Linux, Windows)
curl -fsSL https://raw.githubusercontent.com/spdedsec/shae/main/install.sh | bashBuild and Install from Source
git clone https://github.com/spdedsec/shae.git
cd shae
cargo install --path .Verify your installation:
shae --version
# Expected: shae 0.5.0Shae v0.4.0
Shae v0.4.0 — Official Multi-Platform Release & Systems Ecosystem Overhaul
We are thrilled to announce Shae v0.4.0, our largest and most ambitious release to date. This milestone establishes Shae as an industrial-grade systems scripting language, introducing an official multi-platform release pipeline, a single-line universal installer, self-hosting compilation, encrypted distributed cluster actors, first-class coroutines, an automated documentation engine, and a secure package publishing ecosystem.
🌟 Key Highlights & Major Milestones
1. 🚀 Universal Multi-Platform Distribution & Single-Line Installer
- Single-Line Universal Installer: Install Shae instantly across Linux, macOS, and Windows with a single command:
curl -fsSL https://shae-lang.org/install.sh | bash # Or via GitHub: curl -fsSL https://raw.githubusercontent.com/spdedsec/shae/main/install.sh | bash
- Automated Multi-Platform Release Matrix:
- Linux x86_64: glibc (
shae-v0.4.0-linux-x86_64.tar.gz) & musl (shae-v0.4.0-linux-x86_64-musl.tar.gz) - Linux aarch64: (
shae-v0.4.0-linux-aarch64.tar.gz) - macOS Apple Silicon: (
shae-v0.4.0-macos-arm64.tar.gz) - macOS Intel: (
shae-v0.4.0-macos-x86_64.tar.gz) - Windows x86_64: (
shae-v0.4.0-windows-x86_64.zip)
- Linux x86_64: glibc (
- Cryptographic SHA-256 Checksums: Every release artifact is checksummed in
SHA256SUMS.txtand verified automatically byinstall.sh.
2. 🛡️ Cluster Transport Security: TLS & Mutual-TLS (mTLS) (std:actor:cluster)
- Enterprise-Grade Encryption: Fully encrypted actor-to-actor node communication backed by
rustlsv0.23. - Mutual-TLS (mTLS): Strict bidirectional cryptographic authentication using custom certificate authorities (CAs) and client certificates.
- Dynamic Configuration: Configure secure clusters with
cluster.node({ "tls": { "cert": ..., "key": ..., "ca": ..., "verify_peer": true } }). - Introspection API: Runtime inspection via
node.is_tls()andis_tls(node)across both Bytecode VM and AST Evaluator. - Adversarial Resilience: Automatic rejection and defensive termination of rogue or unverified node connections.
3. 🧵 First-Class Coroutines (async / await) & std:async Runtime
- Thread-Safe Task Lifecycles: Non-blocking asynchronous tasks managed via
TaskInnerwith states"pending","completed", and"failed". - Idempotent Awaiting: Safe repeated
.await/.join()without panicking. - Rich Task Reflection:
task.join(),task.wait(),task.is_done(),task.status(), andtask.result(). - Concurrency Combinators (
std:async):async.spawn(fn, ...args): Spawn background coroutine tasks.async.all(tasks): Aggregate multiple asynchronous operations in parallel.async.race(tasks): Resolve to whichever task completes first.async.sleep(ms): Non-blocking coroutine sleep timer.async.timeout(ms, task): Deadline enforcement and timeout handling.
- 100% Dual-Engine Parity: Identical asynchronous behavior across both the Tree-Walking AST Evaluator and Bytecode Stack VM.
4. 📚 Standard Documentation Engine (shae doc)
- First-Class Doc Comments: Item doc comments (
///) and module doc comments (//!). - Comprehensive AST Symbol Extractor: Extracts functions, async functions, structs, enums with variants, and constants with line and signature precision.
- Responsive HTML Site Generator: Modern dark-mode static site with client-side real-time search filtering, collapsible sidebar navigation, and type signature badges.
- Multi-Format Export: Generate clean GitHub-Flavored Markdown (
doc.md) and structured JSON schema models (doc.json). - CLI Subcommand:
shae doc . --format all -o ./docs --open
5. 📦 Package Publishing & Registry Pipeline (shae pkg pack / publish)
- Deterministic Package Archives (
.shaepkg): High-efficiency gzip tarballs omitting build artifacts, git repositories, and local caches. - Cryptographic Tamper Protection: SHA-256 integrity hash computation and validation.
- Path Traversal Security: Strict directory containment checking in
unpack_packagepreventing zip-slip vulnerabilities. - Dual-Mode Publishing Engine: Direct support for local directory/filesystem registries (
file://) and remote HTTP(S) API registries with Bearer token authentication (--tokenorSHAE_REGISTRY_TOKEN). - Safe Pre-Flight Validation:
--dry-runflag to inspect manifests and archives prior to upload. - CLI Commands:
shae pkg pack,shae pkg publish,shae pkg verify.
6. 🔄 Complete Self-Hosting Bootstrap Pipeline (lib/compiler/main.shae)
- Stage 1 (Pure-Shae Lexer & Pratt Parser): Self-parsing grammar parser implemented entirely in Shae (
lib/compiler/). - Stage 2 (Bytecode Compiler & Serializer): Ahead-of-time bytecode compilation emitting
.shaecchunks from pure Shae. - Stage 3 (Native Linker): Direct emission of 64-bit ELF and PE executables without GCC, Clang, or external linkers (
shae link). - Verified 3-Stage Bootstrapping: Multi-stage self-hosting integration tests passing across all engines.
📦 Installation
Quick Install (macOS / Linux / Windows WSL / MSYS):
curl -fsSL https://shae-lang.org/install.sh | bashBuild from Source:
git clone https://github.com/spdedsec/shae.git
cd shae
cargo install --path .Verify your installation:
shae --version
# Output: shae 0.4.0🎨 VS Code Extension
Download and install the official VS Code extension from the release assets:
code --install-extension shae-vscode-0.4.0.vsixFull Commit History & Milestone Tracking: v0.3.2...v0.4.0
v0.3.2: 1-Click VS Code Runner, Static Dev Server, Parser Resilience & DX Overhaul
Shae v0.3.2 — Developer Experience (DX) & Language Robustness Overhaul
This release brings zero-friction developer ergonomics, rock-solid language tooling, and resilient syntax recovery.
🌟 What's New in v0.3.2
1. Zero-Friction VS Code Extension (v0.3.2)
- 1-Click Title Bar Run Button: Run any
.shaefile instantly with the dedicated$(play)icon in the editor title bar and context menu. - CodeLens Entrypoints: Interactive
▶ Run File | 🐞 Debug Filebuttons directly above line 1 of your code. - Toolchain Auto-Detector & Updater: Automatically checks installed
shaeversion on startup and offers 1-click downloads if missing or outdated. - Auto-Save on Run: Ensures dirty buffers are saved before execution.
2. Built-in Static Development Server (shae serve)
- Instant local HTTP file server directly via CLI:
shae serve . --port 8080 --host 127.0.0.1 - Auto-detects MIME types (
html,css,js,json,svg, etc.). - Safe path sanitization preventing directory traversal attacks.
3. Bytecode VM Web Engine
- Extended HTTP server builtins (
builtin_serveandbuiltin_serve_tls) with full callable recognition (is_callable()) supporting compiled functions, closures, and bound methods. - Web services and REST APIs now execute smoothly under the default bytecode VM.
4. Resilient Parser & Panic-Mode Error Synchronization
- Added
parse_with_recoverywith statement boundary synchronization on semicolons and statement starters (fn,let,if,while,return,struct,enum). - Eliminates cascading syntax errors and preserves LSP diagnostics, symbols, and completions even with syntax errors in the buffer.
5. Standard Library & Example Fixes
- Added
dedupalias tostd:collections. - Fixed CSV demo parsing options and indexing.
- 100% of
examples/verified executable in CI.
📦 Installation & Verification
# Install via GitHub Release
curl -fsSL https://github.com/spdedsec/shae/releases/download/v0.3.2/shae-v0.3.2-linux-x86_64.tar.gz | tar -xz -C ~/.cargo/bin/
# Verify version
shae --version
# Output: shae 0.3.2Full Changelog: v0.3.1...v0.3.2
v0.3.1: Phase 3 Industrial Hardening (SipHash-2-4, UAX #29 Unicode, OS Signals)
Shae v0.3.1 — Phase 3: Industrial Edge-Case Hardening
Shae v0.3.1 delivers enterprise-grade reliability, security, and international text ergonomics with the completion of Phase 3 (Option C: Industrial Edge-Case Hardening).
🛡️ What's New in v0.3.1
1. Hash-DoS Protection & First-Class Sets (std:collections)
-
Keyed SipHash-2-4 Hasher: Switched internal hash tables to randomized, per-process seeded SipHash-2-4 hashing. Verified byte-for-byte against the official
veorq/SipHashreference test vectors, protecting all map and set lookups against algorithmic complexity (Hash-DoS) attacks. -
First-Class
SetCollection: High-performance ordered set collection backed byIndexSetwith SipHash.- Bound methods:
s.size(),s.add(item),s.has(item),s.delete(item),s.to_array(),s.clear(),s.union(other),s.intersect(other),s.difference(other). - Linear-time
$O(N)$ operations for large dataset deduplication and set algebra.
- Bound methods:
2. UAX #29 Unicode & Rune Safety (std:unicode)
- Extended Grapheme Clustering: Full UAX #29 compliance via
std:unicodeand built-in string methods. Multi-codepoint emojis (e.g.👨👩👧👦, flags🇺🇸, skin-tone modifiers👍🏽) and combining accents are treated as single grapheme units. - Bound String Methods:
s.graphemes(): Returns array of grapheme cluster strings.s.grapheme_len(): Accurate visual length of strings.s.byte_len(): Raw UTF-8 byte length.s.runes(): Array of unicode scalar values.s.codepoints(): Array of 64-bit integer codepoint values.s.slice_graphemes(start, [end]): Safe grapheme slicing that never splits UTF-8 code units.s.is_ascii(): Fast ASCII check.
- Unicode Utilities:
unicode.category(char),unicode.from_codepoints(cps).
3. Cross-Platform Graceful OS Signals (std:sys)
- Signal Handlers: Register callbacks with
sys.on_signal("SIGINT" | "SIGTERM", callback)to intercept termination and interrupt signals on Linux, macOS, and Windows. - Process Lifecycle Control:
sys.trigger_signal(sig): Programmatic signal dispatch for deterministic testing and manual shutdown hooks.sys.clear_signals([sig]): Teardown and reset registered handlers.sys.poll_signals(): Drain and process asynchronous OS interrupts.sys.signals(): List supported signals (["SIGINT", "SIGTERM", "SIGHUP"]).
4. Developer Tooling & VS Code Extension v0.3.1
- Syntax Highlighting: Updated TextMate grammar to highlight
jit,set, and all new stdlib modules. - Language Server Protocol: Autocomplete and hover documentation for
std:unicode,std:syssignals, andstd:collections.Set. - Standalone Demos: Added
examples/unicode_demo.shae,examples/signals_demo.shae, andexamples/collections_demo.shae.
🔮 Horizon Roadmap (Upcoming Phases)
- Phase 4: Actor-Based Concurrency & Distributed Mailboxes (supervision trees, cluster channel remoting).
- Phase 5: Self-Hosting Shae Compiler & Direct Native Linker (direct ELF/Mach-O/PE emission).
- Phase 6: WebAssembly Target (
wasm32-wasiand browser engine).
v0.3.0: Cranelift JIT SSA, Embedded SQLite, RFC 4180 CSV & Microservice Showcase
What's New in Shae v0.3.0
⚡ Cranelift JIT SSA Backend Expansion
- Native
f64Float 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::IndexGetwith 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-levelget,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 thejitengine. - VS Code Extension v0.3.0: Published
.vsixpackage 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, andexamples/jit_demo.shae.
🔮 What's Next (Phase 3: Industrial Hardening)
- Hash-DoS Resilience (Milestone 3.1): SipHash-2-4 keyed hashing for
MapandSettables. - UTF-8 Rune & Grapheme Safety (Milestone 3.2): Unicode grapheme cluster indexing and slicing.
- Graceful OS Signal Handling (Milestone 3.3):
std:sys.on_signalhooks for connection draining and clean shutdowns.
v0.1.0 — Initial Release
✨ Shae v0.1.0 — The Programming Language That Respects Your Sanity
Shae is a modern, fast, expressive, and crash-proof general-purpose programming language engineered in Rust with a built-in HTTP server and zero ceremony.
🌟 Key Highlights
- Zero Boilerplate Cliches: No semicolons. No parentheses around
iforwhile. - Built-in Web Server: Spin up a real HTTP web server in 5 lines with
serve(port, handler)— zero external packages! - Zero Null Crashes: Missing fields return
nullinstead of crashing; fallback with??. Safe navigation?.. - Closures & First-Class Functions: Lambdas, higher-order functions, and implicit returns.
- Negative Array Indexing:
array[-1]returns the last item (Python-style!). - Interactive REPL: Just type
shaein your terminal. - Project Scaffolding: Create fresh projects instantly with
shae new my_app. - Built-in Humor & Help:
shae --jokeandshae --tip.
📦 Installation
curl -sSL https://github.com/spdedsec/shae/releases/download/v0.1.0/shae-v0.1.0-linux-x86_64.tar.gz | tar -xz
sudo mv shae /usr/local/bin/