Herramientas y ArquitecturaCompiler · ABI v3
Engine Parity (217/217) & Language Limits
Verified four-engine release conformance matrix (217/217) and transparent language, runtime, and distribution boundaries of Wysna v1.1.0.
Esta página aún no está disponible en tu idioma.
Wysna publishes its exact measured conformance evidence and explicit engineering boundaries rather than marketing generalizations.
1. Measured Four-Engine Conformance Matrix (v1.1.0)
Section titled “1. Measured Four-Engine Conformance Matrix (v1.1.0)”Generated from tools/ci_conformance.py --profile=release (zero exclusions permitted; validated separately under ASan/UBSan and Linux LSan):
| Feature Category | Fixtures | Seed (Interpreter) | Seed (AST C99) | Seed (HIR/MIR C99) | Selfhost (Stage-2) |
|---|---|---|---|---|---|
core |
168 | 168 / 168 | 168 / 168 | 168 / 168 | 168 / 168 |
generics |
15 | 15 / 15 | 15 / 15 | 15 / 15 | 15 / 15 |
generic_class_methods |
1 | 1 / 1 | 1 / 1 | 1 / 1 | 1 / 1 |
checked_modules |
1 | 1 / 1 | 1 / 1 | 1 / 1 | 1 / 1 |
compound_match_patterns |
3 | 3 / 3 | 3 / 3 | 3 / 3 | 3 / 3 |
error_unions |
8 | 8 / 8 | 8 / 8 | 8 / 8 | 8 / 8 |
functions |
5 | 5 / 5 | 5 / 5 | 5 / 5 | 5 / 5 |
stdlib |
6 | 6 / 6 | 6 / 6 | 6 / 6 | 6 / 6 |
regressions |
13 | 13 / 13 | 13 / 13 | 13 / 13 | 13 / 13 |
| Total Verified | 217 | 217 / 217 (100%) | 217 / 217 (100%) | 217 / 217 (100%) | 217 / 217 (100%) |
2. Hard Language & Runtime Limits (v1.1.0)
Section titled “2. Hard Language & Runtime Limits (v1.1.0)”| Area | Supported Scope | Hard Limit / Intentionally Omitted | Notes |
|---|---|---|---|
| Integers & Bytes | int (64-bit signed two’s complement wrapping), u8 ([0, 255], u8(x) -> u8?). |
No separate i32/u32/u64/i128/f32/BigInt (int32/int64/double are extern FFI aliases only); no 1e5 scientific or octal 0o literals (W0002); / or % by 0 panics (W4001). |
ABI v3 detail: signed 48-bit values ([-2^47, 2^47 - 1]) sit inline in 8-byte WVal; larger ints use ARC WIntBox. |
Floating-Point (float) |
IEEE-754 binary64 (3.14, requires digits on both sides of .). |
x / 0.0 and x / -0.0 panic (W4001); rejected as dict keys (W2010), even inside tuples. |
+0.0 == -0.0 is true; NaN == NaN is false. |
| Operators | +, -, *, /, %, =, +=, -=, *=, and/or/not, ??, ?, ../..=, in. |
No bitwise operators (&, |, ^, ~, <<, >>), ++/--, **, /=/%=, ternary ?:, or operator overloading. |
Strict left-to-right evaluation order is guaranteed across all expressions. |
| Loops & Ranges | for x in list, for k, v in dict, for i in a..b / a..=b, while cond. |
for cannot iterate str, tuples, or custom iterators (W2001). Ranges step +1 ascending only and panic (W4003) above 100_000_000 elements or at ..=INT64_MAX. No C-style for (;;), do..while, loop, or labeled break/continue. |
Direct for i in a..b lowers to a counter without heap allocation; use while for >100M steps or custom increments. |
| Closures & Memory | Immutable snapshot closures; struct (CoW value) and class (reference ARC). |
Closures cannot mutate captured value bindings (W3001). Strong class cycles leak unless broken with Weak[C] or WYSNA_COLLECT_CYCLES=1. |
ABI v3 details: str <= 6B uses inline SSO; collection len/cap are int32_t; dict uses 5B/slot buckets. |
| Errors & Concurrency | T?, T ! E, T ! E1 | E2, stackless CPS async fn/await, std/async.spawn, std/algorithms.parallel_*. |
No try/catch; error unions reject collections, tuples, fn, Option/Result, and unresolved generics (W2001). CPU workers deep-copy pure values up to depth 256 (W4003) and reject class/interface/Weak/handles/FFI/nested workers (W2014/W2015). |
File I/O is synchronous; public cancelable TaskGroup remains deferred beyond v1.1.0. |
| Host & Tooling Quotas | C99 / WASI / WebAssembly host primitives (runtime/wysna_host.h). |
HTTP body 1 MB, URL 8 KB, headers 32 KB / 100 fields; std/process 256 args; std/json max_nodes [1, 100_000]; WASI capture 1 MB; parser recovery 100 diagnostics. |
std/http requires libcurl >= 8.3.0 on host (unavailable in WASI/web). |
| Omitted Metaprogramming | @deprecated("..."), @must_use, extern + opaque FFI. |
No macros, pointer arithmetic, unsafe blocks, traits on primitives, or runtime reflection. |
Use wysna schema, wysna graph, and wysna api for static introspection. |
3. Native SDK vs Seed Boundary (v1.1.0)
Section titled “3. Native SDK vs Seed Boundary (v1.1.0)”- Native SDK (
native-core-v1, 50 modules underselfhost/src/):- Python-free native C99 compilation,
build --target=wasi,build --target=web(.wasm+ zero-dependency ESM.mjs+.d.tsvia precompiledlibwysna_runtime_wasi.a),project new|lock|check|build|run|test,packages, Agent-First tools (graph,inspect,patch,explain,schema,fix,api,capabilities,skills), stdiomcp, and Stage-3lsp.
- Python-free native C99 compilation,
- Seed (embedded CPython + Zig):
- Retains the interactive
repl, Emscripten--target=browser-library, multi-engine conformance, and the frozen--backend=llvm-experimentalpath. - Unsupported targets or commands in the Native SDK report
[W2013]explicitly.
- Retains the interactive
- Frozen Experimental Features:
--backend=llvm-experimentaland the localwysna service serveharness are frozen under existing CI smoke gates while C99 remains the primary production native backend. - Effect Analysis Overapproximation:
wysna explainis conservative — indirect/virtual calls and uncontrolled external FFI reportunknown(complete_within_model: false). Uninstantiated generic templates must be instantiated before effect analysis. - ARC Retain Cycles: Strong reference cycles between
classinstances are not collected unlessWeak[T]is used orWYSNA_COLLECT_CYCLES=1is enabled. Compile-timeLayoutGraphanalysis warns about static cycle risks with[W6002]. - OS Sandbox Scope: Native binaries inherit OS process permissions. Use OS-level isolation (
seccomp, containers, WASI runtimes) alongside--sandboxwhen executing untrusted external C libraries. - HTTP Client Requirements:
std/httprequireslibcurl >= 8.3.0on the host, does not include an HTTP server or streaming responses, and is unavailable onwasi-command/--target=web.