<?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: Tek Raj Awasthi</title>
    <description>The latest articles on DEV Community by Tek Raj Awasthi (@teksyshub).</description>
    <link>https://dev.to/teksyshub</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%2F4193929%2F167e9378-2864-417f-9032-5e8bc8e51a1e.jpg</url>
      <title>DEV Community: Tek Raj Awasthi</title>
      <link>https://dev.to/teksyshub</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/teksyshub"/>
    <language>en</language>
    <item>
      <title>[Boost]</title>
      <dc:creator>Tek Raj Awasthi</dc:creator>
      <pubDate>Mon, 19 Oct 2026 10:57:56 +0000</pubDate>
      <link>https://dev.to/teksyshub/-hl4</link>
      <guid>https://dev.to/teksyshub/-hl4</guid>
      <description>&lt;div class="ltag__link--embedded"&gt;
  &lt;div class="crayons-story "&gt;
  &lt;a href="https://dev.to/teksyshub/how-i-built-a-systems-programming-language-in-100-pure-x86-64-assembly-and-made-it-self-host-5004" class="crayons-story__hidden-navigation-link"&gt;How I Built a Systems Programming Language in 100% Pure x86-64 Assembly (And Made It Self-Host)&lt;/a&gt;


  &lt;div class="crayons-story__body crayons-story__body-full_post"&gt;
    &lt;div class="crayons-story__top"&gt;
      &lt;div class="crayons-story__meta"&gt;
        &lt;div class="crayons-story__author-pic"&gt;

          &lt;a href="/teksyshub" class="crayons-avatar  crayons-avatar--l  "&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%2Fuser%2Fprofile_image%2F4193929%2F167e9378-2864-417f-9032-5e8bc8e51a1e.jpg" alt="teksyshub profile" class="crayons-avatar__image" width="460" height="460"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;div&gt;
            &lt;a href="/teksyshub" class="crayons-story__secondary fw-medium m:hidden"&gt;
              Tek Raj Awasthi
            &lt;/a&gt;
            &lt;div class="profile-preview-card relative mb-4 s:mb-0 fw-medium hidden m:inline-block"&gt;
              
                Tek Raj Awasthi
                
                
              
              &lt;div id="story-author-preview-content-4877310" class="profile-preview-card__content crayons-dropdown branded-7 p-4 pt-0"&gt;
                &lt;div class="gap-4 grid"&gt;
                  &lt;div class="-mt-4"&gt;
                    &lt;a href="/teksyshub" class="flex"&gt;
                      &lt;span class="crayons-avatar crayons-avatar--xl mr-2 shrink-0"&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%2Fuser%2Fprofile_image%2F4193929%2F167e9378-2864-417f-9032-5e8bc8e51a1e.jpg" class="crayons-avatar__image" alt="" width="460" height="460"&gt;
                      &lt;/span&gt;
                      &lt;span class="crayons-link crayons-subtitle-2 mt-5"&gt;Tek Raj Awasthi&lt;/span&gt;
                    &lt;/a&gt;
                  &lt;/div&gt;
                  &lt;div class="print-hidden"&gt;
                    
                      Follow
                    
                  &lt;/div&gt;
                  &lt;div class="author-preview-metadata-container"&gt;&lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;

          &lt;/div&gt;
          &lt;a href="https://dev.to/teksyshub/how-i-built-a-systems-programming-language-in-100-pure-x86-64-assembly-and-made-it-self-host-5004" class="crayons-story__tertiary fs-xs"&gt;&lt;time&gt;Oct 19&lt;/time&gt;&lt;span class="time-ago-indicator-initial-placeholder"&gt;&lt;/span&gt;&lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;

    &lt;/div&gt;

    &lt;div class="crayons-story__indention"&gt;
      &lt;h2 class="crayons-story__title crayons-story__title-full_post"&gt;
        &lt;a href="https://dev.to/teksyshub/how-i-built-a-systems-programming-language-in-100-pure-x86-64-assembly-and-made-it-self-host-5004" id="article-link-4877310"&gt;
          How I Built a Systems Programming Language in 100% Pure x86-64 Assembly (And Made It Self-Host)
        &lt;/a&gt;
      &lt;/h2&gt;
        &lt;div class="crayons-story__tags"&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/assembly"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;assembly&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/opensource"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;opensource&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/programming"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;programming&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/systems"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;systems&lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="crayons-story__bottom"&gt;
        &lt;div class="crayons-story__details"&gt;
          &lt;a href="https://dev.to/teksyshub/how-i-built-a-systems-programming-language-in-100-pure-x86-64-assembly-and-made-it-self-host-5004" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left"&gt;
            &lt;div class="multiple_reactions_aggregate"&gt;
              &lt;span class="multiple_reactions_icons_container"&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/sparkle-heart-5f9bee3767e18deb1bb725290cb151c25234768a0e9a2bd39370c382d02920cf.svg" width="24" height="24"&gt;
                  &lt;/span&gt;
              &lt;/span&gt;
              &lt;span class="aggregate_reactions_counter"&gt;1&lt;span class="hidden s:inline"&gt;&amp;nbsp;reaction&lt;/span&gt;&lt;/span&gt;
            &lt;/div&gt;
          &lt;/a&gt;
            &lt;a href="https://dev.to/teksyshub/how-i-built-a-systems-programming-language-in-100-pure-x86-64-assembly-and-made-it-self-host-5004#comments" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left flex items-center"&gt;
              

              &lt;span class="hidden s:inline"&gt;Add&amp;nbsp;Comment&lt;/span&gt;
            &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="crayons-story__save"&gt;
          &lt;small class="crayons-story__tertiary fs-xs mr-2"&gt;
            3 min read
          &lt;/small&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;


