<?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: MaxDaPro</title>
    <description>The latest articles on DEV Community by MaxDaPro (@maxdapro923alt).</description>
    <link>https://dev.to/maxdapro923alt</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%2F4286373%2F3d3e47f9-8a0a-4a7e-8f0c-a2b9cf1b25b0.png</url>
      <title>DEV Community: MaxDaPro</title>
      <link>https://dev.to/maxdapro923alt</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/maxdapro923alt"/>
    <language>en</language>
    <item>
      <title>I Built BDScript v1.0.0: A C11 Scripting Language with Time-Travel History, Reactive Watchers &amp; Native Win32 2D GUI</title>
      <dc:creator>MaxDaPro</dc:creator>
      <pubDate>Sun, 06 Dec 2026 13:18:54 +0000</pubDate>
      <link>https://dev.to/maxdapro923alt/i-built-bdscript-v100-a-c11-scripting-language-with-time-travel-history-reactive-watchers--1c2d</link>
      <guid>https://dev.to/maxdapro923alt/i-built-bdscript-v100-a-c11-scripting-language-with-time-travel-history-reactive-watchers--1c2d</guid>
      <description>&lt;p&gt;I recently shipped &lt;strong&gt;BDScript (ENGINE v1.0.0)&lt;/strong&gt;—a dynamically typed scripting language and tree-walking interpreter written from scratch in standard &lt;strong&gt;C11&lt;/strong&gt; (~16,734 lines of code across 27 modular &lt;code&gt;.c&lt;/code&gt; and &lt;code&gt;.h&lt;/code&gt; files) with zero external runtime dependencies and a &lt;strong&gt;&amp;lt; 2 ms cold start&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Instead of just building a standard calculator or Lisp clone, I wanted to experiment with runtime ergonomics, state observability, and built-in desktop graphics directly inside a native C runtime.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Space-or-Underscore Identifiers &amp;amp; Readable Syntax
&lt;/h2&gt;

&lt;p&gt;In BDScript's lexer, ASCII underscores (&lt;code&gt;_&lt;/code&gt;) normalize to spaces (&lt;code&gt;&lt;/code&gt;), meaning &lt;code&gt;player_score&lt;/code&gt; and &lt;code&gt;player score&lt;/code&gt; map to the exact same symbol table binding.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;player_name = "Aria"
gold coins = 25
gold_coins += 15

say "Welcome, {player name}!"
say "Total Gold: {gold coins}"

if chance 50% then
    say "Bonus treasure unlocked!"
end
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  2. Time-Travel Variable History (&lt;code&gt;prev()&lt;/code&gt; &amp;amp; &lt;code&gt;@-1&lt;/code&gt;)
&lt;/h2&gt;

&lt;p&gt;Every variable entry (&lt;code&gt;BdVarEntry&lt;/code&gt;) inside a lexical scope maintains a 10-slot circular ring buffer (&lt;code&gt;BD_HISTORY_MAX = 10&lt;/code&gt;) of deep-copied snapshots. Before scalar reassignments or in-place list/dictionary mutations occur, the runtime captures a cycle-safe deep clone so historical values can be inspected anytime:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;score = 10
score = 25
score = 100

say "Current: {score}"        # 100
say "Previous: {prev(score)}"  # 25
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  3. Reactive Dependency Watchers (&lt;code&gt;watch&lt;/code&gt;)
&lt;/h2&gt;

&lt;p&gt;BDScript includes an AST-driven reactive observer engine. When a &lt;code&gt;watch &amp;lt;expr&amp;gt; do ... end&lt;/code&gt; block is registered, the interpreter traverses the condition AST, extracts all referenced identifiers, and binds them to their exact owning lexical scopes:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;alerts = 0
hp = 100

watch hp &amp;lt;= 25 do
    alerts += 1
    say "[ALERT #{alerts}] Critical HP: {hp} (was {prev(hp)})"
end

hp = 60
hp = 20   # Automatically triggers the watcher!
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  4. Typo Auto-Recovery (&lt;code&gt;fuzzy auto&lt;/code&gt;)
&lt;/h2&gt;

&lt;p&gt;When standard lexical lookup fails and &lt;code&gt;fuzzy&lt;/code&gt; mode is enabled (&lt;code&gt;fuzzy hint&lt;/code&gt; or &lt;code&gt;fuzzy auto&lt;/code&gt;), the runtime runs a Levenshtein edit-distance + adjacent-transposition scorer across visible scopes and global built-ins:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;fuzzy auto
dragon_fire_power = 9000
say dragon_fire_powre   # Resolves to dragon_fire_power (9000)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  5. Built-in Double-Buffered Win32 2D Canvas
&lt;/h2&gt;

