<?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: HYNAWEB</title>
    <description>The latest articles on DEV Community by HYNAWEB (hynaweb).</description>
    <link>https://dev.to/hynaweb</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%2Forganization%2Fprofile_image%2F16503%2Fbfe7976a-a5f3-4909-a0eb-ba78c02b04f7.png</url>
      <title>DEV Community: HYNAWEB</title>
      <link>https://dev.to/hynaweb</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hynaweb"/>
    <language>en</language>
    <item>
      <title>I Built a Programming Language with Inline Assembly in 5 Hours (On a $150 Phone). Here’s How H-Code Works.</title>
      <dc:creator>Harun - solo dev </dc:creator>
      <pubDate>Sat, 05 Dec 2026 09:04:17 +0000</pubDate>
      <link>https://dev.to/hynaweb/i-built-a-programming-language-with-inline-assembly-in-5-hours-on-a-150-phone-heres-how-h-code-54i8</link>
      <guid>https://dev.to/hynaweb/i-built-a-programming-language-with-inline-assembly-in-5-hours-on-a-150-phone-heres-how-h-code-54i8</guid>
      <description>&lt;p&gt;I just spent the last 5 hours building a programming language. &lt;/p&gt;

&lt;p&gt;I didn't use a laptop. I didn't use a $2,000 MacBook with a fancy IDE. I built the entire compiler pipeline on a $150 Android phone in Termux.&lt;/p&gt;

&lt;p&gt;Meet &lt;strong&gt;H-code&lt;/strong&gt; (v1.2.0): An experimental systems programming language that gives you the syntactic readability of Python, but transpiles directly to native C99/C11 for raw execution speed.&lt;/p&gt;

&lt;h3&gt;
  
  
  🧠 Why Transpile to C?
&lt;/h3&gt;

&lt;p&gt;Interpreted languages (like standard Python) are easy to build but slow to run. Writing a JIT compiler or bytecode VM from scratch takes months. &lt;/p&gt;

&lt;p&gt;H-code takes a different path. It parses your code into an Abstract Syntax Tree (AST), and then walks that tree to emit highly optimized, ISO-compliant C code. &lt;/p&gt;

&lt;p&gt;When you run an H-code script, it gets handed to Clang or GCC. This means &lt;strong&gt;H-code gets decades of C compiler optimizations for free.&lt;/strong&gt; No garbage collector overhead. No interpretation lag. Just native machine code.&lt;/p&gt;

&lt;h3&gt;
  
  
  ⚙️ The Architecture (Built in an Afternoon)
&lt;/h3&gt;

