<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ponvasanth</title>
    <description>The latest articles on DEV Community by Ponvasanth (@addicted_to_her).</description>
    <link>https://dev.to/addicted_to_her</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4273612%2F7487e514-a15b-4940-a2dc-80140134a64a.png</url>
      <title>DEV Community: Ponvasanth</title>
      <link>https://dev.to/addicted_to_her</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/addicted_to_her"/>
    <language>en</language>
    <item>
      <title>The TransCompilator (tc_r1) v0.2.0: A Deterministic English-to-ELF64/Wasm Compiler in std-Only Rust</title>
      <dc:creator>Ponvasanth</dc:creator>
      <pubDate>Mon, 30 Nov 2026 07:41:23 +0000</pubDate>
      <link>https://dev.to/addicted_to_her/the-transcompilator-tcr1-v020-a-deterministic-english-to-elf64wasm-compiler-in-std-only-rust-1c8p</link>
      <guid>https://dev.to/addicted_to_her/the-transcompilator-tcr1-v020-a-deterministic-english-to-elf64wasm-compiler-in-std-only-rust-1c8p</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsz0bvo9abc4cheavyet7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsz0bvo9abc4cheavyet7.png" alt=" " width="800" height="448"&gt;&lt;/a&gt;&lt;br&gt;
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.&lt;/p&gt;

&lt;p&gt;Today I am releasing &lt;strong&gt;The TransCompilator (&lt;code&gt;tc_r1&lt;/code&gt;) &lt;code&gt;v0.2.0-alpha-preview&lt;/code&gt;&lt;/strong&gt;: a deterministic, rule-based English compiler built from scratch across 9 local &lt;code&gt;std&lt;/code&gt;-only Rust crates (&lt;code&gt;0&lt;/code&gt; external crates, &lt;code&gt;0&lt;/code&gt; Wasm imports). It compiles flowing, unindented natural English (&lt;code&gt;.eng&lt;/code&gt;) directly into zero-libc &lt;code&gt;x86_64&lt;/code&gt; ELF64 binaries and WebAssembly—with no LLMs, no neural weights, and no black boxes.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Live Offline Playground (WebAssembly PWA):&lt;/strong&gt; &lt;a href="https://ponvasanthpon.github.io/TransCompilator/" rel="noopener noreferrer"&gt;https://ponvasanthpon.github.io/TransCompilator/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;1,000 Solved LeetCode Programs (Static Catalog):&lt;/strong&gt; &lt;a href="https://ponvasanthpon.github.io/TransCompilator/problems/" rel="noopener noreferrer"&gt;https://ponvasanthpon.github.io/TransCompilator/problems/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GitHub Repository &amp;amp; &lt;code&gt;v0.2.0-alpha-preview&lt;/code&gt; Release:&lt;/strong&gt; &lt;a href="https://github.com/PonvasanthPon/TransCompilator/releases/tag/v0.2.0-alpha-preview" rel="noopener noreferrer"&gt;https://github.com/PonvasanthPon/TransCompilator/releases/tag/v0.2.0-alpha-preview&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Origin Essay (How Six Months of Failed Prototypes Led Here):&lt;/strong&gt; &lt;a href="https://ponvasanthpon.github.io/TransCompilator/about.html" rel="noopener noreferrer"&gt;https://ponvasanthpon.github.io/TransCompilator/about.html&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;


&lt;h2&gt;
  
  
  What &lt;code&gt;.eng&lt;/code&gt; Code Actually Looks Like
&lt;/h2&gt;

&lt;p&gt;One of the hardest traps in natural-language compiler design is quietly sneaking traditional syntax back in through colons, indentation blocks, &lt;code&gt;End.&lt;/code&gt; markers, or &lt;code&gt;Let x = ...&lt;/code&gt; statements.&lt;/p&gt;