&lt;p&gt;On Windows, BDScript links directly against &lt;code&gt;gdi32&lt;/code&gt; and &lt;code&gt;user32&lt;/code&gt; to provide a retained-mode 2D vector canvas (&lt;code&gt;BitBlt&lt;/code&gt; offscreen backbuffer), native buttons/inputs, timers (&lt;code&gt;after&lt;/code&gt;), and keyboard/mouse callbacks—no external graphics libraries required:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;gui_window("BDScript Native GUI", 480, 320, "#141622")
x = 200
y = 130

make draw() do
    clear_canvas()
    draw_text(20, 20, "Click anywhere to move!", "cyan")
    draw_rect(x, y, 50, 50, "#8b5cf6", "white")
end

on_click(make(mx, my) do
    x = mx - 25
    y = my - 25
    draw()
end)

draw()
gui_start()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Architecture Highlights
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Memory Management:&lt;/strong&gt; Deterministic reference counting across &lt;code&gt;BdValue&lt;/code&gt; tagged unions, AST nodes, and lexical &lt;code&gt;BdScope&lt;/code&gt; frames, paired with visited-pointer cycle detection for deep equality, deep cloning, terminal highlighting, and JSON serialization.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Testing:&lt;/strong&gt; Verified with a 5,000-assertion automated test suite (&lt;code&gt;stress_test.bd&lt;/code&gt;) covering closures, prototype &lt;code&gt;blueprint&lt;/code&gt; inheritance, &lt;code&gt;try&lt;/code&gt;/&lt;code&gt;catch&lt;/code&gt;/&lt;code&gt;finally&lt;/code&gt;, slicing, and file/JSON I/O.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ecosystem:&lt;/strong&gt; Includes a custom &lt;code&gt;.vsix&lt;/code&gt; VS Code syntax extension, multi-file &lt;code&gt;.bdproj&lt;/code&gt; manifests, and native runner hooks for &lt;code&gt;.py&lt;/code&gt;, &lt;code&gt;.cpp&lt;/code&gt;, and &lt;code&gt;.cs&lt;/code&gt; files.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try It &amp;amp; Read the Technical Specs
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Official Website, Windows x64 &lt;code&gt;.zip&lt;/code&gt; Download &amp;amp; PDF Specs:&lt;/strong&gt; &lt;a href="https://github.io" rel="noopener noreferrer"&gt;https://github.io&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GitHub Source Code (MIT License):&lt;/strong&gt; &lt;a href="https://github.com" rel="noopener noreferrer"&gt;https://github.com&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I'd love to hear your thoughts on the C11 runtime design, reactive watcher model, or ideas for v2.0!&lt;/p&gt;

</description>
      <category>codenewbiestory</category>
      <category>codenewbie</category>
      <category>ai</category>
      <category>beginners</category>
    </item>
    <item>
      <title>I Built BDScript v1.0.0: A 16,734-Line C11 Scripting Language with Time-Travel History, Reactive Watchers &amp; Native Win32 2D GUI</title>
      <dc:creator>MaxDaPro</dc:creator>
      <pubDate>Sun, 06 Dec 2026 13:16:15 +0000</pubDate>
      <link>https://dev.to/maxdapro923alt/i-built-bdscript-v100-a-16734-line-c11-scripting-language-with-time-travel-history-reactive-2lpm</link>
      <guid>https://dev.to/maxdapro923alt/i-built-bdscript-v100-a-16734-line-c11-scripting-language-with-time-travel-history-reactive-2lpm</guid>
      <description>&lt;p&gt;I recently shipped &lt;strong&gt;BDScript (ENGINE v1.0.0)&lt;/strong&gt;—a dynamically typed scripting language and tree-walking interpreter written from scratch in standard &lt;strong&gt;C11&lt;/strong&gt; (~16,734 lines of code across 27 modular &lt;code&gt;.c&lt;/code&gt; and &lt;code&gt;.h&lt;/code&gt; files) with zero external runtime dependencies and a &lt;strong&gt;&amp;lt; 2 ms cold start&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Instead of just building a standard calculator or Lisp clone, I wanted to experiment with runtime ergonomics, state observability, and built-in desktop graphics directly inside a native C runtime.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Space-or-Underscore Identifiers &amp;amp; Readable Syntax
&lt;/h2&gt;

&lt;p&gt;In BDScript's lexer, ASCII underscores (&lt;code&gt;_&lt;/code&gt;) normalize to spaces (&lt;code&gt;&lt;/code&gt;), meaning &lt;code&gt;player_score&lt;/code&gt; and &lt;code&gt;player score&lt;/code&gt; map to the exact same symbol table binding.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;player_name = "Aria"
gold coins = 25
gold_coins += 15

say "Welcome, {player name}!"
say "Total Gold: {gold coins}"

if chance 50% then
    say "Bonus treasure unlocked!"
