Skip to content

Releases

Shae v0.8.0

Choose a tag to compare

@spdedsec spdedsec released this 23 Nov 03:24
78e171e

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 check verifies 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 with shae.toml.
    • shae pkg add <pkg>@<version>: Downloads dependencies from local or remote registries and records them in shae.toml.
    • shae pkg install: Deterministically resolves and installs all dependencies from shae.lock.
    • shae pkg pack: Packages libraries into portable, compressed .shaepkg archives.
    • 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:gui Multi-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:audio Hardware Sound Synthesis:
    • Pure waveform synthesis engine: sine, square, triangle, sawtooth, and white noise.
    • Retro sound triggers: shoot, invader_killed, explosion, and step.
    • Master volume controls, ADSR envelope generation, and headless audio event tracing.
  • std:ui Arcade UI Toolkit:
    • Arcade HUD components (draw_hud, draw_score, draw_lives_icons, draw_panel).
    • Immediate-mode UI widgets: buttons, sliders, checkboxes, and progress bars.

4. 💻 Shae Studio Web IDE (shae ide / shae studio)

  • Zero-Dependency Browser IDE: Run shae ide --port 8080 to 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 | bash

Build 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.0

Shae v0.7.0

Choose a tag to compare

@spdedsec spdedsec released this 20 Nov 05:58

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 check verifies 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 with shae.toml.
    • shae pkg add <pkg>@<version>: Downloads dependencies from local or remote registries and records them in shae.toml.
    • shae pkg install: Deterministically resolves and installs all dependencies from shae.lock.
    • shae pkg pack: Packages libraries into portable, compressed .shaepkg archives.
    • 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:gui Multi-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:audio Hardware Sound Synthesis:
    • Pure waveform synthesis engine: sine, square, triangle, sawtooth, and white noise.
    • Retro sound triggers: shoot, invader_killed, explosion, and step.
    • Master volume controls, ADSR envelope generation, and headless audio event tracing.
  • std:ui Arcade UI Toolkit:
    • Arcade HUD components (draw_hud, draw_score, draw_lives_icons, draw_panel).
    • Immediate-mode UI widgets: buttons, sliders, checkboxes, and progress bars.

4. 💻 Shae Studio Web IDE (shae ide / shae studio)

  • Zero-Dependency Browser IDE: Run shae ide --port 8080 to 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 | bash

Build 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.0

Shae v0.6.0

Choose a tag to compare

@spdedsec spdedsec released this 19 Nov 06:16

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 check verifies 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 with shae.toml.
    • shae pkg add <pkg>@<version>: Downloads dependencies from local or remote registries and records them in shae.toml.
    • shae pkg install: Deterministically resolves and installs all dependencies from shae.lock.
    • shae pkg pack: Packages libraries into portable, compressed .shaepkg archives.
    • 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:gui Multi-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:audio Hardware Sound Synthesis:
    • Pure waveform synthesis engine: sine, square, triangle, sawtooth, and white noise.
    • Retro sound triggers: shoot, invader_killed, explosion, and step.
    • Master volume controls, ADSR envelope generation, and headless audio event tracing.
  • std:ui Arcade UI Toolkit:
    • Arcade HUD components (draw_hud, draw_score, draw_lives_icons, draw_panel).
    • Immediate-mode UI widgets: buttons, sliders, checkboxes, and progress bars.

4. 💻 Shae Studio Web IDE (shae ide / shae studio)

  • Zero-Dependency Browser IDE: Run shae ide --port 8080 to 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 | bash

Build 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.0

Shae v0.5.0

Choose a tag to compare

@github-actions github-actions released this 13 Nov 02:43

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) and gui.rect_outline(win, x, y, w, h, color, [thickness]).
    • Circles: gui.circle(win, cx, cy, r, color) and gui.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]).
  • 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) and gui.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 supporting int(min, max), float(min, max), bool(prob), choice(arr), shuffle(arr), and deterministic seed(n).
  • std:math: Comprehensive mathematical functions including sqrt, abs, min, max, pow, floor, ceil, round, sin, cos, tan, atan2, clamp, and constants PI and E.
  • std:io: Standard stream utilities print, println, input([prompt]), and flush.

3. 📜 Direct Script Execution & Shebang Support

  • Direct Invocation: Run any script immediately with shae <file.shae> without requiring shae run.
  • Shebang Integration: Scripts can start with #!/usr/bin/env shae and execute directly in bash (./game.shae).
  • Script Comments: First-class support for # single-line comments alongside //.
  • Desktop Launcher: Freedesktop .desktop runner (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 for not.
  • 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, and std: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 | bash

Build 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.0

Shae v0.4.0

Choose a tag to compare

@github-actions github-actions released this 26 Oct 14:45

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)
  • Cryptographic SHA-256 Checksums: Every release artifact is checksummed in SHA256SUMS.txt and verified automatically by install.sh.

2. 🛡️ Cluster Transport Security: TLS & Mutual-TLS (mTLS) (std:actor:cluster)

  • Enterprise-Grade Encryption: Fully encrypted actor-to-actor node communication backed by rustls v0.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() and is_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 TaskInner with 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(), and task.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_package preventing 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 (--token or SHAE_REGISTRY_TOKEN).
  • Safe Pre-Flight Validation: --dry-run flag 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 .shaec chunks 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 | bash

Build 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.vsix

Full 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

Choose a tag to compare

@github-actions github-actions released this 14 Oct 13:06

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 .shae file instantly with the dedicated $(play) icon in the editor title bar and context menu.
  • CodeLens Entrypoints: Interactive ▶ Run File | 🐞 Debug File buttons directly above line 1 of your code.
  • Toolchain Auto-Detector & Updater: Automatically checks installed shae version 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_serve and builtin_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_recovery with 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 dedup alias to std: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.2

Full Changelog: v0.3.1...v0.3.2

v0.3.1: Phase 3 Industrial Hardening (SipHash-2-4, UAX #29 Unicode, OS Signals)

Choose a tag to compare

@spdedsec spdedsec released this 14 Oct 05:14

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/SipHash reference test vectors, protecting all map and set lookups against algorithmic complexity (Hash-DoS) attacks.
  • First-Class Set Collection: High-performance ordered set collection backed by IndexSet with 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.

2. UAX #29 Unicode & Rune Safety (std:unicode)

  • Extended Grapheme Clustering: Full UAX #29 compliance via std:unicode and 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:sys signals, and std:collections.Set.
  • Standalone Demos: Added examples/unicode_demo.shae, examples/signals_demo.shae, and examples/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-wasi and browser engine).

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

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.

v0.1.0 — Initial Release

Choose a tag to compare

@spdedsec spdedsec released this 04 Oct 16:54

✨ 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 if or while.
  • 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 null instead 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 shae in your terminal.
  • Project Scaffolding: Create fresh projects instantly with shae new my_app.
  • Built-in Humor & Help: shae --joke and shae --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/