&lt;p&gt;To prevent that drift, every program in the 1,000-problem benchmark must pass an automated &lt;strong&gt;Novel-Page Silhouette Gate&lt;/strong&gt; (&lt;code&gt;0&lt;/code&gt; violations):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Zero indentation, zero colons, and zero &lt;code&gt;End.&lt;/code&gt; markers&lt;/li&gt;
&lt;li&gt;Zero &lt;code&gt;Let&lt;/code&gt; / &lt;code&gt;Append&lt;/code&gt; keywords&lt;/li&gt;
&lt;li&gt;Zero math operators (&lt;code&gt;+&lt;/code&gt;, &lt;code&gt;-&lt;/code&gt;, &lt;code&gt;*&lt;/code&gt;, &lt;code&gt;/&lt;/code&gt;, &lt;code&gt;=&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Zero single-letter loop variables&lt;/li&gt;
&lt;li&gt;Flowing, wrapped book paragraphs&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Here is &lt;strong&gt;#0001 · Two Sum&lt;/strong&gt; compiled directly from &lt;code&gt;.eng&lt;/code&gt; source:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Start 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.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And here is &lt;strong&gt;#0002 · Add Two Numbers&lt;/strong&gt;, showing &lt;code&gt;while&lt;/code&gt; loops, carry arithmetic, modulo/division, and list construction in plain sentences:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;The 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.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In the browser playground, instead of rainbow syntax highlighting, the compiler drives &lt;strong&gt;novel-style semantic typography&lt;/strong&gt; directly from its parse tree: &lt;strong&gt;bold&lt;/strong&gt; for actions, &lt;u&gt;underlined&lt;/u&gt; for variables, &lt;em&gt;italic&lt;/em&gt; for anaphors and strings, and muted &lt;em&gt;italic&lt;/em&gt; for prose—rendered with zero caret drift.&lt;/p&gt;




&lt;h2&gt;
  
  
  Inside the Compiler Architecture
&lt;/h2&gt;

&lt;p&gt;Given the same &lt;code&gt;.eng&lt;/code&gt; source, &lt;code&gt;tc_r1&lt;/code&gt; lowers to the exact same intermediate representation every single time.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Deterministic Front End &amp;amp; Discourse Resolution&lt;/strong&gt;
The front end performs sentence classification, anaphor/discourse resolution, and unindented prose block scoping without per-verb lookup hacks. In &lt;code&gt;v0.2.0-alpha-preview&lt;/code&gt;, general writer-prose support expanded to cover:

&lt;ul&gt;
&lt;li&gt;Native &lt;strong&gt;2D grids&lt;/strong&gt; (&lt;code&gt;The grid is a rows by cols grid of zeros.&lt;/code&gt;, &lt;code&gt;Set&lt;/code&gt;/&lt;code&gt;Increase&lt;/code&gt;/&lt;code&gt;Decrease cell r, c of grid&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Unindented prose loops, &lt;code&gt;Otherwise, if&lt;/code&gt; multi-action branches, and inline &lt;code&gt;stop&lt;/code&gt;/&lt;code&gt;skip&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Unindented recursive prose functions with shared state (&lt;code&gt;Keep a shared ... holding ...&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Natural &lt;code&gt;List&lt;/code&gt;, &lt;code&gt;String&lt;/code&gt;, &lt;code&gt;Map&lt;/code&gt;, and &lt;code&gt;Bitwise&lt;/code&gt; prose&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Verified Core-7 IR (&lt;code&gt;0&lt;/code&gt; New Opcodes in v0.2)&lt;/strong&gt;
All of those &lt;code&gt;v0.2.0&lt;/code&gt; prose features lower cleanly into the existing &lt;strong&gt;Core-7 IR&lt;/strong&gt; without adding a single new IR opcode. Inside the live playground, you can inspect the &lt;strong&gt;Trace&lt;/strong&gt;, &lt;strong&gt;Paraphrase&lt;/strong&gt;, and &lt;strong&gt;Core-7 IR&lt;/strong&gt; tabs alongside &lt;code&gt;stdout&lt;/code&gt; to see every lowering step.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Dual Zero-Dependency Backends&lt;/strong&gt;
Core-7 IR executes across three targets: the native interpreter (&lt;code&gt;tc interp&lt;/code&gt;), a static zero-libc &lt;code&gt;x86_64&lt;/code&gt; ELF64 backend emitting direct Linux binaries, and &lt;code&gt;tc_wasm.wasm&lt;/code&gt; running offline inside a browser Web Worker with a 2,000,000-step safety budget.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  Battle-Testing Against 1,000 Algorithmic Problems
&lt;/h2&gt;

&lt;p&gt;Toy 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 &lt;strong&gt;1,000 / 1,000&lt;/strong&gt; eligible LeetCode algorithmic problems (&lt;code&gt;#0001–#1379&lt;/code&gt;) in &lt;code&gt;.eng&lt;/code&gt; syntax.&lt;/p&gt;

&lt;p&gt;Every single solution is checked for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Runtime honesty at the IR level&lt;/strong&gt; (verified &lt;code&gt;Stmt::Loop&lt;/code&gt;, &lt;code&gt;Stmt::If&lt;/code&gt;, or recursive &lt;code&gt;Call&lt;/code&gt;—no precomputed answer printing)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Exact 3-way execution parity&lt;/strong&gt; (&lt;code&gt;tc interp == ELF64 == WASM&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Zero &lt;code&gt;tc-lsp&lt;/code&gt; diagnostics&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Along the way, &lt;code&gt;v0.2.0-alpha-preview&lt;/code&gt; also closed out several deep hardening issues—fixing multi-byte UTF-8 boundary slicing in &lt;code&gt;tc-syntax&lt;/code&gt; and &lt;code&gt;tc-lsp&lt;/code&gt;, adding a Link Grammar &lt;code&gt;SIGILL&lt;/code&gt; preflight fallback, bounds-checking &lt;code&gt;character &amp;lt;pos&amp;gt; of &amp;lt;text&amp;gt;&lt;/code&gt;, and generalizing &lt;code&gt;sort&lt;/code&gt; list-pointer coercion.&lt;/p&gt;

&lt;h3&gt;
  
  
  Verification Snapshot (&lt;code&gt;v0.2.0-alpha-preview&lt;/code&gt;)
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Suite&lt;/th&gt;
&lt;th&gt;Result&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Native test suite&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;1,113 / 1,113&lt;/strong&gt; passing (&lt;code&gt;0&lt;/code&gt; clippy warnings, &lt;code&gt;rustfmt&lt;/code&gt; clean)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Workspace dependencies&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;9&lt;/strong&gt; local &lt;code&gt;tc-*&lt;/code&gt; crates, &lt;strong&gt;0&lt;/strong&gt; external crates, &lt;strong&gt;0&lt;/strong&gt; Wasm imports&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1,000-problem MBT (&lt;code&gt;#0001–#1379&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;1,000 / 1,000&lt;/strong&gt; 3-way parity (&lt;code&gt;interp == ELF64 == WASM&lt;/code&gt;), &lt;code&gt;0&lt;/code&gt; LSP diagnostics&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Adversarial fuzzing&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;40,000&lt;/strong&gt; evals (&lt;code&gt;10k&lt;/code&gt; native + &lt;code&gt;10k&lt;/code&gt; LSP + &lt;code&gt;10k&lt;/code&gt; WASM eval + &lt;code&gt;10k&lt;/code&gt; WASM highlight) — &lt;code&gt;0&lt;/code&gt; panics, &lt;code&gt;0&lt;/code&gt; traps, &lt;code&gt;0&lt;/code&gt; hangs&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;All 1,000 original &lt;code&gt;.eng&lt;/code&gt; programs and their expected &lt;code&gt;stdout&lt;/code&gt; are browsable in the &lt;a href="https://ponvasanthpon.github.io/TransCompilator/problems/" rel="noopener noreferrer"&gt;static HTML catalog&lt;/a&gt; (and indexed via &lt;a href="https://ponvasanthpon.github.io/TransCompilator/llms.txt" rel="noopener noreferrer"&gt;&lt;code&gt;llms.txt&lt;/code&gt;&lt;/a&gt; across 20 chunks), with direct deep links into the playground.&lt;/p&gt;




&lt;h2&gt;
  
  
  Try It Locally (Linux &lt;code&gt;x86_64&lt;/code&gt;)
&lt;/h2&gt;

&lt;p&gt;Because the workspace has zero external crates, it builds completely offline:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/PonvasanthPon/TransCompilator.git
&lt;span class="nb"&gt;cd&lt;/span&gt; TransCompilator
&lt;span class="nv"&gt;CARGO_NET_OFFLINE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt; make build
./target/debug/tc --selftest
./target/debug/tc run examples/hello.eng
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or open the &lt;a href="https://ponvasanthpon.github.io/TransCompilator/" rel="noopener noreferrer"&gt;WebAssembly Playground&lt;/a&gt; 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.&lt;/p&gt;




&lt;h2&gt;
  
  
  What's Next
&lt;/h2&gt;

&lt;p&gt;Getting here took six months, two failed unified-language experiments (&lt;code&gt;VENBA&lt;/code&gt; and &lt;code&gt;MALAR&lt;/code&gt;), a lost C++ macro wrapper (&lt;code&gt;KP++&lt;/code&gt;), two bare-metal prototypes (&lt;code&gt;Ember&lt;/code&gt; and &lt;code&gt;Frozen&lt;/code&gt;), and four compiler rewrites (the full story is written up on the &lt;a href="https://ponvasanthpon.github.io/TransCompilator/about.html" rel="noopener noreferrer"&gt;About page&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;&lt;code&gt;tc_r1&lt;/code&gt; is still at &lt;code&gt;v0.2.0-alpha-preview&lt;/code&gt;, 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.&lt;/p&gt;

</description>
      <category>compilers</category>
      <category>rust</category>
      <category>webassembly</category>
      <category>programminglanguages</category>
    </item>
  </channel>
</rss>
