Linear type system for WebAssembly memory safety#1
Merged
Conversation
Ephapax is a linear type system for safe memory management targeting WebAssembly. This commit includes: Core Implementation: - ephapax-syntax: AST definitions with linear type annotations - ephapax-typing: Linear type checker with region support - ephapax-wasm: WASM code generator with bump allocation - ephapax-runtime: no_std WASM runtime with region management Formal Semantics (Coq): - Syntax.v: Core type and expression definitions - Typing.v: Linear typing rules with context tracking - Semantics.v: Operational semantics and safety theorems Documentation: - Language specification (spec/SPEC.md) - Comprehensive wiki documentation - ROADMAP.md with detailed development plan - CONTRIBUTING.adoc guide Infrastructure: - Cargo workspace with 4 crates - CI/CD workflow for Rust and Coq - EUPL-1.2 license Key features: - Linear types prevent use-after-free and memory leaks - Region-based memory management for bulk deallocation - Second-class borrows for temporary access - Formal proofs in Coq for type safety
hyperpolymath
pushed a commit
that referenced
this pull request
Feb 7, 2026
Documents implementation status of 5 optional enhancements: 1. ✅ Debugger Support (Phase 1 complete: source maps + mode metadata) - Phases 2-4 planned (DWARF, DAP, VS Code integration) 2. ⏳ Package Manager (not started) - Cargo-style dependency management - Module import syntax - Local registry 3. ⏳ Performance Benchmarks (not started) - Ephapax vs Rust vs AssemblyScript - Compilation speed, binary size, runtime perf - CI integration 4. ⏳ VS Code Extension (not started) - Syntax highlighting - LSP integration (reuse existing ephapax-lsp) - Mode switcher UI 5. ⏳ Closure Environment Optimization (not started) - Escape analysis + free variable analysis - Minimal capture sets - 10-30% binary size reduction expected Overall completion: 20% (1/5 done) Recommended implementation order: #2 → #3 → #4 → #5 → #1 (complete) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ephapax is a linear type system for safe memory management targeting WebAssembly.
This commit includes:
Core Implementation:
Formal Semantics (Coq):
Documentation:
Infrastructure:
Key features: