<?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: Zawiyar</title>
    <description>The latest articles on DEV Community by Zawiyar (@zawiyar_awan).</description>
    <link>https://dev.to/zawiyar_awan</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%2F4184517%2F84ce3dda-2d6d-40af-a4ab-f3e39eb6405b.png</url>
      <title>DEV Community: Zawiyar</title>
      <link>https://dev.to/zawiyar_awan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/zawiyar_awan"/>
    <language>en</language>
    <item>
      <title>48 Hours in the Trenches: What Building a Programming Language Actually Feels Like</title>
      <dc:creator>Zawiyar</dc:creator>
      <pubDate>Wed, 25 Nov 2026 10:22:07 +0000</pubDate>
      <link>https://dev.to/zawiyar_awan/48-hours-in-the-trenches-what-building-a-programming-language-actually-feels-like-2l1k</link>
      <guid>https://dev.to/zawiyar_awan/48-hours-in-the-trenches-what-building-a-programming-language-actually-feels-like-2l1k</guid>
      <description>&lt;h2&gt;
  
  
  48 Hours in the Trenches: What Building a Programming Language Actually Feels Like
&lt;/h2&gt;

&lt;p&gt;There is a wide gap between building a website or application and building a programming language from the ground up. In web development, you stand on established frameworks, runtimes, and ecosystems. When you build a language, every assumption is yours to design, verify, and defend—from lexical rules and type inference to scope boundaries, memory behavior, and target code generation.&lt;/p&gt;

&lt;p&gt;Over the past 48 hours, I went deep into stabilizing &lt;strong&gt;ScarScript v1.0.3&lt;/strong&gt; alone. What looked like a final stretch of testing quickly turned into one of the most demanding engineering marathons I have ever taken on.&lt;/p&gt;

&lt;h2&gt;
  
  
  Untangling Deep Compiler and Codegen Bugs
&lt;/h2&gt;

&lt;p&gt;Unlike surface-level UI or application bugs, compiler issues hide across layers. Fixing one behavior often exposes a deeper structural mismatch between the AST, type checker, and code generator:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Module Exports and Entrypoint Collisions:&lt;/strong&gt; Exported functions wrapped in module export declarations were missing during code generation, while user-defined &lt;code&gt;main&lt;/code&gt; functions conflicted with generated entrypoint scaffolding.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Type Inference and &lt;code&gt;unwrapOr&lt;/code&gt; Resolution:&lt;/strong&gt; Calling &lt;code&gt;.unwrapOr()&lt;/code&gt; on &lt;code&gt;Option&lt;/code&gt; and &lt;code&gt;Result&lt;/code&gt; values ran into unresolved inner type fallbacks (&lt;code&gt;any&lt;/code&gt; vs. &lt;code&gt;int&lt;/code&gt;), alongside missing &lt;code&gt;Result&amp;lt;T, E&amp;gt;&lt;/code&gt; type annotation handling in the resolver.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Function Scope vs. Block Scope:&lt;/strong&gt; A &lt;code&gt;mut&lt;/code&gt; variable declared inside a function and mutated inside a nested &lt;code&gt;for&lt;/code&gt; loop was misclassified by the checker because scope lookup checked only the immediate inner block rather than the enclosing function boundary.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Incomplete Runtime Primitives:&lt;/strong&gt; Features like &lt;code&gt;input()&lt;/code&gt; needed real &lt;code&gt;stdin&lt;/code&gt; reading rather than stubbed behavior, and leftover scaffolding needed to be cleaned out so the compiler pipeline stayed predictable.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Hitting a Mental Wall
&lt;/h2&gt;

&lt;p&gt;Debugging alone across a lexer, parser, checker, and Go codegen pipeline for hours on end takes a heavy physical and mental toll. Long stretches in front of the display brought on severe eye strain and headaches, and at one point the fatigue became overwhelming:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;"These 48 hours were a huge nightmare for me. All of this was much harder than I had imagined. My mind went blank at one point—nothing was making sense anymore—but I am grateful that I fixed the bugs and shipped the new release."&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;When your mind goes blank, speed stops mattering. The only way forward is stepping back for a moment, tracing each failure to its root cause instead of applying brittle workarounds, and verifying every fix methodically.&lt;/p&gt;

&lt;h2&gt;
  
  
  Shipping ScarScript v1.0.3
&lt;/h2&gt;

&lt;p&gt;Once the function scope boundary was properly enforced in the checker, exported declarations and &lt;code&gt;init()&lt;/code&gt; routing were fixed in codegen, &lt;code&gt;unwrapOr&lt;/code&gt; and &lt;code&gt;Result&lt;/code&gt;/&lt;code&gt;Option&lt;/code&gt; types resolved cleanly, and &lt;code&gt;input()&lt;/code&gt; read real user input, the test cases and cross-platform binaries finally came together.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;ScarScript v1.0.3&lt;/strong&gt; is now out. Those 48 hours were exhausting, but they reinforced a simple truth: real systems engineering is built on patience, root-cause discipline, and seeing difficult problems all the way through.&lt;/p&gt;




&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;GitHub Repository:&lt;/strong&gt; &lt;a href="https://github.com/ScarfazeCompany/ScarScript" rel="noopener noreferrer"&gt;github.com/ScarfazeCompany/ScarScript&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Documentation &amp;amp; Releases:&lt;/strong&gt; &lt;a href="https://scarscript.scarfaze.com" rel="noopener noreferrer"&gt;scarscript.scarfaze.com&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Author:&lt;/strong&gt; Zawiyar Awan — Founder &amp;amp; CEO, Scarfaze Technologies&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>programming</category>
      <category>go</category>
      <category>debugging</category>
      <category>development</category>
    </item>
    <item>
      <title>ScarScript — Pakistan's First High-Performance Compiled Programming Language!</title>
      <dc:creator>Zawiyar</dc:creator>
      <pubDate>Wed, 14 Oct 2026 11:12:02 +0000</pubDate>
      <link>https://dev.to/zawiyar_awan/scarscript-pakistans-first-high-performance-compiled-programming-language-4fam</link>
      <guid>https://dev.to/zawiyar_awan/scarscript-pakistans-first-high-performance-compiled-programming-language-4fam</guid>
      <description>&lt;p&gt;🚀 Excited to announce ScarScript — Pakistan's First High-Performance Compiled Programming Language! 🇵🇰⚡&lt;/p&gt;

&lt;p&gt;Over the past months, I’ve been working on creating a brand-new programming language engineered for developers who love the simplicity of Express-like syntax but need the raw speed of native compiled binaries.&lt;/p&gt;

&lt;p&gt;⚡ Key Features &amp;amp; Highlights:&lt;br&gt;
• Express-Inspired Ergonomics: Easy to read, write, and maintain.&lt;br&gt;
• Native Compilation: Compiles directly into fast binaries with zero VM overhead.&lt;br&gt;
• Static Type Checking &amp;amp; Inference: Catch errors at compile-time with full type safety.&lt;br&gt;
• 10M Iterations Benchmark: Executes in ~0.165s (6x–23x faster than Node.js and Python).&lt;br&gt;
• Cross-Platform: Pre-built native binaries for Windows, Linux, and macOS.&lt;/p&gt;

&lt;p&gt;Built from scratch as part of the Scarfaze ecosystem. &lt;/p&gt;

&lt;p&gt;👉 Check out the repository &amp;amp; pre-built releases: &lt;a href="https://github.com/ScarfazeCompany/scar-script" rel="noopener noreferrer"&gt;https://github.com/ScarfazeCompany/scar-script&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  ScarScript #Scarfaze #ProgrammingLanguage #Compiler #GoLang #SoftwareEngineering #TechPakistan #OpenSource #DeveloperTools #TechAnnouncement
&lt;/h1&gt;

</description>
      <category>opensource</category>
      <category>performance</category>
      <category>programming</category>
      <category>go</category>
    </item>
  </channel>
</rss>