</description>
      <category>assembly</category>
      <category>programming</category>
      <category>systems</category>
    </item>
    <item>
      <title>How I Built a Systems Programming Language in 100% Pure x86-64 Assembly (And Made It Self-Host)</title>
      <dc:creator>Tek Raj Awasthi</dc:creator>
      <pubDate>Mon, 19 Oct 2026 10:56:18 +0000</pubDate>
      <link>https://dev.to/teksyshub/how-i-built-a-systems-programming-language-in-100-pure-x86-64-assembly-and-made-it-self-host-5004</link>
      <guid>https://dev.to/teksyshub/how-i-built-a-systems-programming-language-in-100-pure-x86-64-assembly-and-made-it-self-host-5004</guid>
      <description>&lt;p&gt;Modern systems programming languages like Rust, Go, Zig, and Swift rely heavily on massive compilation infrastructures—primarily &lt;strong&gt;LLVM&lt;/strong&gt; (millions of lines of C++) or vendor C runtimes (&lt;code&gt;libc&lt;/code&gt;, &lt;code&gt;glibc&lt;/code&gt;, &lt;code&gt;msvcrt&lt;/code&gt;). &lt;/p&gt;

&lt;p&gt;While these toolchains provide deep optimizations, they also bring noticeable baggage: multi-gigabyte compiler installations, slow compilation times, non-trivial binary bloat, and dependency layers that obscure what the CPU is actually doing.&lt;/p&gt;

&lt;p&gt;I wanted to explore an alternative question:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Can we build a fast, modern, statically typed systems programming language with zero C, zero libc, zero LLVM, and a compiler written in 100% pure x86-64 assembly?&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That experiment became &lt;strong&gt;&lt;a href="https://github.com/tek-sys-hub/Rubix-lang" rel="noopener noreferrer"&gt;Rubix&lt;/a&gt;&lt;/strong&gt; (&lt;code&gt;.ix&lt;/code&gt;).&lt;/p&gt;




&lt;h3&gt;
  
  
  What Makes Rubix Different?
&lt;/h3&gt;

&lt;h4&gt;
  
  
  1. Zero C / Zero &lt;code&gt;libc&lt;/code&gt; Dependency
&lt;/h4&gt;