&lt;p&gt;The compiler pipeline has four stages:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Lexical Analysis:&lt;/strong&gt; A DFA-driven lexer that tokenizes the source. It explicitly tracks &lt;code&gt;INDENT&lt;/code&gt; and &lt;code&gt;DEDENT&lt;/code&gt; tokens, giving us Python-like block scoping without the curly braces.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Syntax Analysis:&lt;/strong&gt; A recursive descent parser with lookahead (&lt;code&gt;peek()&lt;/code&gt;). It enforces a strict grammar hierarchy (Statements -&amp;gt; Expressions -&amp;gt; Terms -&amp;gt; Factors).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AST Generation:&lt;/strong&gt; The parser builds a polymorphic tree of nodes (&lt;code&gt;IfNode&lt;/code&gt;, &lt;code&gt;VectorOpNode&lt;/code&gt;, &lt;code&gt;RAMStoreNode&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Transpilation:&lt;/strong&gt; A tree-walking code generator maps the AST to formatted C strings, hoisting function definitions to the top to satisfy C's forward declaration rules.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  🛠️ The Standard Library: No Hand-Holding
&lt;/h3&gt;

&lt;p&gt;H-code is designed for systems programming, data processing, and embedded work. The standard library reflects that:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Fast RAM:&lt;/strong&gt; The &lt;code&gt;ram(N)&lt;/code&gt; construct allocates a single, contiguous block of memory via &lt;code&gt;calloc&lt;/code&gt;, accessed via stride-based indexing. It optimizes cache locality for tensor-like data.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Vector Math:&lt;/strong&gt; Native support for 3D vector operations (&lt;code&gt;dot&lt;/code&gt;, &lt;code&gt;magnitude&lt;/code&gt;, &lt;code&gt;similarity&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Dynamic Lists:&lt;/strong&gt; A custom &lt;code&gt;ListInt&lt;/code&gt; struct using &lt;code&gt;realloc&lt;/code&gt; to provide amortized O(1) appends, mimicking C++ &lt;code&gt;std::vector&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Graphics:&lt;/strong&gt; A lightweight SDL2 wrapper (&lt;code&gt;gfx.init&lt;/code&gt;, &lt;code&gt;gfx.present&lt;/code&gt;) for hardware-accelerated 2D rendering.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Error Handling:&lt;/strong&gt; &lt;code&gt;try&lt;/code&gt;/&lt;code&gt;catch&lt;/code&gt;/&lt;code&gt;throw&lt;/code&gt; semantics implemented using C's &lt;code&gt;setjmp&lt;/code&gt; and &lt;code&gt;longjmp&lt;/code&gt; for non-local control flow.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  ⚡ The Ultimate Flex: Inline Assembly
&lt;/h3&gt;

&lt;p&gt;Because H-code transpiles directly to C, it doesn't just stop at high-level abstractions. If you need to drop down to the bare metal, H-code supports &lt;strong&gt;inline assembly&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;You can write raw CPU instructions right inside your H-code script. The transpiler passes them directly to GCC/Clang via &lt;code&gt;__asm__&lt;/code&gt;. &lt;/p&gt;

&lt;p&gt;I tested this by writing a &lt;code&gt;cpu.hcode&lt;/code&gt; script that manipulated the CPU registers directly. The result? I effectively boosted my CPU metrics to 9999.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;// Example: Inline Assembly in H-code
func max_cpu() {
    asm {
        // Raw x86/ARM assembly goes here
        // The transpiler passes this directly to the C compiler
        "mov r0, #0xFF" 
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is the power of transpilation. You get the clean syntax of H-code, but when you need absolute control, the guardrails come off and you talk directly to the hardware.&lt;/p&gt;

&lt;h3&gt;
  
  
  ⚠️ The Honest Limitations
&lt;/h3&gt;

&lt;p&gt;I built this in 5 hours. It's not perfect yet.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Network is blocking:&lt;/strong&gt; &lt;code&gt;net.get(url)&lt;/code&gt; currently shells out to &lt;code&gt;curl&lt;/code&gt; via &lt;code&gt;popen&lt;/code&gt;. It works, but it's synchronous and I need to implement strict URL sanitization to prevent OS command injection. Next step: native POSIX sockets or &lt;code&gt;libcurl&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Memory Leaks on Throw:&lt;/strong&gt; Because C lacks RAII, if you &lt;code&gt;malloc&lt;/code&gt; inside a &lt;code&gt;try&lt;/code&gt; block and then &lt;code&gt;throw&lt;/code&gt;, the &lt;code&gt;longjmp&lt;/code&gt; will bypass your cleanup code. &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No Package Manager:&lt;/strong&gt; You import modules by physically inlining the source code during preprocessing. A real dependency resolver is on the roadmap.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  📄 The License
&lt;/h3&gt;

&lt;p&gt;H-code is distributed under the &lt;strong&gt;HYNAWEB Usage License&lt;/strong&gt;. &lt;br&gt;
You can write, compile, and commercially distribute any binary you create with H-code. You own your code. But the compiler source itself (&lt;code&gt;hcode_compiler.py&lt;/code&gt;, &lt;code&gt;stdlib/&lt;/code&gt;) remains protected under HYNAWEB. &lt;/p&gt;
&lt;h3&gt;
  
  
  🔨 Try It Yourself
&lt;/h3&gt;

&lt;p&gt;I want to see what you build with this.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm install -g h-code
hcode run main.hcode
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/harun-sket/H-code" rel="noopener noreferrer"&gt;https://github.com/harun-sket/H-code&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;NPM:&lt;/strong&gt; &lt;a href="https://www.npmjs.com/package/hcode-lang" rel="noopener noreferrer"&gt;https://www.npmjs.com/package/hcode-lang&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you find a bug, or if you manage to break the parser with some weird syntax, open an issue. I'll be fixing them as fast as I can type on this phone.&lt;/p&gt;

&lt;p&gt;— Harun, Founder &amp;amp; CEO, HYNAWEB 🐯☁️&lt;/p&gt;

</description>
      <category>c</category>
      <category>opensource</category>
      <category>buildinpublic</category>
      <category>assembly</category>
    </item>
    <item>
      <title>🍲 The HYNAWEB OSS Showcase: Bring Your Favorite Hidden Gem!</title>
      <dc:creator>Harun - solo dev </dc:creator>
      <pubDate>Fri, 04 Dec 2026 15:39:58 +0000</pubDate>
      <link>https://dev.to/hynaweb/the-hynaweb-oss-showcase-bring-your-favorite-hidden-gem-3b0g</link>
      <guid>https://dev.to/hynaweb/the-hynaweb-oss-showcase-bring-your-favorite-hidden-gem-3b0g</guid>
      <description>&lt;p&gt;Hello, builders! 👋&lt;/p&gt;

&lt;p&gt;We are taking a quick break from shipping code at HYNAWEB to host our first community event: &lt;strong&gt;The OSS Showcase!&lt;/strong&gt; 🎉&lt;/p&gt;

&lt;p&gt;We believe the best tools aren't always the ones with the biggest marketing budgets. Sometimes, they are the hidden gems built by solo devs, students, and indie hackers who just wanted to solve a problem. &lt;/p&gt;

&lt;p&gt;Today, we want to see what you are building, or what you are using. &lt;/p&gt;

&lt;h3&gt;
  
  
  🍽️ The Rules
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Bring ONE Open Source project.&lt;/strong&gt; (No spamming 10 links! Pick your favorite.)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;It must be publicly available on GitHub.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tell us in one sentence why you love it.&lt;/strong&gt; &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check out someone else's project&lt;/strong&gt; and leave a comment or a star. Support your fellow builders!&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;It could be a project you’ve been obsessed with lately, something you created yourself, or a tool that saved your life last week. &lt;/p&gt;

&lt;h3&gt;
  
  
  🐯 I'll Start!
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Project:&lt;/strong&gt; &lt;a href="https://github.com/harun-sket/hyna-stage" rel="noopener noreferrer"&gt;HYNA-Stage&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;What it is:&lt;/strong&gt; A cloud development platform that provisions isolated Firecracker MicroVMs in 7-15 seconds. No Docker, no YAML, just &lt;code&gt;hyna-stage up&lt;/code&gt;.&lt;br&gt;
&lt;strong&gt;Why I love it:&lt;/strong&gt; I built it entirely on a $150 Android phone in Termux because I was tired of waiting 5 minutes for Docker to boot. It taught me more about cloud infrastructure than any course ever could.&lt;/p&gt;

&lt;h3&gt;
  
  
  🚀 Your Turn!
&lt;/h3&gt;

&lt;p&gt;Drop your project in the comments below. Let's see what the community is cooking! 👇&lt;/p&gt;

&lt;p&gt;— The HYNAWEB Team 🐯☁️&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>discuss</category>
      <category>community</category>
      <category>hynaweb</category>
    </item>
  </channel>
</rss>
