# Wysna by WySofia (v1.2.0 Stable) > Statically-typed, compiled, general-purpose programming language built for deterministic software, automation, and AI systems, engineered by Washington Yandun and WySofia S.A.S. (Quito, Ecuador) under the Apache-2.0 License. Compiles via Checked AST -> Typed HIR -> Verified MIR -> internal ANSI C99 lowering (zero host C setup via bundled Zig 0.15.2), native WASI (`--target=wasi`), zero-Emscripten web WASM bundles (`--target=web`), and frozen opt-in LLVM (`--backend=llvm-experimental`). ## Current Release (v1.2.0 · 2026-12-02) Verified Wysna v1.2.0 Native SDK and offline Seed installers for macOS, Linux, and Windows. - feat(wasm): Native SDK zero-Emscripten --target=web ESM/TS emitter and precompiled WASI runtime (#221) - feat(ai-eval): add Anthropic Messages API provider and CLI wiring (#229) - feat(fix,driver,checker): add W2004 Err autofix, u8 hints, multi-file run-cache, and Seed parity (#230) - feat(packages,skills): npm-style package manager workflows and cross-agent skills (#246) - feat(windows): overhaul Windows native installer and prune Zig SDK bundle (#245) - feat: add safety_facts, check capability policies, audit-ops showcase, and VS Code sync (#242) - Release Notes: https://github.com/WashingtonYandun/Wysna/releases/tag/v1.2.0 - SHA-256 Checksums: https://github.com/WashingtonYandun/Wysna/releases/download/v1.2.0/SHA256SUMS ## Distributions & Quick Install (v1.2.0) - **One-line CLI installers**: `curl -fsSL https://wysna.wysofia.com/install.sh | sh` (macOS/Linux) · `irm https://wysna.wysofia.com/install.ps1 | iex` (Windows PowerShell) · Scoop manifest: `https://wysna.wysofia.com/scoop/wysna.json`. - **Native SDK**: Python-free 50-module self-hosted compiler (`C0 == C1 == C2` fixed point) + Zig 0.15.2 + precompiled `libwysna_runtime_wasi.a` (.tar.gz, .zip, Windows `native-x86_64-windows-setup.exe`), plus deterministic `.vsix`, `wysna.rb`, and Winget manifests. Includes native `check` (`wysna.safety-facts/1` + `--allow`/`--deny`), `emit-c`, `emit-mir`, `build` (`native`, `--target=wasi`, `--target=web`), `run`, `test`, `fmt`, `graph`, `inspect`, `patch`, `explain`, `schema`, `fix`, `skills`, `capabilities`, `api`, `project`, `packages`, `mcp`, and Stage-3 `lsp`. - **Seed Installers**: Offline installers (.pkg, .deb, .rpm, .exe, portable .zip) with private CPython + Zig 0.15.2. Includes REPL, `--target=browser-library` (Emscripten reactor), and frozen `--backend=llvm-experimental`. ## Core Language & Runtime - **Memory Model**: 8-byte NaN-boxed `WVal64` ABI v3, lock-free atomic ARC + Copy-on-Write value semantics, `Weak[T]` cycle breaking, `<=6B` inline SSO strings, `u8` + compact `list[u8]`, unboxed scalar lists, `WStructSlab`, optional Bacon-Rajan cycle collector (`WYSNA_COLLECT_CYCLES=1`), and static cycle warning `[W6002]`. - **Canonical Syntax**: `Class(...)` construction, `None` optional literal, `_ =>` match wildcard, parenthesized tuple patterns, match alternatives `|`, Int64 ranges `..`/`..=`, nested struct patterns (`[W6003]`), `0x`/`0b` literals, `"""..."""` multiline & `f"..."` interpolated strings, `Struct { ..base }`, `for k, v in dict`, and selective `from ... use` imports. - **Static Attributes & Contracts**: `@deprecated("msg")` (`[W6004]`), `@must_use` (`[W6005]`), typed `struct` metadata attributes, first-class `requires` / `ensures` (`[W4005]`), explicit nullability `T?` (`??`, `!`), typed fallible channels `T ! E` (`?`, `else err`), exhaustive `match`, and constrained generics (`class Box[T: Show]`, `interface Repo[T]`). - **Concurrency & Targets**: Stackless CPS `async fn` / `await`, isolated CPU workers (`[W2014]`/`[W2015]`) with `std/async.spawn`, `std/async.run_group`, `std/http.batch_get_group`, index-ordered `std/algorithms.parallel_*`, and native `wysna build --target=wasi`. - **Packages & Governance**: Deterministic `wysna.toml` / `wysna.lock`, npm-style package workflows (`wysna init [--lib]`, `wysna add`, `wysna install [--frozen] [--offline]`, `wysna remove [--prune]`, `wysna packages list|search|pack`), flat `vendor/` hoisting, `wysna.registry-index/1` JSON catalogs, `pub import` library barrels, checked architecture contracts (`[W6101]`/`[W6102]`), `wysna.safety-facts/1` on `check`/`wysna_check`, `wysna explain`, `--allow`/`--deny` + `--sandbox` (`[W5006]`), deterministic quotas (`--max-steps`, `--max-heap-mb` `[W4004]`), and trace replay (`--record-trace`, `--replay-trace`). Stable example: [wysofia-ops](https://github.com/WashingtonYandun/Wysna/tree/v1.1.0/examples/wysofia-ops). - **Cross-Agent Skills**: Portable `skills/` bundle (`wysna-language`, `wysna-packages`, `wysna-agent-workflow`) for Antigravity, Codex/Cursor, and Claude Code, plus embedded `wysna skills syntax|packages|agent-loop|project-tests`. ## Hard Language & Runtime Limits (Do Not Hallucinate) - **Numbers & Operators**: `int` is 64-bit signed wrapping (inline 48-bit + heap `WIntBox` fallback); `u8` is `[0, 255]`; no `i32`/`u32`/`u64`/`BigInt`, no `1e5`/octal literals, no bitwise ops (`&`, `|`, `^`, `~`, `<<`, `>>`), no `++`/`--`, no `**`, no `/=`/`%=`, no `?:` ternary; `/ 0` and `/ 0.0` panic (`W4001`); `float` cannot be a `dict` key (`W2010`). - **Loops & Control Flow**: `for` iterates only `list[T]` (including `a..b` / `a..=b`) and `dict[K, V]` (NOT `str` — use `0..len(s)` or `bytes(s)`). Ranges step `+1` ascending only, cap at `100_000_000` elements (`W4003`), and panic at `..=INT64_MAX`; use `while` for larger loops. No `for (;;)`, `do..while`, or labeled `break`/`continue`. - **Semantics & Quotas**: Closures capture immutable snapshots (`W3001`); strong `class` cycles require `Weak[C]` or `WYSNA_COLLECT_CYCLES=1`; no `try/catch`, macros, or `unsafe`. CPU workers deep-copy pure values up to depth `256` (`W4003`, rejecting `class`/`FFI` via `W2014`/`W2015`). Quotas: HTTP `1 MB` body / `8 KB` URL / `32 KB` & `100` headers; `std/process` `256` args; `std/json` `max_nodes` `[1, 100_000]`. ## Standard Library (20 Modules) - **Core & Data**: `std/algorithms`, `std/result` - **Text & Formats**: `std/text` (UAX #15), `std/parse`, `std/json` (bounded), `std/csv` (RFC 4180) - **Files & I/O**: `std/buffer` (`decode_utf8`), `std/bytes`, `std/files` (`create_exclusive`), `std/fs` (`is_dir`, `is_file`, `list_dir`), `std/path` (`ext`), `std/io` - **System & Network**: `std/http`, `std/process` (`run`, `capture`), `std/environment`, `std/time`, `std/async` - **Security, Resources & Testing**: `std/crypto` (SHA-256, HMAC, ChaCha20-Poly1305 AEAD), `std/resources`, `std/test` ## Agent-First CLI & 13-Tool MCP Server (`wysna mcp --root .`) - **MCP Tools (13)**: `wysna_check`, `wysna_fix`, `wysna_fmt`, `wysna_explain`, `wysna_schema`, `wysna_api`, `wysna_capabilities`, `wysna_graph`, `wysna_inspect`, `wysna_patch`, `wysna_skills`, `wysna_project_check`, `wysna_project_test` (opt-in `--allow-exec`). - **Agent Loop**: Canonical declaration identity (`[W1005]` on ambiguity), `--max-bytes` bounded `inspect` with resumable `omitted[].ref` handles, `--symbols` batch inspect, Selfhost multi-error recovery (up to 100 diagnostics), and atomic multi-file `workspace patch` guarded by `--expect-plan-hash`. - **Impact & Architecture**: `wysna graph --manifest wysna.toml --symbol --rel impact --output-format=json-v1` and `--role `. - **Zero-Turn Self-Healing**: `wysna fix --apply [--include-maybe] ` ## Official Documentation Links (https://wysna.wysofia.com) - [Wysna — Agent-First Programming Language](https://wysna.wysofia.com/): Wysna is an open-source, statically-typed agent-first programming language from Ecuador. Compile to native C99 or WebAssembly, manage packages with wysna add, and verify AI agent edits cleanly. - [Effects, C99 Sandbox, Quotas & Trace Replay](https://wysna.wysofia.com/agents/effects-and-sandbox/): Conservative MIR effect auditing (wysna explain), compiled C99 runtime capability guards (--sandbox), deterministic execution quotas (W4004), and offline effect trace replay. - [MCP and LSP](https://wysna.wysofia.com/agents/mcp-and-lsp/): Configure Wysna MCP tools and connect an editor over LSP. - [How AI agents work with Wysna](https://wysna.wysofia.com/agents/overview/): Learn what makes Wysna agent-first. Inspect a project, read structured compiler diagnostics, and validate a patch before writing. - [Inspect and edit a Wysna project](https://wysna.wysofia.com/agents/semantic-graph/): Query the semantic graph, inspect symbols, and verify Wysna patches. - [Cross-Agent Skills (Antigravity, Codex, Claude Code)](https://wysna.wysofia.com/agents/skills/): Install portable Agent Skills for Wysna 1.1 across Antigravity, Codex, Cursor, and Claude Code, or query version-pinned guidance directly from the compiler binary. - [An agent-first coding workflow with Wysna](https://wysna.wysofia.com/agents/workflow/): Trace a change across three targets, inspect a structured compiler error, and test and apply a two-file patch with the Wysna 1.1.0 Native SDK. - [Control Flow](https://wysna.wysofia.com/basics/control-flow/): Master control flow in Wysna: conditional expressions, while loops, range iterators, and early returns with deterministic scope cleanup. - [Primitive Types](https://wysna.wysofia.com/basics/data-types/): Comprehensive guide to Wysna primitive types: signed 64-bit int, float, bool, UTF-8 strings, and unit with zero unexpected type coercions. - [Functions & Signatures](https://wysna.wysofia.com/basics/functions/): Explore functions and signatures in Wysna: explicit parameter typing, pure value return semantics, and compile-time signature verification. - [Variables & Mutability](https://wysna.wysofia.com/basics/variables-and-mutability/): Learn variable bindings and mutability in Wysna: immutable by default with let, explicit mut bindings, and pure value isolation across scopes. - [Wysna Community & Security](https://wysna.wysofia.com/community/): Find Wysna releases, contribution guidelines, Apache-2.0 licensing details, and the private security reporting channel. - [Download Wysna for macOS, Linux, and Windows](https://wysna.wysofia.com/download/): Download the official Wysna compiler and CLI. Find installers and portable packages for macOS, Linux, and Windows, with SHA-256 checksums. - [Fallible Channels (T ! E)](https://wysna.wysofia.com/errors/fallible-channels/): Explicit compile-time error handling with typed fallible channels (T ! E), postfix propagation (?), inline recovery, and error unions in Wysna v0.7.0. - [Explicit Nullability (T?)](https://wysna.wysofia.com/errors/optionals/): Eliminating NullPointerExceptions in Wysna v0.7.0 using compile-time nullable types (T?), safe unwrap (!), and the null coalescing operator (??). - [Wysna Programming Examples](https://wysna.wysofia.com/examples/showcase/): Run Wysna examples from the official repository and explore a native audit CLI, an application shared with WebAssembly, and an HTTP-to-SQLite workflow. - [Hello World in Wysna](https://wysna.wysofia.com/getting-started/hello-world/): Write and run your first Wysna program, learn how functions and strings work, and compile a standalone native executable with the Wysna CLI. - [Install Wysna](https://wysna.wysofia.com/getting-started/installation/): Install Wysna in one command on Windows, macOS, or Linux, or use a graphical installer. - [Project Anatomy & wysna.toml (v1)](https://wysna.wysofia.com/getting-started/project-structure/): Manage npm-style packages, SHA-256 lockfiles, local/registry dependencies, and multi-file project workflows using wysna.toml v1 in Wysna 1.1.0. - [A 15-Minute Tour of Wysna](https://wysna.wysofia.com/getting-started/tour/): Fast hands-on tour of Wysna v0.7 / v0.8 — bindings, ergonomics, structs, pattern matching, contracts, typed errors, generics, async/await, and native builds. - [Benchmarks (6 Languages & AI)](https://wysna.wysofia.com/internals/benchmarks/): Empirical v1.1.0 performance, binary size, run-cache, diagnostic latency, and live AI evaluation benchmarks for Wysna compared against Rust, Go, Python, Node.js, and Java. - [Compiler Pipeline, ABI v3 & Bootstrap](https://wysna.wysofia.com/internals/compiler-architecture/): Inside Wysna's architecture — Seed vs Selfhost pipelines, 8-byte NaN-boxed WVal64 Runtime ABI v3, SSO strings, atomic ARC + CoW, and 3-stage deterministic fixed-point bootstrap. - [Diagnostic Error Code Index (Wxxxx)](https://wysna.wysofia.com/internals/diagnostics/): Search common Wysna compiler and runtime diagnostic codes, find their causes, and see which cases wysna fix can repair. - [C FFI & External Libraries](https://wysna.wysofia.com/internals/ffi-and-interop/): Interoperate safely with C libraries (such as SQLite or libcurl) using explicit linker flags, opaque handles, and std/resources scoped lifetimes. - [Engine Parity (217/217) & Language Limits](https://wysna.wysofia.com/internals/parity-and-limits/): Verified four-engine release conformance matrix (217/217) and transparent language, runtime, and distribution boundaries of Wysna v1.1.0. - [Async/Await (CPS) & Multi-Core Parallelism](https://wysna.wysofia.com/language/async-and-concurrency/): Stackless CPS async fn coroutines, std/async OS-thread tasks, timers, race/all combinators, and deterministic multi-core parallel collections in Wysna. - [Design-by-Contract (requires / ensures)](https://wysna.wysofia.com/language/contracts/): First-class preconditions (requires), postconditions (ensures with result binding), deterministic W4005 enforcement, and JSON Schema extraction in Wysna. - [Generics & Bounds](https://wysna.wysofia.com/language/generics/): Parameterized functions, structs, enums, constrained generic classes, parameterized interfaces, monomorphization, and concrete generic errors in Wysna v0.7 / v0.8. - [Modules & Selective Imports](https://wysna.wysofia.com/language/modules-and-imports/): Canonical module resolution, visibility (pub), selective from ... use imports, aliases, and multi-file projects in Wysna. - [Complete Syntax & Language Reference (v1.1)](https://wysna.wysofia.com/language/syntax-reference/): Exhaustive reference for every Wysna 1.1 keyword, type, literal, operator precedence, loop, exhaustive match pattern, contract, ARC+CoW rule, module import, C FFI signature, and hard compiler limit. - [ARC + Copy-on-Write (CoW)](https://wysna.wysofia.com/memory/arc-and-cow/): The deterministic memory management model of Wysna v0.7.0 — zero tracing GC pauses, pure value semantics, and transparent copy-on-write buffer sharing. - [Ownership & Borrowing](https://wysna.wysofia.com/memory/borrowing/): Understand variable ownership tracking, zero-cost parameter borrowing, and weak reference cycles in the Wysna v0.7.0 compiler. - [Wysna, a programming language from Ecuador](https://wysna.wysofia.com/origin/): Washington Yandún began developing Wysna in Ecuador. Follow the public history from its first commit to a native compiler and tools for AI coding agents. - [What Is Wysna?](https://wysna.wysofia.com/overview/): Learn how the Wysna programming language compiles to native code and WebAssembly, manages memory, and helps AI coding agents inspect code. - [Privacy & Data](https://wysna.wysofia.com/privacy/): How the Wysna handbook handles data: cookieless analytics, local-only search, GitHub-hosted downloads, and how to contact WySofia. - [Wysna releases](https://wysna.wysofia.com/releases/): Wysna downloads, release notes, and version history. - [Collections (List & Map)](https://wysna.wysofia.com/stdlib/collections/): Explore dynamic lists, hash maps, deterministic Copy-on-Write value semantics, and valid dictionary key types in Wysna v0.7.0. - [Crypto AEAD, Resources, Result & Test](https://wysna.wysofia.com/stdlib/crypto-and-resources/): Standard library reference for std/crypto (SHA-256, HMAC, ChaCha20-Poly1305 AEAD), std/resources scoped FFI handles, std/result, and std/test. - [Files, FS, Path, IO & Buffers](https://wysna.wysofia.com/stdlib/io-and-fs/): Standard library reference for std/files, std/fs, std/path, std/io, std/buffer (Bytes + borrowed decode_utf8), and std/bytes. - [Standard Library Overview (20 Modules)](https://wysna.wysofia.com/stdlib/overview/): Complete directory of Wysna's 20 standard library modules across data, text, JSON/CSV, filesystem, HTTP, async tasks, cryptography, resources, and testing. - [HTTP, Process, Environment, Time & Async](https://wysna.wysofia.com/stdlib/system-and-network/): Standard library reference for std/http, std/process, std/environment, std/time, and std/async. - [Text, Parse, JSON & CSV](https://wysna.wysofia.com/stdlib/text-and-formats/): Standard library reference for std/text (Unicode 16.0.0 UAX - [C99 Emission & WebAssembly Targets](https://wysna.wysofia.com/tooling/c99-and-wasm/): How Wysna v1.1.0 emits standardized ANSI C99, integrates autonomous Zig toolchains, and compiles to WASI and WebAssembly web bundles (--target=web). - [CLI Reference](https://wysna.wysofia.com/tooling/cli/): Complete command-line interface reference for the Wysna Seed and Native SDK compiler — build profiles, safety_facts capability gates, project workflows, Agent-First tools, and IR emitters. - [Packages, Libraries & Frameworks (npm-Style Workflow)](https://wysna.wysofia.com/tooling/packages/): Create reusable Wysna libraries and frameworks with wysna init --lib, install local/tar/URL/registry packages with wysna add and wysna install, verify SHA-256 lockfiles, and import pkg//. - [Classes & Polymorphism](https://wysna.wysofia.com/types/classes-and-interfaces/): Model object-oriented hierarchies, implement explicit interface contracts, class inheritance, and dynamic vtable dispatch in Wysna v0.7.0. - [Enums & Pattern Matching](https://wysna.wysofia.com/types/enums-and-match/): Master algebraic data types (sum types), tagged payload unions, dictionary keys, and compile-time exhaustive match in Wysna v0.7.0. - [Structs & Records](https://wysna.wysofia.com/types/structs/): Define nominal product types, field initializers, instance methods, and transparent Copy-on-Write value semantics in Wysna v0.7.0. - [Documentación en español](https://wysna.wysofia.com/es/) - [Guía para agentes de IA](https://wysna.wysofia.com/es/agents/overview/) - [Demo reproducible para agentes](https://wysna.wysofia.com/es/agents/workflow/) - [Biblioteca estándar en español](https://wysna.wysofia.com/es/stdlib/overview/) - [Origen del lenguaje en Ecuador](https://wysna.wysofia.com/es/origin/) - Full Unrolled Reference: https://wysna.wysofia.com/llms-full.txt - Release v1.2.0 & Checksums: https://github.com/WashingtonYandun/Wysna/releases/tag/v1.2.0 - GitHub Repository: https://github.com/WashingtonYandun/Wysna