&lt;p&gt;Rubix does not link against &lt;code&gt;libc&lt;/code&gt;. All console I/O, process management, and memory allocation talk directly to the OS kernel:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Linux:&lt;/strong&gt; Native &lt;code&gt;syscall&lt;/code&gt; instructions (&lt;code&gt;sys_read&lt;/code&gt;, &lt;code&gt;sys_write&lt;/code&gt;, &lt;code&gt;sys_open&lt;/code&gt;, &lt;code&gt;sys_mmap&lt;/code&gt;, &lt;code&gt;sys_exit&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Windows:&lt;/strong&gt; Cross-compiles native PE64 &lt;code&gt;.exe&lt;/code&gt; binaries with direct Win32 &lt;code&gt;kernel32.dll&lt;/code&gt; API resolution (&lt;code&gt;VirtualAlloc&lt;/code&gt;, &lt;code&gt;WriteFile&lt;/code&gt;, &lt;code&gt;ExitProcess&lt;/code&gt;) using the Microsoft x64 calling convention.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;macOS:&lt;/strong&gt; Darwin 64-bit kernel syscall convention.&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  2. The 55 KB Compiler
&lt;/h4&gt;

&lt;p&gt;Because the compiler has zero external baggage:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The entire native compiler binary is &lt;strong&gt;~55 KB&lt;/strong&gt; (smaller than a typical "Hello World" executable in Go or Rust).&lt;/li&gt;
&lt;li&gt;It compiles from source assembly in &lt;strong&gt;under 0.15 seconds&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Emitted binaries start up in &lt;strong&gt;0.3 ms&lt;/strong&gt; with less than &lt;strong&gt;2 MB of RAM&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  What Rubix Code Looks Like
&lt;/h3&gt;

&lt;p&gt;Rubix combines the clean, expressive syntax of modern languages with low-level systems control:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight rust"&gt;&lt;code&gt;&lt;span class="k"&gt;struct&lt;/span&gt; &lt;span class="n"&gt;Vec2&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;float&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;float&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;fn&lt;/span&gt; &lt;span class="nf"&gt;length_squared&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;Vec2&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt; &lt;span class="nb"&gt;float&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="py"&gt;.x&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="py"&gt;.x&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="py"&gt;.y&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="py"&gt;.y&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;fn&lt;/span&gt; &lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="n"&gt;point&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;Vec2&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;3.0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;4.0&lt;/span&gt; &lt;span class="p"&gt;};&lt;/span&gt;
    &lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="n"&gt;d2&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;length_squared&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;point&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

    &lt;span class="nf"&gt;print_str&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Distance squared: "&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="nf"&gt;print_float&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;d2&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="nf"&gt;print_str&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"&lt;/span&gt;&lt;span class="se"&gt;\n&lt;/span&gt;&lt;span class="s"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Features already implemented and verified in the test suite:&lt;/p&gt;

&lt;p&gt;64-bit Integers &amp;amp; IEEE 754 Doubles: Hardware SSE2 floating-point math (xmm0-xmm7).&lt;br&gt;
Named Structs: Multi-field structs with dot access (point.x).&lt;br&gt;
Dynamic Heap Memory: alloc(bytes) and free(ptr, bytes) using direct OS virtual memory.&lt;br&gt;
Control Flow: if/else, while, and C-style for loops with break/continue.&lt;br&gt;
Debugging: Full DWARF debug directives emitted for step-through debugging in GDB and LLDB.&lt;br&gt;
Modules: Multi-file imports (import "lib.ix";).&lt;br&gt;
The Big Milestone: Self-Hosting Bootstrap Alpha&lt;br&gt;
Writing a compiler in assembly is fun, but the ultimate test of any language is self-hosting—can the language compile itself?&lt;/p&gt;

&lt;p&gt;Inside rubixc_bootstrap/, we wrote the compiler pipeline (lexer, symbol table with lexical scoping, recursive-descent parser, and assembly emitter) in pure Rubix (.ix).&lt;/p&gt;

&lt;p&gt;The bootstrap loop works end-to-end:&lt;/p&gt;

&lt;p&gt;The native assembly compiler compiles rubixc_bootstrap/src/main.ix into a native compiler executable (rubixc_native).&lt;br&gt;
rubixc_native parses user source code and emits functional x86-64 assembly.&lt;br&gt;
The resulting binary executes natively and runs calculations accurately.&lt;br&gt;
All 17/17 core regression test suites pass cleanly.&lt;/p&gt;

&lt;p&gt;Where We Are Going &amp;amp; How to Contribute&lt;br&gt;
Rubix is 100% open-source under the MIT license: 👉 GitHub: &lt;a href="https://github.com/tek-sys-hub/Rubix-lang" rel="noopener noreferrer"&gt;https://github.com/tek-sys-hub/Rubix-lang&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We are looking for systems developers, compiler engineers, and low-level enthusiasts to collaborate on:&lt;/p&gt;

&lt;p&gt;Linear-Scan / Graph-Coloring Register Allocator: Moving our expression evaluator from the stack to hardware registers (rax-r15).&lt;br&gt;
Foreign Function Interface (C-FFI): Adding extern fn support (System V / Win64 calling conventions) to link with Raylib, SDL2, and SQLite for native 2D/3D games and GUIs.&lt;br&gt;
Memory Allocator &amp;amp; Standard Containers: Writing custom Arena/Slab allocators, dynamic Vector, and HashMap in pure Rubix.&lt;br&gt;
WebAssembly (WASM) Backend: Emitting standalone .wasm binary bytecode.&lt;/p&gt;

&lt;h2&gt;
  
  
  If you enjoy low-level programming or compilers, clone the repo, run ./test.sh, and feel free to open a PR or share your thoughts!
&lt;/h2&gt;

&lt;p&gt;Publishing this on &lt;strong&gt;Dev.to&lt;/strong&gt; takes &lt;strong&gt;under 60 seconds&lt;/strong&gt; and gets your project in front of thousands of developers immediately!&lt;br&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%2Faa80iuvlij9qj5k9f1xz.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%2Faa80iuvlij9qj5k9f1xz.png" alt=" " width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>assembly</category>
      <category>opensource</category>
      <category>programming</category>
      <category>systems</category>
    </item>
  </channel>
</rss>
