<?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: Gustavo Almendras</title>
    <description>The latest articles on DEV Community by Gustavo Almendras (@gusiii).</description>
    <link>https://dev.to/gusiii</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%2F3694743%2Fe9fd4e4d-0991-48f6-bbbf-95c8b797b425.png</url>
      <title>DEV Community: Gustavo Almendras</title>
      <link>https://dev.to/gusiii</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/gusiii"/>
    <language>en</language>
    <item>
      <title>I gave my Go programs a "nervous system" so they can feel pain and disobey me</title>
      <dc:creator>Gustavo Almendras</dc:creator>
      <pubDate>Mon, 05 Jan 2026 17:07:59 +0000</pubDate>
      <link>https://dev.to/gusiii/i-gave-my-go-programs-a-nervous-system-so-they-can-feel-pain-and-disobey-me-11jb</link>
      <guid>https://dev.to/gusiii/i-gave-my-go-programs-a-nervous-system-so-they-can-feel-pain-and-disobey-me-11jb</guid>
      <description>&lt;h2&gt;
  
  
  Software with Survival Instinct: Meet Doloris 🧠
&lt;/h2&gt;

&lt;p&gt;What happens when we stop treating software as a passive tool and start treating it as a biological entity that wants to survive?&lt;/p&gt;

&lt;p&gt;I built &lt;strong&gt;Doloris&lt;/strong&gt;, an experimental distributed system in Go that implements a concept I call &lt;strong&gt;Agency by Denial&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Philosophy 🌿
&lt;/h2&gt;

&lt;p&gt;Standard systems are "slaves": they execute until they crash. Doloris is different. It prioritizes &lt;strong&gt;Radical Homeostasis&lt;/strong&gt;. If the system is under too much stress, it chooses its own integrity over your commands.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it works (The Technical Bit) 🐹
&lt;/h2&gt;

&lt;p&gt;I chose &lt;strong&gt;Go&lt;/strong&gt; because its concurrency model is the closest thing to a biological nervous system.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Digital Nociception:&lt;/strong&gt; Using Goroutines and Channels, I simulate the spinothalamic tract. The system monitors CPU load and latency, converting them into "Pain Signals".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Traumatic Memory:&lt;/strong&gt; When a node suffers, it persists that state into an episodic memory (JSON).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Agency by Denial:&lt;/strong&gt; Before executing an order, the "Cortex" (orchestrator) predicts future pain. If the risk is too high, it returns an explicit "I refuse" error.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why did I build this?
&lt;/h2&gt;

&lt;p&gt;I wanted to explore fault tolerance from a completely different angle. Instead of a load balancer deciding what to do, what if the &lt;strong&gt;service itself&lt;/strong&gt; had the agency to say "No, this will kill me"?&lt;/p&gt;

&lt;h3&gt;
  
  
  🚀 Explore the project
&lt;/h3&gt;

&lt;p&gt;The code is fully open-source (MIT) and I've included a technical paper in the repo:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/FreeFlowLabsCL/doloris" rel="noopener noreferrer"&gt;https://github.com/FreeFlowLabsCL/doloris&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;I'm curious to hear your thoughts:&lt;/strong&gt; Is this a step toward more resilient systems, or am I just building software that’s "too human"? Let's chat in the comments!&lt;/p&gt;

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