{"slug": "the-transcompilator-tc-r1-v0-2-0-a-deterministic-english-to-elf64-wasm-compiler", "title": "The TransCompilator (tc_r1) v0.2.0: A Deterministic English-to-ELF64/Wasm Compiler in std-Only Rust", "summary": "A developer released The TransCompilator (tc_r1) v0.2.0-alpha-preview, a deterministic, rule-based English-to-code compiler written in nine std-only Rust crates with zero external dependencies and zero Wasm imports. It compiles unindented natural English (.eng) into zero-libc x86_64 ELF64 binaries and WebAssembly without LLMs or neural weights, and the developer reports compiling and verifying 1,000 of 1,000 eligible LeetCode problems with identical output across the interpreter, ELF64, and Wasm backends.", "body_md": "Natural-language programming has been attempted for decades—from COBOL and Inform 7 to academic NLP-to-code prototypes and modern LLM wrappers. Almost all of them end up in one of three dead ends: disguised procedural syntax wearing English keywords, narrow domain sandboxes, or probabilistic neural networks guessing at program behavior.\n\nToday I am releasing **The TransCompilator (`tc_r1`) `v0.2.0-alpha-preview`**: a deterministic, rule-based English compiler built from scratch across 9 local `std`-only Rust crates (` 0` external crates, `0` Wasm imports). It compiles flowing, unindented natural English (`.eng`) directly into zero-libc `x86_64` ELF64 binaries and WebAssembly—with no LLMs, no neural weights, and no black boxes.\n\n`v0.2.0-alpha-preview` Release:`.eng` Code Actually Looks Like\nOne of the hardest traps in natural-language compiler design is quietly sneaking traditional syntax back in through colons, indentation blocks, `End.` markers, or `Let x = ...` statements.\n\nTo prevent that drift, every program in the 1,000-problem benchmark must pass an automated **Novel-Page Silhouette Gate** (`0` violations):\n\n`End.` markers`Let` / `Append` keywords`+`, `-`, `*`, `/`, `=`)\nHere is **#0001 · Two Sum** compiled directly from `.eng` source:\n\n```\nStart with the list of numbers 2, 7, 11, and 15. The target is 9. For every first from 0 to the last position of numbers. For every second from one more than first to the last position of numbers, if item first of numbers plus item second of numbers is target, display first, display second, then stop.\n```\n\nAnd here is **#0002 · Add Two Numbers**, showing `while` loops, carry arithmetic, modulo/division, and list construction in plain sentences:\n\n```\nThe firstlist holds 2, 4, and 3, while the secondlist holds 5, 6, and 4. Start with an empty list for the answer, a carry of 0, and a position of 0. The firstlast is the last position of firstlist. The secondlast is the last position of secondlist. Repeat while position is at most firstlast or position is at most secondlast or carry is 1. The sum is carry. If position is at most firstlast, set sum to sum plus item position of firstlist. If position is at most secondlast, set sum to sum plus item position of secondlist. Place sum modulo 10 into answer. Set carry to sum divided by 10. Add 1 to position. For each value in answer, show value.\n```\n\nIn the browser playground, instead of rainbow syntax highlighting, the compiler drives **novel-style semantic typography** directly from its parse tree: **bold** for actions, __underlined__ for variables, *italic* for anaphors and strings, and muted *italic* for prose—rendered with zero caret drift.\n\nGiven the same `.eng` source, `tc_r1` lowers to the exact same intermediate representation every single time.\n\n`The grid is a rows by cols grid of zeros.`, `Set`/` Increase`/` Decrease cell r, c of grid`)` Otherwise, if` multi-action branches, and inline `stop`/` skip`\n`Keep a shared ... holding ...`)` List`, `String`, `Map`, and `Bitwise` prose`0` New Opcodes in v0.2)`v0.2.0` prose features lower cleanly into the existing `stdout` to see every lowering step.`tc interp`), a static zero-libc `x86_64` ELF64 backend emitting direct Linux binaries, and `tc_wasm.wasm` running offline inside a browser Web Worker with a 2,000,000-step safety budget.\nToy examples make almost any parser look good. To stress-test real control flow, state tracking, recursion, 2D dynamic programming, sorting, and character parsing, I compiled and verified **1,000 / 1,000** eligible LeetCode algorithmic problems (`#0001–#1379`) in `.eng` syntax.\n\nEvery single solution is checked for:\n\n`Stmt::Loop`, `Stmt::If`, or recursive `Call`—no precomputed answer printing)` tc interp == ELF64 == WASM`)` tc-lsp` diagnostics\nAlong the way, `v0.2.0-alpha-preview` also closed out several deep hardening issues—fixing multi-byte UTF-8 boundary slicing in `tc-syntax` and `tc-lsp`, adding a Link Grammar `SIGILL` preflight fallback, bounds-checking `character <pos> of <text>`, and generalizing `sort` list-pointer coercion.\n\n| Suite | Result | \n|---|---|\n| Native test suite | **1,113 / 1,113** passing (`0` clippy warnings,`rustfmt` clean) | \n| Workspace dependencies | **9** local`tc-*` crates,**0** external crates,**0** Wasm imports | \n| 1,000-problem MBT ( `#0001–#1379` ) | **1,000 / 1,000** 3-way parity (`interp == ELF64 == WASM` ),`0` LSP diagnostics | \n| Adversarial fuzzing | **40,000** evals (`10k` native +`10k` LSP +`10k` WASM eval +`10k` WASM highlight) —`0` panics,`0` traps,`0` hangs | \n\nAll 1,000 original `.eng` programs and their expected `stdout` are browsable in the [static HTML catalog](https://ponvasanthpon.github.io/TransCompilator/problems/) (and indexed via [`llms.txt`](https://ponvasanthpon.github.io/TransCompilator/llms.txt) across 20 chunks), with direct deep links into the playground.\n\nBecause the workspace has zero external crates, it builds completely offline:\n\n```\ngit clone https://github.com/PonvasanthPon/TransCompilator.git\ncd TransCompilator\nCARGO_NET_OFFLINE=true make build\n./target/debug/tc --selftest\n./target/debug/tc run examples/hello.eng\n```\n\nOr open the [WebAssembly Playground](https://ponvasanthpon.github.io/TransCompilator/) right in your browser (it also installs as an offline PWA via Service Worker) and open the top-left drawer to load any of the 1,000 programs.\n\nGetting here took six months, two failed unified-language experiments (`VENBA` and `MALAR`), a lost C++ macro wrapper (` KP++`), two bare-metal prototypes (` Ember` and `Frozen`), and four compiler rewrites (the full story is written up on the [About page](https://ponvasanthpon.github.io/TransCompilator/about.html)).\n\n`tc_r1` is still at `v0.2.0-alpha-preview`, with deeper systems features and multilingual human-language front ends targeting Core-7 IR still ahead. If you are into compilers, parsers, IR design, or language ergonomics, try breaking it in the playground—I would genuinely appreciate your critique on Core-7 IR, discourse resolution, or any English phrasing that trips it up.", "url": "https://wpnews.pro/news/the-transcompilator-tc-r1-v0-2-0-a-deterministic-english-to-elf64-wasm-compiler", "canonical_source": "https://dev.to/addicted_to_her/the-transcompilator-tcr1-v020-a-deterministic-english-to-elf64wasm-compiler-in-std-only-rust-1c8p", "published_at": "2026-11-30 07:41:23+00:00", "updated_at": "2026-11-30 07:44:23.173067+00:00", "lang": "en", "topics": ["developer-tools", "ai-tools"], "entities": ["The TransCompilator", "tc_r1", "Rust", "WebAssembly", "LeetCode"], "also_reported_by": [], "takeaway": "tc_r1 compiles plain English .eng source deterministically to identical output across its interpreter, zero-libc x86_64 ELF64, and Wasm backends, verified on 1,000 LeetCode problems with no LLM involved.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/the-transcompilator-tc-r1-v0-2-0-a-deterministic-english-to-elf64-wasm-compiler", "markdown": "https://wpnews.pro/news/the-transcompilator-tc-r1-v0-2-0-a-deterministic-english-to-elf64-wasm-compiler.md", "text": "https://wpnews.pro/news/the-transcompilator-tc-r1-v0-2-0-a-deterministic-english-to-elf64-wasm-compiler.txt", "jsonld": "https://wpnews.pro/news/the-transcompilator-tc-r1-v0-2-0-a-deterministic-english-to-elf64-wasm-compiler.jsonld"}}