end
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  2. Time-Travel Variable History (&lt;code&gt;prev()&lt;/code&gt; &amp;amp; &lt;code&gt;@-1&lt;/code&gt;)
&lt;/h2&gt;

&lt;p&gt;Every variable entry (&lt;code&gt;BdVarEntry&lt;/code&gt;) inside a lexical scope maintains a 10-slot circular ring buffer (&lt;code&gt;BD_HISTORY_MAX = 10&lt;/code&gt;) of deep-copied snapshots. Before scalar reassignments or in-place list/dictionary mutations occur, the runtime captures a cycle-safe deep clone so historical values can be inspected anytime:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;score = 10
score = 25
score = 100

say "Current: {score}"        # 100
say "Previous: {prev(score)}"  # 25
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  3. Reactive Dependency Watchers (&lt;code&gt;watch&lt;/code&gt;)
&lt;/h2&gt;

&lt;p&gt;BDScript includes an AST-driven reactive observer engine. When a &lt;code&gt;watch &amp;lt;expr&amp;gt; do ... end&lt;/code&gt; block is registered, the interpreter traverses the condition AST, extracts all referenced identifiers, and binds them to their exact owning lexical scopes:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;alerts = 0
hp = 100

watch hp &amp;lt;= 25 do
    alerts += 1
    say "[ALERT #{alerts}] Critical HP: {hp} (was {prev(hp)})"
end

hp = 60
hp = 20   # Automatically triggers the watcher!
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  4. Typo Auto-Recovery (&lt;code&gt;fuzzy auto&lt;/code&gt;)
&lt;/h2&gt;

&lt;p&gt;When standard lexical lookup fails and &lt;code&gt;fuzzy&lt;/code&gt; mode is enabled (&lt;code&gt;fuzzy hint&lt;/code&gt; or &lt;code&gt;fuzzy auto&lt;/code&gt;), the runtime runs a Levenshtein edit-distance + adjacent-transposition scorer across visible scopes and global built-ins:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;fuzzy auto
dragon_fire_power = 9000
say dragon_fire_powre   # Resolves to dragon_fire_power (9000)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  5. Built-in Double-Buffered Win32 2D Canvas
&lt;/h2&gt;

&lt;p&gt;On Windows, BDScript links directly against &lt;code&gt;gdi32&lt;/code&gt; and &lt;code&gt;user32&lt;/code&gt; to provide a retained-mode 2D vector canvas (&lt;code&gt;BitBlt&lt;/code&gt; offscreen backbuffer), native buttons/inputs, timers (&lt;code&gt;after&lt;/code&gt;), and keyboard/mouse callbacks—no external graphics libraries required:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;gui_window("BDScript Native GUI", 480, 320, "#141622")
x = 200
y = 130

make draw() do
    clear_canvas()
    draw_text(20, 20, "Click anywhere to move!", "cyan")
    draw_rect(x, y, 50, 50, "#8b5cf6", "white")
end

on_click(make(mx, my) do
    x = mx - 25
    y = my - 25
    draw()
end)

draw()
gui_start()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Architecture Highlights
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Memory Management:&lt;/strong&gt; Deterministic reference counting across &lt;code&gt;BdValue&lt;/code&gt; tagged unions, AST nodes, and lexical &lt;code&gt;BdScope&lt;/code&gt; frames, paired with visited-pointer cycle detection for deep equality, deep cloning, terminal highlighting, and JSON serialization.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Testing:&lt;/strong&gt; Verified with a 5,000-assertion automated test suite (&lt;code&gt;stress_test.bd&lt;/code&gt;) covering closures, prototype &lt;code&gt;blueprint&lt;/code&gt; inheritance, &lt;code&gt;try&lt;/code&gt;/&lt;code&gt;catch&lt;/code&gt;/&lt;code&gt;finally&lt;/code&gt;, slicing, and file/JSON I/O.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ecosystem:&lt;/strong&gt; Includes a custom &lt;code&gt;.vsix&lt;/code&gt; VS Code syntax extension, multi-file &lt;code&gt;.bdproj&lt;/code&gt; manifests, and native runner hooks for &lt;code&gt;.py&lt;/code&gt;, &lt;code&gt;.cpp&lt;/code&gt;, and &lt;code&gt;.cs&lt;/code&gt; files.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try It &amp;amp; Read the Technical Specs
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Official Website, Windows x64 &lt;code&gt;.zip&lt;/code&gt; Download &amp;amp; PDF Specs:&lt;/strong&gt; &lt;a href="https://github.io" rel="noopener noreferrer"&gt;https://github.io&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GitHub Source Code (MIT License):&lt;/strong&gt; &lt;a href="https://github.com" rel="noopener noreferrer"&gt;https://github.com&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I'd love to hear your thoughts on the C11 runtime design, reactive watcher model, or ideas for v2.0!&lt;/p&gt;

&lt;p&gt;``&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>c</category>
      <category>programming</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
