<?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: RobeLTDP</title>
    <description>The latest articles on DEV Community by RobeLTDP (@robeltdp).</description>
    <link>https://dev.to/robeltdp</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3902602%2Ff2f89472-373f-4d04-b548-dd9e88b4d6d4.png</url>
      <title>DEV Community: RobeLTDP</title>
      <link>https://dev.to/robeltdp</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/robeltdp"/>
    <language>en</language>
    <item>
      <title>I built Soul, a tiny compiled language that generates ~22KB binaries — here's what I learned</title>
      <dc:creator>RobeLTDP</dc:creator>
      <pubDate>Tue, 28 Apr 2026 16:41:19 +0000</pubDate>
      <link>https://dev.to/robeltdp/i-built-soul-a-tiny-compiled-language-that-generates-22kb-binaries-heres-what-i-learned-4cd5</link>
      <guid>https://dev.to/robeltdp/i-built-soul-a-tiny-compiled-language-that-generates-22kb-binaries-heres-what-i-learned-4cd5</guid>
      <description>&lt;p&gt;I've been working on a small compiled language called Soul.&lt;/p&gt;

&lt;p&gt;It didn't start from benchmarking existing tools. It started from a simpler question: &lt;br&gt;
how small and fast can a compiled language be if it's designed to do just a few things well?&lt;/p&gt;
&lt;h2&gt;
  
  
  The idea
&lt;/h2&gt;

&lt;p&gt;Most filesystem automation lives in two uncomfortable places: Bash scripts that get fragile at scale, or full programs in Go or Python that feel heavy for simple tasks. Soul explores a more declarative way of describing filesystem operations.&lt;/p&gt;

&lt;p&gt;The language understands the filesystem as a structure — trees, differences, missing files — rather than just running commands against it.&lt;/p&gt;
&lt;h2&gt;
  
  
  What it looks like
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;backup.soul&lt;/em&gt; (full file)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;str src = arg("--folderSrc")
str dst = arg("--folderDst")
printStr("Starting backup...")
mkdir(dst)
backup(src, dst)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;_overview.soul _(full file)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;str folder = arg("--folder")
overviewinfo ov = overview(folder)
str txt = overviewSummary(ov)
printStr(txt)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;These samples compiles to static binaries of about 22KB and 17Kb respectively, with no runtime and no external dependencies.&lt;/p&gt;

&lt;p&gt;Some numbers from local tests on Linux + NVMe:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;~210K file scan: &lt;strong&gt;0.39s&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Incremental copy of ~1.4GB: &lt;strong&gt;1.9s&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Docker image (FROM scratch): &lt;strong&gt;~68KB&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;These are honest local runs, not microbenchmarks.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Something I'm experimenting with: plan mode
&lt;/h2&gt;

&lt;p&gt;One idea I'm exploring is a &lt;strong&gt;"plan mode"&lt;/strong&gt; — where Soul analyzes the program before executing it and tells you exactly what will happen: which files will be copied, deleted, or modified, and how much data is involved.&lt;/p&gt;

&lt;p&gt;Not a dry-run flag on top of existing commands, but something built into the language model itself. Deterministic and inspectable before anything touches the filesystem.&lt;/p&gt;

&lt;p&gt;This feels like the most interesting direction to me, especially for large or destructive operations where you want visibility before you commit.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where it lives today
&lt;/h2&gt;

&lt;p&gt;There's a browser-based editor and compiler at &lt;a href="https://soul-run.com" rel="noopener noreferrer"&gt;soul-run.com&lt;/a&gt; where you can write Soul code and download the resulting binary. You can also download test binary files:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://soul-run.com/binary.download?file=overview" rel="noopener noreferrer"&gt;https://soul-run.com/binary.download?file=overview&lt;/a&gt;&lt;br&gt;
Usage:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;chmod&lt;/span&gt; +x overview
./overview &lt;span class="nt"&gt;--folder&lt;/span&gt; &lt;span class="s2"&gt;"/your/folder"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://soul-run.com/binary.download?file=backup" rel="noopener noreferrer"&gt;https://soul-run.com/binary.download?file=backup&lt;/a&gt;&lt;br&gt;
Usage:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;chmod&lt;/span&gt; +x backup
./backup &lt;span class="nt"&gt;--folderSrc&lt;/span&gt; &lt;span class="s2"&gt;"/your/source/folder"&lt;/span&gt; &lt;span class="nt"&gt;--folderDst&lt;/span&gt; &lt;span class="s2"&gt;"/your/destination"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The compiler is currently closed-source while I stabilize the language design.&lt;/p&gt;

&lt;p&gt;You can also try the backup tool directly with Docker:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight docker"&gt;&lt;code&gt;docker run --rm \
  -v /your/source:/src \
  -v /your/destination:/dst \
  soultools/backup:latest \
  --folderSrc /src --folderDst /dst
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or the overview tool:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight docker"&gt;&lt;code&gt;docker run --rm \
  -v /your/local/folder:/data \
  soultools/overview:latest \
  --folder /data
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  What I'm still figuring out
&lt;/h2&gt;

&lt;p&gt;Honestly, I'm not sure yet what Soul should become. The binary size is interesting, but the &lt;strong&gt;declarative model&lt;/strong&gt; and the &lt;strong&gt;plan mode&lt;/strong&gt; feel like the more compelling direction. I'm  also considering focusing into IoT since ultralight binaries could work great in small and light devices.&lt;/p&gt;

&lt;p&gt;I'd love to hear from people working with large filesystem workflows, backup automation, or language design: does this resonate? Are there domains beyond filesystem operations  where this model could make sense?&lt;/p&gt;

&lt;p&gt;More info: &lt;a href="https://soul-run.com/" rel="noopener noreferrer"&gt;https://soul-run.com/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>programming</category>
      <category>linux</category>
      <category>automation</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
