<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Rahul Agarwal on Medium]]></title>
        <description><![CDATA[Stories by Rahul Agarwal on Medium]]></description>
        <link>https://medium.com/@rahulaga?source=rss-bcd853534ac9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*H6JeBT1uvy90bD_pU5Uiww.jpeg</url>
            <title>Stories by Rahul Agarwal on Medium</title>
            <link>https://medium.com/@rahulaga?source=rss-bcd853534ac9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 01:49:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rahulaga/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Scheme Neural Network and Notes on Structure and Interpretation of Computer Programs]]></title>
            <link>https://rahulaga.medium.com/notes-on-structure-and-interpretation-of-computer-programs-87d3cbbd3b5f?source=rss-bcd853534ac9------2</link>
            <guid isPermaLink="false">https://medium.com/p/87d3cbbd3b5f</guid>
            <category><![CDATA[scheme]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[neural-networks]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Rahul Agarwal]]></dc:creator>
            <pubDate>Mon, 16 Feb 2026 16:44:41 GMT</pubDate>
            <atom:updated>2026-02-16T16:48:31.812Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Structure and Interpretation of Computer Programs" src="https://cdn-images-1.medium.com/max/474/1*U-advP8TT4Pfh8_l3RS6hg.png" /><figcaption>Original book cover</figcaption></figure><p>This is part of a series, <a href="https://rahulaga.medium.com/structure-and-interpretation-of-computer-programs-in-the-age-of-ai-dcbe37718101">see other parts and introduction at Structure and Interpretation of Computer Programs in the Age of AI.</a></p><h3>Simple Neural Network in Scheme</h3><p>For a simple exercise here is a basic perceptron feed forward.</p><pre>; Sigmoid activation function<br>(define (sigmoid x)<br>  (/ 1 (+ 1 (exp (- x)))))<br><br>; Dot product of two lists (vectors)<br>(define (dot-product v1 v2)<br>  (apply + (map * v1 v2)))<br><br>; A single perceptron (neuron)<br>; inputs: list, weights: list, bias: number<br>(define (perceptron inputs weights bias)<br>  (sigmoid (+ (dot-product inputs weights) bias)))<br><br>; Example usage:<br>; Inputs: [0.5, 0.8], Weights: [0.1, 0.4], Bias: -0.2<br>(display (perceptron &#39;(0.5 0.8) &#39;(0.1 0.4) -0.2))</pre><p>Compare to Python.</p><pre>import numpy as np<br><br>def sigmoid(x):<br>    return 1 / (1 + np.exp(-x))<br><br>class Perceptron:<br>    def __init__(self, weights, bias):<br>        self.weights = np.array(weights)<br>        self.bias = bias<br>        <br>    def feedforward(self, inputs):<br>        # np.dot handles the summation of (inputs * weights)<br>        total = np.dot(self.weights, inputs) + self.bias<br>        return sigmoid(total)<br><br># Example usage:<br>inputs = np.array([0.5, 0.8])<br>p = Perceptron([0.1, 0.4], -0.2)<br>print(p.feedforward(inputs))</pre><p>These look fairly identical, but in Scheme, weights are passed as arguments to functions (immutability). In Python, weights are stored as attributes within a class instance (mutability).</p><p>During training we can mutate these easily so following imperative code is easy to understand.</p><pre>class TrainablePerceptron(Perceptron):<br>    def train(self, inputs, target, learning_rate):<br>        inputs = np.array(inputs)<br>        # 1. Forward pass<br>        output = self.feedforward(inputs)<br>        <br>        # 2. Calculate error and gradient<br>        error = output - target<br>        # f&#39;(x) = output * (1 - output)<br>        delta = error * (output * (1 - output))<br>        <br>        # 3. Update weights and bias (In-place mutation)<br>        self.weights -= learning_rate * delta * inputs<br>        self.bias -= learning_rate * delta<br><br># Example:<br>n = TrainablePerceptron([0.5, 0.5], 0.1)<br>for epoch in range(1000): # Iterative loop<br>    n.train([1, 0], 0, 0.1)<br><br>print(f&quot;Prediction after training: {n.feedforward([1, 0])}&quot;)</pre><p>In Scheme this is not so obvious.</p><pre>; Derivative of the sigmoid: f&#39;(x) = f(x) * (1 - f(x))<br>(define (sigmoid-derivative active-output)<br>  (* active-output (- 1 active-output)))<br><br>; Train a single perceptron for one step<br>; Returns a list containing the new (weights bias)<br>(define (train-step weights bias inputs target learning-rate)<br>  (let* ((output (perceptron inputs weights bias))<br>         (error (- output target))<br>         (delta (* error (sigmoid-derivative output))))<br>    (list <br>      ; Update weights: w = w - (lr * delta * input)<br>      (map (lambda (w x) (- w (* learning-rate delta x))) weights inputs)<br>      ; Update bias: b = b - (lr * delta)<br>      (- bias (* learning-rate delta)))))<br><br>; Example: Train on inputs &#39;(1 0) to target 0<br>(define updated-params (train-step &#39;(0.5 0.5) 0.1 &#39;(1 0) 0 0.1))<br>(display updated-params)</pre><p>This may feel like an academic exercise, however, in Python, we rely on the magic of mutability and high-level libraries like numpy. It is efficient and readable, but it hides the flow of data. In Scheme, the immutability forces you to explicitly pass the state (weights and biases) through every transformation. This clarity is exactly what SICP teaches: by removing the black box of hidden state, you gain a deeper understanding of the underlying mathematical transformations.</p><h3>Structure and Interpretation of Computer Programs</h3><p>Here are some very brief notes. The SICP book is not easy to read and I did not even try to do the exercises. DrScheme looks to have become <a href="https://racket-lang.org/">DrRacket</a> now and you can download their interpreter. In the editor for your first line set #lang racket and that will set it Scheme.</p><h3>Chapter 1: Building Abstractions with Procedures</h3><p>SICP starts with the computational processes that transform abstract ideas of data with imperatively defined programs. The core concept is that complex processes can be managed by naming them as <strong>procedures</strong> and <strong>treating them as black boxes</strong>. These can then be composed into more complex abstractions.</p><p>The simplest primitive procedure is + and using Scheme’s prefix notation (+ 1 1) is the expression. These can then be composed into more complex expressions like (+ (* 2 5) (- 10 4)) of any depth. Variables are defined with (define pi 3.141) and can be used in expressions like (* pi (* radius radius)).</p><p>It follows in the same way to define your own procedure like (define (square x) (* x x)) so (square 2) will evalutate to 4 as expected. Procedures can call other procedures and SICP calls this compound procedures. So I can say (define (circle-area r) (* pi (square r))).</p><pre>(define pi 3.141)<br>(define (square x) (* x x))<br>(square 2)<br>(define (circle-area r) (* pi (square r)))<br>(circle-area 5)</pre><p>So far these are good mathematical functions and easy to understand their implementation. Now if we have the square root procedure (define (sqrt x)(...)) how do you actually implement it? Newton’s method is the common way and that is the imperative steps that we must have the interpreter execute. The procedure’s declarative (what is) intent needs this imperative (how to) knowledge. With correct <em>lexical scoping</em> to not expose internal <em>private</em> procedures this is the implementation:</p><pre>(define (sqrt x)<br>  (define (good-enough? guess)<br>    (&lt; (abs (- (square guess) x)) 0.001))<br>  (define (improve guess)<br>    (average guess (/ x guess)))<br>  (define (sqrt-iter guess)<br>    (if (good-enough? guess)<br>      guess<br>      (sqrt-iter (improve guess))))<br>  (sqrt-iter 1.0))</pre><p>The next big idea in this chapter is the Big-O notation referred to as Theta. The <em>order of growth</em> of procedures computational resources of space and time. Finally <em>procedures as arguments, procedures as returned values</em> show function passing and anonymous functions calledlambda are also explained. The Scheme syntax is very elegant compared to other languages.</p><pre>(define (inc n) (+ n 1))<br>(define (identity x) x)<br><br>(define (sum term a next b)<br>  (if (&gt; a b)<br>      0<br>      (+ (term a)<br>         (sum term (next a) next b))))<br>;summation from 1 to 5, increment by 1 apply identity function to each number<br>;identity function is passed for term<br>;inc function is passed for next<br>(sum identity 1 inc 5)<br>;15 = 1+2+3+4+5<br>;identity function is passed for term<br>;inc2 function is passed for next<br>(define (inc2 n) (+ n 2))<br>(sum identity 1 inc2 5)<br>;9 = 1+3+5</pre><h3>Chapter 2: Building Abstractions with Data</h3><p>Here, the focus shifts from <em>doing</em> things to <em>representing</em> things. It introduces Data Abstraction , the idea that you should interact with data through an interface without needing to know how it’s stored internally. The core concept is the <strong>Closure property.</strong></p><blockquote>an operation for combining data objects satisfies the closure property if the results of combining things with that operation can themselves be combined using the same operation</blockquote><p>It shows how to build complex systems (like a symbolic algebra system) by layering abstractions.<strong> Wishful Thinking </strong>teaches you to write code assuming the lower-level data structures you need already exist, then go back and implement them later.</p><p>Starting with rational numbers, defining a <em>pair</em> is the new construct that is needed. So cons to create, car to fetch first and cdr to fetch second. I still remember the <em>cooder </em>pronunciation for cdr.</p><pre>(define x (cons 1 2))<br>(car x)<br>1<br>(cdr x)<br>2</pre><p>This for the basis for rational numbers:</p><pre>;constructor<br>(define (make-rat n d) (cons n d))<br><br>;selectors<br>(define (numer x) (car x))<br>(define (denom x) (cdr x))</pre><p>And also important data structures like lists (sequences):</p><pre>(list 1 2 3 4)<br><br>;equivalent to<br>(cons 1<br>  (cons 2<br>    (cons 3<br>      (cons 4 nil))))</pre><p>Also trees:</p><pre>(cons (list 1 2) (list 3 4))</pre><h3>Chapter 3: Modularity, Objects, and State</h3><p>This chapter introduces <strong>Time</strong> and <strong>State</strong>. It moves away from pure functions to explore how objects change over time. The procedure(withdraw 25) from a bank account for example gives different balance values if called multiple times. This requires a assignment of values and the set! (pronounced set bang) operator does this.</p><blockquote>In contrast to functional programming, programming that makes extensive use of assignment is known as imperative programming.</blockquote><p>The<strong> environment model</strong> explains how variables are looked up in memory. These are referred to as frames with scoping (local/global). In the environment model of evaluation, a procedure is always a pair consisting of some code and a pointer to an environment. For example for multiple bank accounts, each account has its own local environment in its own frame.</p><pre>(define (make-withdraw balance)<br>  (lambda (amount)<br>    (if (&gt;= balance amount)<br>      (begin (set! balance (- balance amount))<br>        balance)<br>      &quot;Insufficient funds&quot;)))<br><br>(define W1 (make-withdraw 100))<br>(define W2 (make-withdraw 100))</pre><p>The data model from Chapter 2 now adds supports for <em>mutators</em>. For the cons pair this is now set-car! and set-cdr!. This leads to the queue data structure example which is a mutable list.</p><p><strong>Concurrency</strong> is the next big topic and the mutex is introduced for synchronization.</p><p>Finally <strong>streams</strong> are described as a clever idea that allows one to use sequence manipulations without incurring the costs of manipulating sequences as lists.</p><h3>Chapter 4: Metalinguistic Abstraction</h3><blockquote>Metalinguistic abstraction — establishing new languages</blockquote><p>The authors show that if a language doesn’t have a feature you want, you can simply <strong>build a new language</strong> that does. The <strong>metacircular evaluator</strong> is a Scheme interpreter <em>using</em> Scheme. The idea that you can build interpreters and evaluators for domain-specific languages (DSLs) is still powerful.</p><h3>Chapter 5: Computing with Register Machines</h3><p>The final chapter shows how these high-level concepts (recursion, memory management, garbage collection) are actually implemented on physical hardware aka register machines.</p><h3>References</h3><ul><li><a href="https://web.mit.edu/6.001/6.037/sicp.pdf">SICP</a> | <a href="https://en.wikipedia.org/wiki/Structure_and_Interpretation_of_Computer_Programs">SICP Wikipedia</a></li><li><a href="https://www.sicpdistilled.com/">SICP Distilled</a></li><li>Different AI tools</li></ul><p>This article is just one chapter in a larger exploration of SICP through a modern lens. Check out the rest of the series:</p><ul><li><strong>Missed the Start?</strong> <a href="https://rahulaga.medium.com/structure-and-interpretation-of-computer-programs-in-the-age-of-ai-dcbe37718101">Read the Series Introduction: SICP in the Age of AI</a></li></ul><p><a href="https://rahulaga.medium.com/structure-and-interpretation-of-computer-programs-in-the-age-of-ai-dcbe37718101">Structure and Interpretation of Computer Programs in the Age of AI</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=87d3cbbd3b5f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Silicon for the Brain — The Hardware of the Agentic Era]]></title>
            <link>https://rahulaga.medium.com/silicon-for-the-brain-the-hardware-of-the-agentic-era-51ba15761251?source=rss-bcd853534ac9------2</link>
            <guid isPermaLink="false">https://medium.com/p/51ba15761251</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[sicp]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[computer-architecture]]></category>
            <dc:creator><![CDATA[Rahul Agarwal]]></dc:creator>
            <pubDate>Sat, 07 Feb 2026 05:46:31 GMT</pubDate>
            <atom:updated>2026-02-07T05:46:31.614Z</atom:updated>
            <content:encoded><![CDATA[<h3>Silicon for the Brain — The Hardware of the Agentic Era</h3><figure><img alt="Silicon for the Brain — The Hardware of the Agentic Era" src="https://cdn-images-1.medium.com/max/1024/1*slhD-j8nSoj87tooF-50Jg.png" /><figcaption>Google Gemini generated image</figcaption></figure><p>This is part of a series, <a href="https://rahulaga.medium.com/structure-and-interpretation-of-computer-programs-in-the-age-of-ai-dcbe37718101">see other parts and introduction at Structure and Interpretation of Computer Programs in the Age of AI.</a></p><p>The final chapter of Structure and Interpretation of Computer Programs (SICP) reveals the implementation of the evaluator on a low-level machine, covering register machines, compilation, and garbage collection. This is the hardware layer abstraction.</p><h3>What Has Not Changed: The Need for Efficiency</h3><p>The fundamental constraints of hardware include registers, memory allocation, and instruction sets and these continue to dictate performance. Understanding that code is compiled down to machine instructions is still relevant.</p><p>Modern GPUs and XPUs have become the Registers of the 21st century. The SICP challenge of minimizing stack depth has evolved into the challenge of minimizing HBM (High Bandwidth Memory) latency. The bottleneck hasn’t changed; it’s just moved from the CPU’s L1 cache to the multi-node interconnect. Synchronization across networks and the overhead of failures in large-scale distributed training remain major hurdles.</p><p>We haven’t escaped the stack; we’ve just scaled it. The recursive subroutines that SICP taught us to manage in local memory are now the blueprint for how we orchestrate context windows across distributed GPU/XPU clusters.</p><h3>What Is Changing: AI-Driven Hardware-Software Co-Design</h3><p>In Chapter 5 of SICP we learn that a register machine’s efficiency is a byproduct of human ingenuity by manually designing data paths and controller sequences. For decades, compilation followed this same hand-crafted philosophy. That era is ending. We are moving from s<em>tatic compilation</em> to <strong>ML-Driven Hardware-Software Co-Design.</strong></p><p>The modern compiler is no longer just a translator, it is an inference engine. Instead of relying on hard-coded rules, AI compilers (like those seen in modern LLVM evolutions) predict optimal instruction sequences.</p><ul><li><strong>The Problem:</strong> This introduces a black-box into the hardware layer.</li><li><strong>The SICP Connection:</strong> We are returning to the <strong>Verification Problem</strong>. If an AI optimizes your register allocation, how do you prove it hasn’t introduced a race condition or a memory leak?</li></ul><p>The Register Machines of the Agentic Era are no longer general-purpose. We are seeing the rise of <strong>AI-Native Silicon</strong> XPU chips where the physical floorplan is optimized by AI to run neural networks. This creates a recursive loop: AI is designing the very hardware it lives on to eliminate the Von Neumann Bottleneck (the latency between memory and processor).</p><h3>What Will Be Profoundly Different: The Fusion of Simulation and Inference</h3><p>The traditional wall between <strong>simulation</strong> (modeling a system) and <strong>inference</strong> (executing a model) is collapsing. In the SICP era, we built static abstractions to manage complexity. In the Agentic Era, the Register Machine is a dynamic, self-optimizing loop.</p><p>We are seeing a move toward <strong>Hardware-Aware AI Hyper-convergence</strong>, driven by three technical shifts:</p><ul><li><strong>The Rise of the Universal IR (MLIR):</strong> We are moving away from monolithic compilers. Frameworks like <strong>MLIR (Multi-Level Intermediate Representation)</strong> allow AI models to communicate directly with heterogeneous hardware. The compiler is no longer a rigid translator; it is an optimization engine that can <em>lower</em> code from high-level graph dialects down to specific hardware intrinsics (like NVIDIA’s Tensor Cores or Groq’s TSP) in real-time.</li><li><strong>Memory Disaggregation via CXL:</strong> The Von Neumann Bottleneck is being attacked at the physical layer. With <strong>CXL (Compute Express Link)</strong>, we are moving toward a memory-first architecture. Future AI agents won’t just manage local registers; they will autonomously orchestrate memory pools across a low-latency fabric, treating petabytes of distributed RAM as a single, unified address space.</li><li><strong>The Feedback Loop of Generative Physical Design:</strong> We are entering the era of <strong>AI-driven EDA (Electronic Design Automation)</strong>. Models are now using reinforcement learning to optimize place and route tasks. by deciding where logic gates live on a 3nm die to minimize wire length and power leakage. The “Silicon for the Brain” is literally designing its own circulatory system to run specific model architectures like Transformers more efficiently than any general-purpose CPU ever could.</li></ul><p>The result is a shift from <strong>deterministic execution</strong> to <strong>predictive orchestration</strong>. The register machines of the future will not just execute instructions; they will predict the most efficient path through a distributed network of XPUs, rewriting their own data paths to meet the constraints of the task at hand.</p><h3>The Strategic Mandate for Technical Leaders</h3><p>We are witnessing the final collapse of the traditional computing stack. In the SICP era, the programmer was the architect of logic. In the Agentic Era, the programmer becomes the <strong>curator of constraints</strong>.</p><p>As hardware and software fuse into a single, AI-designed continuum, the Register Machine hasn’t disappeared, it has simply become autonomous. The efficiency gains we once chased through manual C++ optimization are now being handed to us by self-learning compilers and AI-native silicon.</p><p>If you are leading an engineering organization today, your SICP moment isn’t about learning to write better code; it’s about mastering three new pillars:</p><ul><li><strong>From Optimization to Verification:</strong> Stop hiring for performance tuning in isolation. Start investing in <strong>Formal Verification</strong>. As AI begins to generate black-box binaries optimized for specific XPUs, the ability to mathematically prove that code is safe will be more valuable than the ability to write it.</li><li><strong>Embrace Hardware-Aware Software:</strong> The days of <em>write once, run anywhere</em> are fading. To gain a competitive edge, your software stack must be aware of the underlying silicon. Whether it’s leveraging <strong>CXL (Compute Express Link)</strong> or optimizing for <strong>LPU (Language Processing Unit)</strong> architectures, the bare metal matters again.</li><li><strong>The Rise of the Model-Compiler:</strong> Prepare for a world where the model <em>is</em> the compiler. We are moving toward systems that don’t just execute instructions, but autonomously rewrite their own logic gates to minimize energy consumption and maximize inference speed.</li></ul><p>The “Silicon for the Brain” isn’t just a metaphor, it is a blueprint for a new class of machine that learns how to think by first learning how to build itself.</p><p>This article is just one chapter in a larger exploration of SICP through a modern lens. Check out the rest of the series:</p><ul><li><strong>Missed the Start?</strong> <a href="https://rahulaga.medium.com/structure-and-interpretation-of-computer-programs-in-the-age-of-ai-dcbe37718101">Read the Series Introduction: SICP in the Age of AI</a></li></ul><p><a href="https://rahulaga.medium.com/structure-and-interpretation-of-computer-programs-in-the-age-of-ai-dcbe37718101">Structure and Interpretation of Computer Programs in the Age of AI</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=51ba15761251" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Universal Language — Metalinguistic Abstraction as Prompt Design]]></title>
            <link>https://rahulaga.medium.com/the-universal-language-metalinguistic-abstraction-as-prompt-design-19b5029f477c?source=rss-bcd853534ac9------2</link>
            <guid isPermaLink="false">https://medium.com/p/19b5029f477c</guid>
            <category><![CDATA[prompt-engineering]]></category>
            <category><![CDATA[sicp]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software-architecture]]></category>
            <dc:creator><![CDATA[Rahul Agarwal]]></dc:creator>
            <pubDate>Sat, 31 Jan 2026 02:16:58 GMT</pubDate>
            <atom:updated>2026-02-07T05:47:20.123Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Universal Language — Metalinguistic Abstraction as Prompt Design</h3><figure><img alt="The Universal Language — Metalinguistic Abstraction as Prompt Design" src="https://cdn-images-1.medium.com/max/1024/1*cFlCg4UnAnOmJr_60eCkgQ.png" /><figcaption>Google Gemini generated image</figcaption></figure><p>This is part of a series, <a href="https://rahulaga.medium.com/structure-and-interpretation-of-computer-programs-in-the-age-of-ai-dcbe37718101">see other parts and introduction at Structure and Interpretation of Computer Programs in the Age of AI.</a></p><p>We are currently witnessing the greatest shift in software architecture since the invention of the compiler: <strong>the transition from writing code to designing the languages that write it.</strong> To understand this Metalinguistic Abstraction provides a guide.</p><h3>What Has Not Changed: The Eval-Apply Cycle</h3><p>The heart of any computational system is the eval-apply cycle (from the cover of the book!), where expressions are evaluated and procedures are applied to arguments.</p><p>In an agentic workflow, the model acts as the evaluator. It treats a system prompt as a set of procedures, applying its internal weights to generate a probabilistic apply phase. The classification of expressions handles different types: primitive, special forms (like if and lambda), and combinations. This same logic is applied by AI orchestrators when decomposing a high-level goal into a series of tool calls or sub-agent tasks.</p><h3>What Is Changing: Natural Language as the Ultimate Metalanguage</h3><p>In the Lisp era, we built DSLs by defining formal grammars. Today, we achieve the same metalinguistic control via system prompts by essentially defining a soft-grammar that governs the model’s reasoning engine.</p><p>However, there is a cognitive gap between human and machine metalinguistic competence. Indeed this is no different than for humans as even meticulously crafted laws and contracts are still open to interpretation and need a judicial system.</p><h3>What Will Be Profoundly Different: Deterministic Search to Probabilistic Inference</h3><p>The amb (ambiguous) evaluator represents the pinnacle of <a href="https://en.wikipedia.org/wiki/Symbolic_artificial_intelligence">symbolic AI</a> with a deterministic search that treats logic as a binary tree. In this world, constraints are absolute. In the agentic world, constraints are merely suggestions in a sea of probability.</p><ul><li><strong>amb</strong>explores a tree of possibilities where every branch is either <strong>True</strong> or <strong>False</strong>. If a path violates a require constraint, it is discarded with 100% certainty. The search is exhaustive (within its depth) and guarantees a correct answer if one exists. If amb hits a failure, it rewinds time to the last choice point and tries the next branch. It remembers exactly where it failed and why (the constraint violation).</li><li><strong>Modern AI</strong> are <strong>probabilistic</strong>. When an LLM searches its next token it isn’t looking for a true logical state, instead it predicts the <strong>most likely</strong> next token. It doesn’t know if the final answer will be correct; it only knows that the path it’s taking is statistically probable</li></ul><p>Ultimately, we are no longer just programmers, we are <strong>architects of intention</strong>. By moving from the rigid, deterministic trees of the amb evaluator to the fluid, probabilistic landscapes of AI models, we have traded absolute certainty for a far more powerful cognitive reach. This shift toward metalinguistic abstraction means that our primary task is no longer to micro-manage every branch of a logic tree, but to define the linguistic constraints and conceptual frameworks within which an AI can reason. As the boundary between formal code and natural language continues to dissolve, the art of software design will increasingly rely on our ability to craft grammar that bridges the gap between human intuition and machine inference.</p><h3>Read the Next Chapter in Series</h3><p>This article is just one chapter in a larger exploration of SICP through a modern lens. Check out the rest of the series:</p><ul><li><strong>Next Up</strong></li></ul><p><a href="https://rahulaga.medium.com/silicon-for-the-brain-the-hardware-of-the-agentic-era-51ba15761251">Silicon for the Brain - The Hardware of the Agentic Era</a></p><ul><li><strong>Missed the Start?</strong> <a href="https://rahulaga.medium.com/structure-and-interpretation-of-computer-programs-in-the-age-of-ai-dcbe37718101">Read the Series Introduction: SICP in the Age of AI</a></li></ul><p><a href="https://rahulaga.medium.com/structure-and-interpretation-of-computer-programs-in-the-age-of-ai-dcbe37718101">Structure and Interpretation of Computer Programs in the Age of AI</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=19b5029f477c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Global Environment — Modularity and State in Agentic Ecosystems]]></title>
            <link>https://rahulaga.medium.com/the-global-environment-modularity-and-state-in-agentic-ecosystems-ff46775a9381?source=rss-bcd853534ac9------2</link>
            <guid isPermaLink="false">https://medium.com/p/ff46775a9381</guid>
            <category><![CDATA[distributed-systems]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[sicp]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[Rahul Agarwal]]></dc:creator>
            <pubDate>Sat, 24 Jan 2026 04:42:55 GMT</pubDate>
            <atom:updated>2026-01-31T02:18:36.714Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Global Environment — Modularity and State in Agentic Ecosystems</h3><figure><img alt="The Global Environment — Modularity and State in Agentic Ecosystems" src="https://cdn-images-1.medium.com/max/1024/1*v_3Lj_hz6Hew6-Ro2AhCyg.png" /><figcaption>Google Gemini generated image</figcaption></figure><p>This is part of a series, <a href="https://rahulaga.medium.com/structure-and-interpretation-of-computer-programs-in-the-age-of-ai-dcbe37718101">see other parts and introduction at Structure and Interpretation of Computer Programs in the Age of AI.</a></p><p><strong>An agent is just a thread with higher latency and a tendency to hallucinate.</strong> While the industry obsesses over reasoning benchmarks, the real bottleneck is the oldest architectural problems in the book: <strong>state</strong>, <strong>memory</strong>, and the chaos of <strong>concurrency</strong>.</p><h3>What Has Not Changed: The Complexity of Concurrency</h3><p>In the classic SICP environment model, variables are looked up in a hierarchy of frames. In a modern agentic ecosystem, we have simply traded local memory addresses for distributed context. When you deploy a team of autonomous agents, you aren’t just running prompts; you are managing a distributed system where the variable lookup now spans vector databases, scratchpad memories, and real-time tool outputs.</p><p>Consider the classic bank account assignment problem used to illustrate the dangers of stateful programming.</p><pre>(define (make-withdraw balance)<br>  (lambda (amount)<br>    (if (&gt;= balance amount)<br>      (begin (set! balance (- balance amount))<br>        balance)<br>      &quot;Insufficient funds&quot;)))<br><br>(define W1 (make-withdraw 100))<br>(define W2 (make-withdraw 100))</pre><p>Now, this is the multi-agent orchestration problem.</p><ul><li>The Scenario: Agent A and Agent B both attempt to update a customer’s state based on simultaneous tool outputs.</li><li>The Failure: Without a synchronization primitive or a distributed lock, the result isn’t just a software bug, it’s a hallucinatory race condition. The model attempts to reconcile conflicting states by making things up, leading to a catastrophic break in logic that no system prompt can fix.</li></ul><p>We haven’t outgrown the need for serialized execution or concurrency controls; we’ve simply migrated the battlefield. To build resilient agentic platforms, we must apply the same rigors of <strong>distributed locks</strong> and <strong>idempotent task routing</strong> that have governed high-scale systems for decades. The environment hasn’t disappeared, it has just scaled out.</p><h3>What Is Changing: The Environment Model vs. Agent Memory</h3><p>To scale, we must stop treating agent memory as a monolithic ‘context window’ and start treating it as a <strong>hierarchical environment model</strong>. Just as SICP defines frames for variable lookup, an agentic ecosystem requires a <a href="https://www.ibm.com/think/topics/ai-agent-memory">multi-tiered memory</a> architecture to persist state beyond the prompt.</p><p><strong>Short-term memory</strong>: this is the temporary scratchpad for current task/chat history and similar to the local frame in the environment model.</p><p><strong>Long-term memory</strong>: this is the permanent storage of facts across many sessions and could be considered similar to the global environment.</p><ul><li>Episodic memory stores specific past events and user choices and this is like the history of variable assignments</li><li>Semantic memory holds general facts, concepts, and rules and this is like the procedures that are defined</li><li>Procedural memory stores earned skills and automatic behavior and is like the built-in primitives</li></ul><p>In agentic systems, state has evolved from a static lookup table into a living ledger of task progress and environmental feedback.</p><h3>What Will Be Profoundly Different: Autonomous Event-Driven Systems</h3><p>The Streams concept in SICP which allows for modeling systems without explicit assignment by treating time as a sequence, is the blueprint for modern real-time AI inference.</p><p>An AI agent acting on a stream of data (like a live stock ticker or a fleet of IoT sensors) cannot wait. The agent views the world as an <strong>infinite stream</strong>. Just as SICP uses delay and force to handle data only when needed, modern agentic platforms doesn&#39;t process the entire history of the world; it realizes parts of the stream only when a specific trigger (eg: a webhook or a threshold breach) forces an evaluation. For example, this allows for agents to analyzes clickstream data or financial transactions to block suspicious activities. We can map stream primitives directly onto the Kafka ecosystem to understand modern data flow:</p><ul><li><strong>cons-stream → </strong>The Kafka<strong> Producer</strong>: The cons-stream pairs a value with a promise to provide the rest of the stream. In modern systems, the <strong>Producer</strong> appends an event to a topic, committing it to the global history without requiring immediate action from a consumer.</li><li><strong>stream-car &amp; </strong><strong>stream-cdr → Offsets and Consumption:</strong> Accessing the head of a stream (car) is equivalent to a <strong>Consumer</strong> polling the current offset. Moving to the rest of the stream (cdr) is the act of incrementing that offset to the next sequence number in the log.</li><li><strong>delay and </strong><strong>force → Backpressure and Consumer Lag:</strong> In Kafka, events sit in the broker (<strong>delay</strong>) and are only realized (<strong>force</strong>) when an agent has a trigger to pull and process them</li><li><strong>stream-filter → Kafka Streams:</strong> In the functional world, we filter streams to manage complexity. In agentic workflows, we use <strong>Stream Processing (like KSQL or Flink)</strong> to act as Guardrail Agents, filtering out noise or malicious inputs before they reach the core reasoning model.</li><li>The<strong> Environment Model → KTables (Compacted Topics):</strong> While a stream represents the <em>history</em> of change, we often need the <em>current state</em>. Kafka <strong>Compacted Topics</strong> function exactly like the SICP environment: they collapse a history of assignments into the current mapping of Names to Values.</li></ul><p>The future will see a transition to these autonomous platforms, where the environment is no longer a static piece of memory but a continuous, fluctuating stream of global events.</p><h3>Read the Next Chapter in Series</h3><p>This article is just one chapter in a larger exploration of SICP through a modern lens. Check out the rest of the series:</p><ul><li><strong>Next Up</strong></li></ul><p><a href="https://rahulaga.medium.com/the-universal-language-metalinguistic-abstraction-as-prompt-design-19b5029f477c">The Universal Language - Metalinguistic Abstraction as Prompt Design</a></p><ul><li><strong>Missed the Start?</strong> <a href="https://rahulaga.medium.com/structure-and-interpretation-of-computer-programs-in-the-age-of-ai-dcbe37718101">Read the Series Introduction: SICP in the Age of AI</a></li></ul><p><a href="https://rahulaga.medium.com/structure-and-interpretation-of-computer-programs-in-the-age-of-ai-dcbe37718101">Structure and Interpretation of Computer Programs in the Age of AI</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ff46775a9381" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Symbols vs. Vectors — Data Abstraction in High-Dimensional Spaces]]></title>
            <link>https://rahulaga.medium.com/symbols-vs-vectors-data-abstraction-in-high-dimensional-spaces-696b34362dce?source=rss-bcd853534ac9------2</link>
            <guid isPermaLink="false">https://medium.com/p/696b34362dce</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[sicp]]></category>
            <category><![CDATA[lisp]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Rahul Agarwal]]></dc:creator>
            <pubDate>Sat, 17 Jan 2026 17:02:54 GMT</pubDate>
            <atom:updated>2026-01-24T04:44:50.814Z</atom:updated>
            <content:encoded><![CDATA[<h3>Symbols vs. Vectors — Data Abstraction in High-Dimensional Spaces</h3><figure><img alt="Symbols vs. Vectors — Data Abstraction in High-Dimensional Spaces" src="https://cdn-images-1.medium.com/max/1024/1*hdHew6zOwBGEYVYY6CdRMQ.png" /><figcaption>Google Gemini generated image</figcaption></figure><p>This is part of a series, <a href="https://rahulaga.medium.com/structure-and-interpretation-of-computer-programs-in-the-age-of-ai-dcbe37718101">see other parts and introduction at Structure and Interpretation of Computer Programs in the Age of AI.</a></p><p>Structure and Interpretation of Computer Programs (SICP) defined the <strong>closure property </strong>as the ability to treat compound data structures as single objects. The rigid hierarchies of lists and tables are giving way to <strong>high-dimensional latent spaces</strong> and vector embeddings. As we move from deterministic logic to probabilistic data, we must rethink how the core principles of software structure survive in a world where information is no longer symbolic, but fluid.</p><h3>What Has Not Changed: The Need for Abstraction Barriers</h3><p>The principle of the abstraction barrier (separating representation from interface) remains critical. In SICP, the rational-number arithmetic system is built on top of a representation of numerators and denominators without the higher-level functions needing to know the implementation details.</p><pre>(define (make-rat n d) (cons n d))<br>(define (numer x) (car x))<br>(define (denom x) (cdr x))</pre><p>Similarly, AI agents interact with business systems through standardized protocols like the Model Context Protocol (MCP), which provides a vendor-neutral interface for tools and data. The <em>selectors</em> and <em>constructors</em> of SICP have evolved into HTTP protocols, database schemas, API contracts and typed tool definitions that ensure the agent can reliably interact with external systems.</p><p>Compound data still relies on the closure property, where the result of combining data objects can itself be combined using the same operations. This property allows for the creation of hierarchical structures and knowledge graphs that agents traverse to reason about the world.</p><h3>What Is Changing: Symbolic vs. Vector Representations</h3><p>SICP’s emphasis on symbolic data and pattern matching is being supplemented and in many cases replaced by vector embeddings and semantic search. While Chapter 2 uses symbolic differentiation as a prime example of data manipulation, modern AI uses high-dimensional vector spaces to capture the meaning of data. Instead of matching symbols, systems now use more complex similarity functions (eg: cosine) to find relevant information in unstructured datasets.</p><p>SICP data management highlights literal pattern matching and recursion using Deterministic logic (e.g. (variable? x)). Data is represented as lists, trees, and symbols using rule-based systems algebra. In AI systems this is replaced with mathematical similarity in multidimensional space and Probabilistic logic (e.g., similarity &gt; 0.85). Data is represented as dense numerical vectors (Embeddings) that serve semantic search, RAG and recommendation. Vector search handles semantic intelligence (identifying relevance), while deterministic logic handles the arrangement of that content.</p><pre># The Modern Selector: From car/cdr to Semantic Similarity<br>def get_context(query_vector, space):<br>    return space.search(query_vector, top_k=5)</pre><h3>What Will Be Profoundly Different: Data as the New Design Language</h3><p>We are moving away from hard-coded hierarchies toward ‘Just-in-Time’ data structures where agents use assemble context on the fly, effectively treating a 10TB vector database as a flat, addressable memory space. We are shifting from <strong>schema-first design</strong> to <strong>latent-space discovery</strong>, where the architecture of the system is no longer defined by a human-written DDL, but by the emergent topology of the vector database. The future of data abstraction lies in the ability of AI to autonomously discover patterns in synthetic and real-world data, effectively writing its own data models to optimize for specific engineering goals with minimal human intervention.</p><blockquote>We are moving toward a de-abstraction event where human-readable interfaces vanish</blockquote><p>As AI agents navigate increasingly high-dimensional data, we face a <strong>de-abstraction</strong> event: the removal of human-readable interfaces in favor of raw, machine-optimized data streams that defy manual verification. Will we design data structures to be easy for humans to understand, or for AI to generate correct code against? But then human verification would become even harder as we discussed in the previous part. As AI generates increasingly complex data transformations, formal verification of data correctness (not just code) will become critical.</p><p>The <em>closure property</em> has reached its final form: Multimodality. When text, images, code, audio and video share a unified vector space, we can finally apply Lisp-style list processing to the physical world by treating a video frame as just another element in a symbolic chain.</p><h3>Read the Next Chapter in Series</h3><p>This article is just one chapter in a larger exploration of SICP through a modern lens. Check out the rest of the series:</p><ul><li><strong>Next Up</strong></li></ul><p><a href="https://rahulaga.medium.com/the-global-environment-modularity-and-state-in-agentic-ecosystems-ff46775a9381">The Global Environment - Modularity and State in Agentic Ecosystems</a></p><ul><li><strong>Missed the Start?</strong> <a href="https://rahulaga.medium.com/structure-and-interpretation-of-computer-programs-in-the-age-of-ai-dcbe37718101">Read the Series Introduction: SICP in the Age of AI</a></li></ul><p><a href="https://rahulaga.medium.com/structure-and-interpretation-of-computer-programs-in-the-age-of-ai-dcbe37718101">Structure and Interpretation of Computer Programs in the Age of AI</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=696b34362dce" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Structure and Interpretation of Computer Programs in the Age of AI]]></title>
            <link>https://rahulaga.medium.com/structure-and-interpretation-of-computer-programs-in-the-age-of-ai-dcbe37718101?source=rss-bcd853534ac9------2</link>
            <guid isPermaLink="false">https://medium.com/p/dcbe37718101</guid>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[sicp]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Rahul Agarwal]]></dc:creator>
            <pubDate>Sat, 10 Jan 2026 06:59:42 GMT</pubDate>
            <atom:updated>2026-02-16T16:45:37.361Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Structure and Interpretation of Computer Programs in the Age of AI" src="https://cdn-images-1.medium.com/max/947/1*mB3rv6bBfbTcf_SNzLb3gQ.png" /><figcaption>Google Gemini generated image</figcaption></figure><p>My journey began with BASIC, but my formal introduction to the world of software engineering was with Prof Leong Tze-Yun and CS1101S at the National University of Singapore. It was twenty-five years ago in a cold lecture theatre in the building S17, with <a href="https://web.mit.edu/6.001/6.037/sicp.pdf">Structure and Interpretation of Computer Programs (SICP)</a>. Today, as I watch AI agents effortlessly author the same recursions I once struggled with, those 1980s SICP principles feel more urgent than ever.</p><p>This is an essay series on the fundamental principles in software engineering and how they are transforming with the new AI tools. While some SICP wisdom has become so fundamental it’s invisible, others face unprecedented challenges from AI-driven development. This chapter-by-chapter analysis explores what’s timeless, what’s shifting, and what will be radically different in the future.</p><h3>Reinterpreting the Five Pillars of Structure and Interpretation of Computer Programs (SICP)</h3><h4><a href="https://rahulaga.medium.com/from-newton-to-next-token-the-evolution-of-procedural-abstraction-e1f9d4921b07">Chapter 1: From Newton to Next-Token — The Evolution of Procedural Abstraction</a></h4><p>While the core principles of abstraction remain, the transition from human-authored logic to AI-generated procedures is fundamentally breaking the black-box model we’ve relied on for decades.</p><ul><li><strong>The Core Shift:</strong> Moving from fixed procedural logic to probabilistic next-token prediction.</li><li><strong>Why it matters: </strong>Determinism is no longer the default.</li><li><strong>Key SICP Concept:</strong> Procedural Abstraction.</li><li><a href="https://rahulaga.medium.com/from-newton-to-next-token-the-evolution-of-procedural-abstraction-e1f9d4921b07"><strong>Read the Full Deep-Dive →</strong></a></li></ul><p><a href="https://rahulaga.medium.com/from-newton-to-next-token-the-evolution-of-procedural-abstraction-e1f9d4921b07">From Newton to Next-Token - The Evolution of Procedural Abstraction</a></p><h4><a href="https://rahulaga.medium.com/symbols-vs-vectors-data-abstraction-in-high-dimensional-spaces-696b34362dce">Chapter 2: Symbols vs. Vectors — Data Abstraction in High-Dimensional Spaces</a></h4><p>While SICP taught us to build systems by composing symbols, now we must compose high-dimensional vectors, moving from deterministic lists to probabilistic embeddings.</p><ul><li><strong>The Core Shift:</strong> The transition from discrete symbolic logic to high-dimensional embeddings.</li><li><strong>Why it matters:</strong> Data meaning is now statistical, not literal.</li><li><strong>Key SICP Concept:</strong> Data Abstraction.</li><li><a href="https://rahulaga.medium.com/symbols-vs-vectors-data-abstraction-in-high-dimensional-spaces-696b34362dce"><strong>Read the Full Deep-Dive →</strong></a></li></ul><p><a href="https://rahulaga.medium.com/symbols-vs-vectors-data-abstraction-in-high-dimensional-spaces-696b34362dce">Symbols vs. Vectors - Data Abstraction in High-Dimensional Spaces</a></p><h4><a href="https://rahulaga.medium.com/the-global-environment-modularity-and-state-in-agentic-ecosystems-ff46775a9381">Chapter 3: The Global Environment — Modularity and State in Agentic Ecosystems</a></h4><p>While the industry obsesses over reasoning benchmarks, the real bottleneck isn’t logic, it’s the oldest architectural problems in the book: state, memory, and the chaos of concurrency.</p><ul><li><strong>The Core Shift:</strong> Moving from deterministic local variable state to probabilistic state of autonomous agents.</li><li><strong>Why it matters:</strong> We’ve spent decades perfecting state management in code; now, we have to manage state in a system where the processor (model) has a finite, drifting context window.</li><li><strong>Key SICP Concept:</strong> The Environment Model of Evaluation.</li><li><a href="https://rahulaga.medium.com/the-global-environment-modularity-and-state-in-agentic-ecosystems-ff46775a9381"><strong>Read the Full Deep-Dive →</strong></a></li></ul><p><a href="https://rahulaga.medium.com/the-global-environment-modularity-and-state-in-agentic-ecosystems-ff46775a9381">The Global Environment - Modularity and State in Agentic Ecosystems</a></p><h4><a href="https://rahulaga.medium.com/the-universal-language-metalinguistic-abstraction-as-prompt-design-19b5029f477c">Chapter 4: The Universal Language — Metalinguistic Abstraction as Prompt Design</a></h4><p>The core argument is that we have moved from manual programming to metalinguistic abstraction, where the language we design to solve problems is no longer formal code, but natural language prompts.</p><ul><li><strong>The Core Shift:</strong> Natural language is no longer documentation only, it is the highest level of the stack.</li><li><strong>Why it matters:</strong> In SICP, we built Domain Specific Languages (DSLs) to solve complexity. Today, prompt engineering is actually the design of a non-formal metalinguistic abstraction. We are now programming in natural language abstractions<strong>, </strong>balancing the ambiguity of human intent against the precision of machine execution.</li><li><strong>Key SICP Concept:</strong> Metalinguistic Abstraction / Evaluators.</li><li><a href="https://rahulaga.medium.com/the-universal-language-metalinguistic-abstraction-as-prompt-design-19b5029f477c"><strong>Read the Full Deep-Dive →</strong></a></li></ul><p><a href="https://rahulaga.medium.com/the-universal-language-metalinguistic-abstraction-as-prompt-design-19b5029f477c">The Universal Language - Metalinguistic Abstraction as Prompt Design</a></p><h4><a href="https://rahulaga.medium.com/silicon-for-the-brain-the-hardware-of-the-agentic-era-51ba15761251">Chapter 5: Silicon for the Brain — The Hardware of the Agentic Era</a></h4><p>While the fundamental constraints of computing (memory latency and instruction sets) remain, the methodology for solving them has shifted. We are moving away from manual performance tuning and static compilation toward <strong>AI-driven hardware-software co-design.</strong></p><ul><li><strong>The Core Shift:</strong> From the von Neumann bottleneck to the Inference bottleneck.</li><li><strong>Why it matters:</strong> The final chapter of SICP deals with registering machines and hardware. We are rewriting the relationship between software logic and silicon.</li><li><strong>Key SICP Concept:</strong> Computing with Register Machines.</li><li><a href="https://rahulaga.medium.com/silicon-for-the-brain-the-hardware-of-the-agentic-era-51ba15761251"><strong>Read the Full Deep-Dive →</strong></a></li></ul><p><a href="https://rahulaga.medium.com/silicon-for-the-brain-the-hardware-of-the-agentic-era-51ba15761251">Silicon for the Brain - The Hardware of the Agentic Era</a></p><h4>Bonus: Scheme Neural Network</h4><p>Compare Scheme vs. Python through a Neural Network lens while revisiting SICP’s timeless lessons on data abstraction, state, and modularity.</p><ul><li><a href="https://rahulaga.medium.com/notes-on-structure-and-interpretation-of-computer-programs-87d3cbbd3b5f"><strong>Read the Full Deep-Dive →</strong></a></li></ul><p><a href="https://rahulaga.medium.com/notes-on-structure-and-interpretation-of-computer-programs-87d3cbbd3b5f">Notes on Structure and Interpretation of Computer Programs</a></p><h3>Conclusion</h3><p>The transition from the world of SICP to the agentic world represents a shift from <em>construction</em> to <em>cultivation</em>. In 1980s, the programmer was a bricklayer, meticulously placing every block of logic. Now, the programmer is a strategist, orchestrating intelligence and setting parameters and pruning the growth of non-deterministic models.</p><p>As we advance into 2026, the competitive edge won’t belong to those with the most compute. It will belong to the architects who can wrap agentic systems in rigorous governance, balancing sovereignty, ethics, and regulations against the raw power of non-deterministic models</p><p>SICP remains an essential text, not because it teaches us how to write code in a specific language, but because it teaches us the patterns for solving specific problems and the building of software systems that make use of those patterns. SICP isn’t a history book; it’s a diagnostic tool for complexity. Whether you are recursing through a Scheme list or prompting an agent, the challenge remains: <strong>How do we build reliable systems out of unreliable parts?</strong></p><h3>Join the Discussion</h3><p>This series is more than a retrospective, it is an open inquiry into the future of our craft. As we move into 2026, the winners won’t be those with the most GPUs, but those who best understand how to orchestrate the intelligence they provide.</p><p><strong>Which shift do you find most challenging?</strong></p><ul><li>Are you struggling with the agentic systems?</li><li>Do you miss the absolute certainty of symbolic logic?</li></ul><p><strong>Follow me here on Medium</strong> to get notified as each pillar of SICP is unveiled.</p><p>For real-time updates and more technical discourse on the Agentic era, let’s connect on <a href="https://www.linkedin.com/in/rahulaga/"><strong>LinkedIn</strong></a><strong>.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dcbe37718101" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Newton to Next-Token — The Evolution of Procedural Abstraction]]></title>
            <link>https://rahulaga.medium.com/from-newton-to-next-token-the-evolution-of-procedural-abstraction-e1f9d4921b07?source=rss-bcd853534ac9------2</link>
            <guid isPermaLink="false">https://medium.com/p/e1f9d4921b07</guid>
            <category><![CDATA[sicp]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[functional-programming]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Rahul Agarwal]]></dc:creator>
            <pubDate>Sat, 10 Jan 2026 06:57:42 GMT</pubDate>
            <atom:updated>2026-01-17T17:03:53.728Z</atom:updated>
            <content:encoded><![CDATA[<h3>From Newton to Next-Token — The Evolution of Procedural Abstraction</h3><figure><img alt="From Newton to Next-Token — The Evolution of Procedural Abstraction" src="https://cdn-images-1.medium.com/max/969/1*Qf16hSooG90G6y8JZqgHUw.png" /><figcaption>Google Gemini generated image</figcaption></figure><p>This is part of a series, <a href="https://rahulaga.medium.com/structure-and-interpretation-of-computer-programs-in-the-age-of-ai-dcbe37718101">see other parts and introduction at Structure and Interpretation of Computer Programs in the Age of AI.</a></p><p>Structure and Interpretation of Computer Programs (SICP) taught us that imperative procedures are the ultimate black box. But in the age of next-token predictors, that box has become a ‘black hole.’ As the cost of authoring code hits zero, the Verification Tax has become the most expensive line item in the software lifecycle.</p><h3>What Has Not Changed — The requirement for logical structure</h3><p>The principle that procedures are the primary abstraction mechanism remains foundational. Decomposing problems into subproblems remains the cornerstone of software engineering. Whether a human writes a recursive procedure to calculate a square root using Newton’s method or prompts an AI to do so, the mathematical necessity for an <em>improvement</em> step and a <em>satisfaction</em> check does not change. The <strong>substitution model</strong> of evaluation, which describes how expressions are reduced to values, still governs the underlying execution of the code the AI produces. Every powerful language continues to require three mechanisms: primitive expressions, means of combination, and means of abstraction.</p><p>The simplest primitive procedure is + and using Scheme’s prefix notation (+ 1 1) is the expression. Procedures can call other procedures and SICP calls this compound procedures. So I can say (define (circle-area r) (* pi (square r))). Now if we have the square root procedure (define (sqrt x)(...)) how do you actually implement it? The procedure’s declarative (what is) intent needs this imperative (how to) knowledge.</p><pre>(define (sqrt x)<br>  (define (good-enough? guess)<br>    (&lt; (abs (- (square guess) x)) 0.001))<br>  (define (improve guess)<br>    (average guess (/ x guess)))<br>  (define (sqrt-iter guess)<br>    (if (good-enough? guess)<br>      guess<br>      (sqrt-iter (improve guess))))<br>  (sqrt-iter 1.0))</pre><p>The fundamental evaluation cycle remains consistent: evaluate the sub-expressions of a combination and apply the procedure to the arguments. The values of numerals are still the numbers they name, and the values of built-in operators are still the machine instruction sequences that carry out the operations. Higher-order functions (functions as arguments/return values) are more relevant than ever as they are the backbone of modern API design. The value of black-box abstraction in understanding what a function does without knowing how it works remains essential.</p><h3>What Is Changing — From Authoring to Verification</h3><p>The cognitive load of the engineer is migrating from creation to verification. The paradox of AI-driven development is that while the effort for the <em>authoring</em> phase has collapsed to near-zero, the <em>verification</em> phase has expanded exponentially. We are no longer architects building with bricks; we are forensic investigators analyzing a collaborator that is ‘mostly right’ at scale.</p><p>The implementation of Newton’s method (shown above) exemplifies the declarative-imperative divide. In the past, we authored the improve logic. Now, we must audit it for correctness where a non-deterministic generator ignores the good-enough? threshold.</p><p>This shift demands a higher level of expertise in identifying subtle flaws in seemingly correct logic, such as edge-case failures or security vulnerabilities that a coding model might overlook. The models are also quick to produce compelling looking code where referenced libraries or method calls simply don’t exist. Our declarative intent and the corresponding imperative procedures need validation.</p><h3>What Will Be Profoundly Different — The Rise of Non-Deterministic Generators</h3><p>In the past, procedures were deterministic, given the same input, they produced the same output. Now, AI-powered coding tools act as non-deterministic procedure generators. The Black-Box Abstraction encouraged developers to suppress details. Today, we must explicitly expose details through <em>Explainable ML</em> and <em>Interpretable Models</em> to avoid the catastrophic risks of unverified autonomous decisions.</p><p>This also means verification becomes the primary objective. SICP teaches you to reason about procedures mathematically. Future developers may rely on formal verification and automated testing of AI procedures instead, and given the scale of how quickly code is produced automated verification tools will be needed to aid engineers.</p><p>We are trending toward Vibe Coding, a high-level, intent-based paradigm. But without the rigorous foundation of procedural abstraction, vibe coding is just ‘hope coding.’ The engineer’s value is now found in the gap between the generated ‘vibe’ and the mathematical truth. We are entering an era of Just-in-Time Abstraction. When the underlying procedures are synthesized on-the-fly, the engineer’s primary value shifts from knowing <em>how</em> to implement Newton’s method to knowing <em>why</em> the result is mathematically sound.</p><p>As we move into 2026, our role shifts: the engineer is no longer the primary writer of procedures, but the lead auditor of intent. Our primitive is no longer the line of code, but the constraints we build to keep non-deterministic generators within the bounds of mathematical truth.</p><h3>Read the Next Chapter in Series</h3><p>This article is just one chapter in a larger exploration of SICP through a modern lens. Check out the rest of the series:</p><ul><li><strong>Next Up</strong></li></ul><p><a href="https://rahulaga.medium.com/symbols-vs-vectors-data-abstraction-in-high-dimensional-spaces-696b34362dce">Symbols vs. Vectors - Data Abstraction in High-Dimensional Spaces</a></p><ul><li><a href="https://rahulaga.medium.com/structure-and-interpretation-of-computer-programs-in-the-age-of-ai-dcbe37718101"><strong>Missed the Start?</strong> Read the Series Introduction: SICP in the Age of AI</a></li></ul><p><a href="https://rahulaga.medium.com/structure-and-interpretation-of-computer-programs-in-the-age-of-ai-dcbe37718101">Structure and Interpretation of Computer Programs in the Age of AI</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e1f9d4921b07" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setting up a HTTPS local server with self-signed certificates]]></title>
            <link>https://rahulaga.medium.com/setting-up-a-https-local-server-with-self-signed-certificates-f6f6135a298a?source=rss-bcd853534ac9------2</link>
            <guid isPermaLink="false">https://medium.com/p/f6f6135a298a</guid>
            <category><![CDATA[nginx]]></category>
            <category><![CDATA[self-signed-certificate]]></category>
            <dc:creator><![CDATA[Rahul Agarwal]]></dc:creator>
            <pubDate>Fri, 12 Dec 2025 18:57:23 GMT</pubDate>
            <atom:updated>2026-01-05T21:09:06.954Z</atom:updated>
            <content:encoded><![CDATA[<p>Yes this is a very old topic, and yet my bots are not able to provide a succinct explanation and setup steps. Here are my notes to setup Nginx.</p><h3>Simple Certificate setup</h3><p>At its simplest, during a HTTPS connection negotiation the server presents its public certificate which is signed by a Certificate Authority (CA). The client only sees the public certificates for the server and CA but to set this up we need to start with creating the private keys (which will remain private). To make the server certificate valid for multiple domains/IPs we also add Subject Alternate Names (SAN). I see this as drawn in this image.</p><figure><img alt="Server cert signed by CA and chained" src="https://cdn-images-1.medium.com/max/560/1*TlTa8IfkN6sSqSBwl_rbRg.png" /><figcaption>Server cert signed by CA and chained</figcaption></figure><p>Creating these needs openssl and following is a script.</p><pre>#!/bin/bash<br><br>set -e<br><br>CERT_DIR=&quot;./certs&quot;<br>mkdir -p &quot;$CERT_DIR&quot;<br>cd &quot;$CERT_DIR&quot;<br><br>echo &quot;Step 1: Generating CA private key...&quot;<br>openssl genrsa -out ca.key 4096<br><br>echo &quot;Step 2: Generating CA certificate...&quot;<br>openssl req -new -x509 -days 365 -key ca.key -out ca.crt \<br>    -subj &quot;/C=US/ST=CA/L=San Francisco/O=HTTPS POC/OU=IT Department/CN=HTTPS POC CA&quot;<br><br>echo &quot;Step 3: Generating server private key...&quot;<br>openssl genrsa -out server.key 2048<br><br>echo &quot;Step 4: Creating OpenSSL extension config with SAN...&quot;<br>cat &gt; server-ext.conf &lt;&lt;EOF<br>[v3_req]<br>basicConstraints = CA:FALSE<br>keyUsage = nonRepudiation, digitalSignature, keyEncipherment<br>subjectAltName = @alt_names<br><br>[alt_names]<br>DNS.1 = localhost<br>DNS.2 = web<br>IP.1 = 10.0.0.10<br>EOF<br><br>echo &quot;Step 5: Generating server certificate signing request...&quot;<br>openssl req -new -key server.key -out server.csr \<br>    -subj &quot;/C=US/ST=CA/L=San Francisco/O=HTTPS POC/OU=IT Department/CN=localhost&quot;<br><br>echo &quot;Step 6: Signing server certificate with CA (including SAN)...&quot;<br>openssl x509 -req -in server.csr -CA ca.crt -CAkey ca.key -CAcreateserial \<br>    -out server.crt -days 365 -extensions v3_req -extfile server-ext.conf<br><br>echo &quot;Step 7: Creating certificate chain file...&quot;<br>cat server.crt ca.crt &gt; server-chain.crt<br><br># Clean up temporary files<br>rm -f server.csr server-ext.conf<br><br># Set appropriate permissions<br>chmod 600 server.key ca.key<br>chmod 644 server.crt ca.crt server-chain.crt</pre><p>Now we can setup the HTTPS server. I am using Nginx.</p><h3>Server setup</h3><p>In the server section of your nginx.conf following directives are needed:</p><pre>    listen 8443 ssl;<br>    server_name localhost;<br><br>    # Full certificate chain including CA certificate<br>    ssl_certificate /etc/nginx/certs/server-chain.crt;<br>    ssl_certificate_key /etc/nginx/certs/server.key;<br>    ssl_trusted_certificate /etc/nginx/certs/ca.crt;<br><br>    ssl_protocols TLSv1.2 TLSv1.3;<br>    ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384;<br>    ssl_prefer_server_ciphers on;</pre><p>The server-chain will now be presented to the client.</p><h3>Validation</h3><p>In your browser you should now be able to see the certificate chain.</p><figure><img alt="Server cert signed by CA" src="https://cdn-images-1.medium.com/max/536/1*R4v0PvHFCh0GTpeHJaIZEg.png" /><figcaption>Server cert signed by CA</figcaption></figure><h3>Advanced Server cert with Intermediate CA</h3><p>For a more advanced case you can have Root CA → Intermediate CA → Server cert. The Root signs the Intermediate and Intermediate CA signs your Server. This can be visualized as follows.</p><figure><img alt="Root CA -&gt; Intermediate CA -&gt; Server chain" src="https://cdn-images-1.medium.com/max/810/1*5c2jVENft8M47WNbyvV02A.png" /><figcaption>Root CA -&gt; Intermediate CA -&gt; Server chain</figcaption></figure><p>Following script will generate this:</p><pre>#!/bin/bash<br><br>set -e<br><br>CERT_DIR=&quot;./certs&quot;<br>mkdir -p &quot;$CERT_DIR&quot;<br>cd &quot;$CERT_DIR&quot;<br><br>echo &quot;Step 1: Generating Root CA private key...&quot;<br>openssl genrsa -out ca.key 4096<br><br>echo &quot;Step 2: Generating Root CA certificate...&quot;<br>openssl req -new -x509 -days 3650 -key ca.key -out ca.crt \<br>    -subj &quot;/C=US/ST=CA/L=San Francisco/O=HTTPS POC/OU=IT Department/CN=HTTPS POC Root CA&quot;<br><br>echo &quot;Step 3: Generating Intermediate CA private key...&quot;<br>openssl genrsa -out intermediate.key 4096<br><br>echo &quot;Step 4: Creating OpenSSL extension config for Intermediate CA...&quot;<br>cat &gt; intermediate-ext.conf &lt;&lt;EOF<br>[v3_ca]<br>basicConstraints = CA:TRUE<br>keyUsage = cRLSign, keyCertSign<br>EOF<br><br>echo &quot;Step 5: Generating Intermediate CA certificate signing request...&quot;<br>openssl req -new -key intermediate.key -out intermediate.csr \<br>    -subj &quot;/C=US/ST=CA/L=San Francisco/O=HTTPS POC/OU=IT Department/CN=HTTPS POC Intermediate CA&quot;<br><br>echo &quot;Step 6: Signing Intermediate CA certificate with Root CA...&quot;<br>openssl x509 -req -in intermediate.csr -CA ca.crt -CAkey ca.key -CAcreateserial \<br>    -out intermediate.crt -days 1825 -extensions v3_ca -extfile intermediate-ext.conf<br><br>echo &quot;Step 7: Generating server private key...&quot;<br>openssl genrsa -out server.key 2048<br><br>echo &quot;Step 8: Creating OpenSSL extension config with SAN for server certificate...&quot;<br>cat &gt; server-ext.conf &lt;&lt;EOF<br>[v3_req]<br>basicConstraints = CA:FALSE<br>keyUsage = nonRepudiation, digitalSignature, keyEncipherment<br>subjectAltName = @alt_names<br><br>[alt_names]<br>DNS.1 = localhost<br>DNS.2 = web<br>IP.1 = 10.0.0.10<br>EOF<br><br>echo &quot;Step 9: Generating server certificate signing request...&quot;<br>openssl req -new -key server.key -out server.csr \<br>    -subj &quot;/C=US/ST=CA/L=San Francisco/O=HTTPS POC/OU=IT Department/CN=localhost&quot;<br><br>echo &quot;Step 10: Signing server certificate with Intermediate CA (including SAN)...&quot;<br>openssl x509 -req -in server.csr -CA intermediate.crt -CAkey intermediate.key -CAcreateserial \<br>    -out server.crt -days 365 -extensions v3_req -extfile server-ext.conf<br><br>echo &quot;Step 11: Creating certificate chain file (server -&gt; intermediate -&gt; root)...&quot;<br>cat server.crt intermediate.crt ca.crt &gt; server-chain.crt<br><br># Clean up temporary files<br>rm -f server.csr server-ext.conf<br>rm -f intermediate.csr intermediate-ext.conf<br><br># Set appropriate permissions<br>chmod 600 server.key ca.key intermediate.key<br>chmod 644 server.crt ca.crt intermediate.crt server-chain.crt</pre><p>Now your certificate should show up as follows:</p><figure><img alt="Server cert signed by Intermediate" src="https://cdn-images-1.medium.com/max/540/1*WQeG4vVFjzjY2hk-HAk-cw.png" /><figcaption>Server cert signed by Intermediate</figcaption></figure><figure><img alt="Cert chain" src="https://cdn-images-1.medium.com/max/540/1*4q6thlYMpWHWzX4he8VTng.png" /><figcaption>Cert chain</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f6f6135a298a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Envoy as a HTTP forward proxy]]></title>
            <link>https://rahulaga.medium.com/envoy-as-a-http-forward-proxy-c5bc0f432334?source=rss-bcd853534ac9------2</link>
            <guid isPermaLink="false">https://medium.com/p/c5bc0f432334</guid>
            <category><![CDATA[envoy-proxy]]></category>
            <dc:creator><![CDATA[Rahul Agarwal]]></dc:creator>
            <pubDate>Fri, 27 Jun 2025 00:55:12 GMT</pubDate>
            <atom:updated>2025-06-27T16:31:28.130Z</atom:updated>
            <content:encoded><![CDATA[<p>Some notes on how to setup Envoy as a HTTP forward proxy.</p><blockquote>A forward proxy is a server that acts as an intermediary between a client (like your computer) and the internet. It forwards client requests to external resources and then relays the responses back to the client.</blockquote><pre>[Client] ---&gt; [Forward Proxy] ---&gt; [Internet/Server]<br>     ^                                    |<br>     |&lt;------------ Response -------------|</pre><ul><li>Client — will use curl</li><li>Forward Proxy — will use Envoy. Note that since I have everything local, running in docker does not work since docker container cannot connect back outside to localhost. So running it directly on localhost</li><li>Server — using an echo server</li></ul><h3>Envoy setup</h3><p>Install and run envoy locally. See <a href="https://www.envoyproxy.io/docs/envoy/latest/start/quick-start/run-envoy">their docs</a> for your platform. For me:</p><pre>brew install envoy</pre><p>Then you need the config file. There are two main sections to understand.</p><ul><li>clusters — these are the outgoing or upstream connections</li><li>listeners — these are the incoming or downstream connections</li></ul><p>Here is a simple config:</p><pre>static_resources:<br>  clusters:<br>    - name: dynamic_forward_proxy_cluster<br>      connect_timeout: 2s<br>      dns_lookup_family: ALL<br>      lb_policy: CLUSTER_PROVIDED<br>      cluster_type:<br>        name: envoy.clusters.dynamic_forward_proxy<br>        typed_config:<br>          &#39;@type&#39;: type.googleapis.com/envoy.extensions.clusters.dynamic_forward_proxy.v3.ClusterConfig<br>          allow_coalesced_connections: true<br>          dns_cache_config:<br>            name: dynamic_forward_proxy_cache_config<br>            dns_lookup_family: ALL<br>  listeners:<br>    - name: dynamic_forward_proxy<br>      filter_chains:<br>        - filters:<br>            - name: envoy.filters.network.http_connection_manager<br>              typed_config:<br>                &#39;@type&#39;: type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager<br>                codec_type: AUTO<br>                access_log:<br>                 - name: envoy.access_loggers.stdout<br>                   typed_config:<br>                     &quot;@type&quot;: type.googleapis.com/envoy.extensions.access_loggers.stream.v3.StdoutAccessLog<br>                http_filters:<br>                  - name: envoy.filters.http.dynamic_forward_proxy<br>                    typed_config:<br>                      &#39;@type&#39;: type.googleapis.com/envoy.extensions.filters.http.dynamic_forward_proxy.v3.FilterConfig<br>                      dns_cache_config:<br>                        name: dynamic_forward_proxy_cache_config<br>                        dns_lookup_family: ALL<br>                  - name: envoy.filters.http.router<br>                    typed_config:<br>                      &#39;@type&#39;: type.googleapis.com/envoy.extensions.filters.http.router.v3.Router<br>                http2_protocol_options:<br>                  allow_connect: true<br>                route_config:<br>                  name: local_route<br>                  virtual_hosts:<br>                    - name: local_service<br>                      domains:<br>                        - &#39;*&#39;<br>                      routes:<br>                        - match:<br>                            prefix: /<br>                          route:<br>                            cluster: dynamic_forward_proxy_cluster<br>                        - match:<br>                            connect_matcher: {}<br>                          route:<br>                            cluster: dynamic_forward_proxy_cluster<br>                            upgrade_configs:<br>                              - upgrade_type: CONNECT<br>                                connect_config: {}<br>                stat_prefix: dynamic_forward_proxy<br>      address:<br>        socket_address:<br>          address: 0.0.0.0<br>          port_value: 10000<br>      traffic_direction: OUTBOUND</pre><p>Then start the proxy with this file:</p><pre>envoy -c envoy.yaml --component-log-level router:debug<br>... this will run and show logs<br>ctrl+c to exit</pre><p>The listener is now <a href="http://localhost:10000/">http://localhost:10000</a> and it would proxy to your server.</p><h3>Try it out</h3><p>Run the echo server (or this can be your real server). This will now be available as http://localhost:8888</p><pre>docker run --rm -p 8888:8080 jmalloc/echo-server</pre><p>Using curl the -x option lets you provide the proxy to use.</p><pre>curl -v -x http://localhost:10000 http://localhost:8888<br>* Host localhost:10000 was resolved.<br>* IPv4: 127.0.0.1<br>* Trying 127.0.0.1:10000...<br>* Connected to localhost (127.0.0.1) port 10000<br>&gt; GET http://localhost:8888/ HTTP/1.1<br>&gt; Host: localhost:8888<br>&gt; User-Agent: curl/8.7.1<br>&gt; Accept: */*<br>&gt; Proxy-Connection: Keep-Alive<br>&gt; <br>* Request completely sent off<br>&lt; HTTP/1.1 200 OK<br>&lt; content-type: text/plain<br>&lt; date: Thu, 25 Jun 2025 22:35:29 GMT<br>&lt; content-length: 255<br>&lt; x-envoy-upstream-service-time: 1<br>&lt; server: envoy<br>&lt; <br>Request served by e3911a45123<br><br>GET / HTTP/1.1<br><br>Host: localhost:8888<br>Accept: */*<br>User-Agent: curl/8.7.1<br>X-Envoy-Expected-Rq-Timeout-Ms: 15000<br>X-Forwarded-Proto: http<br>X-Request-Id: 37c40c51-41f8-4ea4-8938-4cac8d208664</pre><p>You should see log entries in your different terminals.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c5bc0f432334" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Art of Persuasive Storytelling]]></title>
            <link>https://rahulaga.medium.com/the-art-of-persuasive-storytelling-7aea0e3d4912?source=rss-bcd853534ac9------2</link>
            <guid isPermaLink="false">https://medium.com/p/7aea0e3d4912</guid>
            <category><![CDATA[effective-communication]]></category>
            <category><![CDATA[storytelling]]></category>
            <dc:creator><![CDATA[Rahul Agarwal]]></dc:creator>
            <pubDate>Wed, 15 May 2024 01:48:45 GMT</pubDate>
            <atom:updated>2024-05-15T01:48:45.081Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Diego Rivera murals at the National Palace in Mexico City" src="https://cdn-images-1.medium.com/max/1024/1*YIyvB_VfZcTZKYFBnLMT_g.jpeg" /><figcaption>Diego Rivera murals at the National Palace in Mexico City</figcaption></figure><h3>What is Storytelling?</h3><p>Compelling narratives are important in communicating one’s position. Personally, for me, how can I best communicate my point of view on technical designs and strategy to other engineers and executives? Hollywood and TV shows sounds obvious. However successful politicians, companies and social media influencers are also engaging in it. It is all around us!</p><p>For example, as described in this <a href="https://freakonomics.com/podcast/why-are-stories-stickier-than-statistics-nsq-ep-10/">NSQ podcast</a> most individuals, regardless of religious affiliation know the story of Moses and Noah, but even the most devout followers cannot recount all the 10 Commandments.</p><p>Another example that comes to mind is about “death panels” when Obamacare was in the works. It evokes emotion, and even though a complete lie, it is nevertheless something that I still remember. Politicians generally present stories of catastrophic outcomes if their position is not adopted and they are also more open to <em>alternate facts</em>.</p><p>Technology is no exception, for example, the <a href="https://en.wikipedia.org/wiki/Year_2000_problem">Y2K stories</a> of imminent apocalypse and more recently the AI Armageddon. I like this summary I generated based on various prompts:</p><blockquote>Storytelling is the portrayal of real or fictional events through narrative, often incorporating improvisation, theatrics, or embellishment. It serves multiple purposes, including entertainment, education, cultural preservation, and moral instruction. Key elements such as plot, characters, and narrative point of view are integral to storytelling. It takes various forms, from oral traditions to techniques utilized across different media platforms. Culturally, storytelling is significant as it reflects the unique narratives and traditions of each society, fostering a sense of identity and shared experience among its people.</blockquote><figure><img alt="Visual portrayal of historically accurate and culturally significant events from the National Palace in Mexico City" src="https://cdn-images-1.medium.com/max/1024/1*_C0_Ioi4y4-oWyVvsUlKZQ.jpeg" /><figcaption>Visual portrayal of historically accurate and culturally significant events from the National Palace in Mexico City</figcaption></figure><p>For example, <a href="https://en.wikipedia.org/wiki/Diego_Rivera">Diego Rivera’s</a> murals exemplify storytelling in the visual form. Taking cue from the above summary:</p><ul><li><strong>Portrayal of Real or Fictional Events through Narrative:</strong> Rivera’s murals depict historical and cultural events, often blending real-life figures and fictional elements to convey a narrative. For example, his murals chronicle the history of Mexico, from ancient civilizations to the Mexican Revolution, through a series of interconnected scenes.</li><li><strong>Incorporation of Improvisation, Theatrics, or Embellishment:</strong> Rivera’s style often includes dramatic compositions, vibrant colors, and exaggerated proportions, enhancing the narrative impact of his murals. He sometimes incorporates surreal or fantastical elements to emphasize certain themes or ideas. His use of symbolism and allegory adds depth to the narrative, much like the layers of meaning found in written stories. For example, I liked how Cortez (the Spanish conquistador and antagonist), is depicted as suffering from Greed and is shown as a sickly man.</li></ul><figure><img alt="Cortez afflicted with Greed" src="https://cdn-images-1.medium.com/max/360/1*Szjo-Dffzkafq19W5vS-3w.jpeg" /><figcaption>Cortez afflicted with Greed</figcaption></figure><ul><li><strong>Multiple Purposes — Entertainment, Education, Cultural Preservation, Moral Instruction:</strong> Rivera’s murals serve various purposes. They entertain viewers with their visually captivating scenes and storytelling techniques. They also educate audiences about historical events, cultural traditions, and social issues. Additionally, they preserve and celebrate Mexican culture and heritage while conveying moral messages about social justice and the struggles of the working class.</li><li><strong>Key Elements — Plot, Characters, Narrative Point of View:</strong> Rivera’s murals feature complex narratives with identifiable plots, characters, and narrative perspectives. He often includes a diverse cast of historical figures, workers, peasants, and indigenous peoples to represent different facets of Mexican society and its struggles.</li><li><strong>Cultural Significance — Reflects Unique Narratives and Traditions of Society:</strong> Rivera’s murals are deeply rooted in Mexican culture and history, reflecting the country’s unique narratives and traditions. They celebrate indigenous heritage, depict Mexican revolutionary heroes, and highlight the struggles of the working class, contributing to a sense of national identity and shared experience among Mexicans.</li></ul><p>If you are in Mexico City, do visit the National Palace and join the free guided tours that provide an excellent perspective.</p><h3>The Neuroscience</h3><p>Now that we understand storytelling, what narratives are more likely to be successful? What about the science for stories that stick? This brings us to neuroscience. The brain has multiple networks, each serving some specific purpose. The <a href="https://en.wikipedia.org/wiki/Large-scale_brain_network">scientific names</a> are not important for this discussion and essentially the brain has several specialized networks that work together to allow us to think, perceive the world, focus our attention, and regulate our emotions. One core network allows our minds to wander and daydream when we’re not focused on something specific. Another network kicks in when we need to concentrate and make decisions to accomplish a task or goal. A third network acts like a control tower, determining if we should be focused inwardly on our thoughts or outwardly on the world around us. Separate networks process what we see, hear, and feel through our senses and coordinate our movements. Yet, other networks handle language, attention, and our emotional life like motivation and memory. All these specialized brain networks are constantly interacting and synchronizing their activity in complex ways to produce our rich mental experience and behavior in any given moment.</p><p>Engaging stories have the ability of activating these networks in our brains. Narratives that resonate personally prompt our minds to drift and connect with our own lives. Vivid descriptions stimulate the sensory processing areas, immersing us in the tale. Emotional narratives trigger our feelings and anticipation centers, while well-developed characters invoke empathy and perspective-taking. The more a story taps into these diverse brain networks — firing up our imagination, senses, emotions, and social understanding — the more captivating and memorable it becomes. Our brains excel at knitting together information from different regions, transforming mere words into vibrant, enduring mental landscapes.</p><h3>Story Structure</h3><p>So, to create such engaging outcomes, there are different <a href="https://en.wikipedia.org/wiki/Story_structure">structures of stories</a>. In my context, I am thinking about a technical presentation, and the recommended approach is to compose a story with a beginning, middle and end.</p><ul><li>Beginning: Frame the situation</li><li>Middle: Get an emotional reaction</li><li>End: Resolution and learning</li></ul><h4>Practical Strategies</h4><ul><li><strong>Understanding Your Audience:</strong> Before you can craft a compelling narrative, you must understand your audience. Who are they? What are their interests, pain points, and aspirations? Whether you’re addressing one person or one hundred, take the time to learn about them — their backgrounds, their preferences, and what motivates them.</li><li><strong>The Origin Story:</strong> Every great tale has an origin, a spark that ignited the journey. Where did your idea come from? Was it born from personal experience, a chance encounter, or a burning desire to solve a problem? Share this origin story with your audience, for it lends authenticity and depth to your narrative.</li><li><strong>Balancing Story and Data:</strong> While storytelling is powerful, it must be balanced with data and facts. Think of it as a delicate dance — too much data, and you risk losing your audience’s attention; too little, and your story lacks credibility. Weave your data seamlessly into the narrative, using it to support and reinforce your key points.</li><li><strong>The Art of Simplicity:</strong> Remember, the human mind can only hold three to seven concepts at a time. Respect your audience’s attention span by keeping your narrative focused and concise. Use analogies, patterns, and familiar concepts to encode information in a way that’s easy to grasp and remember. After all, even the most action-packed movies share a common structure — a hero, a villain, and a journey.</li></ul><p>Finally, remember that you are the storyteller, the guide on this journey. Embrace your role with confidence, enthusiasm, and a genuine smile. Your passion and energy will be contagious, drawing your audience deeper into the narrative. Teach them something new, something unexpected, and leave them inspired and empowered.</p><p>I hope I have been able to craft a compelling narrative about storytelling! We are hardwired to remember stories far better than dry statistics. From ancient cave paintings to modern-day blockbusters, storytelling has been the universal language that transcends cultures and generations.</p><p>If these topics interest you then reach out to me and I will appreciate any feedback. Please refer to <a href="https://www.linkedin.com/in/rahulaga/">LinkedIn</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7aea0e3d4912" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>