<?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 Chimaraoke Samson on Medium]]></title>
        <description><![CDATA[Stories by Chimaraoke Samson on Medium]]></description>
        <link>https://medium.com/@chimaraokesamson?source=rss-7f672627f069------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*UhxTQ7UcPRw3FNyq</url>
            <title>Stories by Chimaraoke Samson on Medium</title>
            <link>https://medium.com/@chimaraokesamson?source=rss-7f672627f069------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 02:07:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@chimaraokesamson/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[I Tried to Break Information Theory]]></title>
            <link>https://medium.com/@chimaraokesamson/i-tried-to-break-information-theory-d7612259aad3?source=rss-7f672627f069------2</link>
            <guid isPermaLink="false">https://medium.com/p/d7612259aad3</guid>
            <category><![CDATA[depin-projects]]></category>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[information-technology]]></category>
            <category><![CDATA[theory]]></category>
            <dc:creator><![CDATA[Chimaraoke Samson]]></dc:creator>
            <pubDate>Fri, 01 May 2026 06:02:52 GMT</pubDate>
            <atom:updated>2026-05-01T06:06:09.833Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>I Tried to Break Information Theory</blockquote><h3>It Started With a Blockchain Problem</h3><p>It started, as many rabbit holes do, with a completely unrelated problem.<br>I was researching the Internet Computer Protocol (ICP ) a blockchain project that promises to run decentralized applications directly on-chain. No AWS. No Google Cloud. Just a distributed network of nodes humming along, theoretically free from any central authority’s grip.<br>Sounds great. Very Web3. Very rebellious.<br>Then I looked at where the nodes actually live.<br>Data centres. Certified ones. Run by approved operators.</p><blockquote>So ICP is decentralized in the same way a cooperative apartment building is &#39;independently owned&#39; technically true, but the landlord still has the master key.</blockquote><p>Here is the real concern: if a government decides to shut down 30% of those data centres which is not a fantasy, it has happened to other networks , what happens to censorship resistance? ICP’s data may survive (thanks to replication), but the ability to access or serve that data becomes a very different story. The nodes go dark. The network degrades. And if pressure reaches ICP’s own foundation? That’s a centralisation point dressed in decentralised clothing.<br>This is not a new problem. The blockchain space has been wrestling with it for years. Which is why Decentralised Physical Infrastructure Networks, DePIN exist. The idea is elegant: instead of relying on data centres, let ordinary people contribute their devices. Phones. Laptops. Routers. The infrastructure becomes as distributed as the people who own it.<br>There are already projects doing this for storage. BTFS, Swarm, Crust Network. All noble attempts. All running into the same three walls.</p><h3>The Bandwidth-Battery-Storage Triangle of Doom</h3><p>Mobile DePIN sounds wonderful until you think about what it actually demands from a phone.<br>Consider a 1GB file. If your phone is participating in a decentralised storage network and you are responsible for hosting that file, congratulations, you have just donated 1GB of your storage, some portion of your bandwidth every time someone requests it, and a non-trivial amount of battery life to encrypt, serve, and verify it. Do this at scale across thousands of files and you now have a device that is simultaneously a phone and a small, overworked server that will be dead by 2pm.<br>The bandwidth problem is asymmetric by design. Mobile connections are optimised for downloading, not uploading. Your 4G connection might pull data at 50Mbps but push it at 10Mbps if you are lucky. Distributed storage networks need uploads. The physics of mobile infrastructure are working against you.<br>Now, torrents had a clever answer to the storage problem. Instead of making one node hold an entire file, BitTorrent chunks files into pieces and distributes them. Combined with Reed-Solomon erasure coding. A technique originally designed for NASA deep-space communications, which is a sentence that never gets old. You can reconstruct a complete file even if a large fraction of the pieces are missing. Elegant. Proven. Widely deployed.</p><blockquote>Reed-Solomon was designed so NASA could receive data from Voyager across billions of kilometres of space. It works fine for your pirated movies too.</blockquote><p>But chunking only solves the storage distribution problem. It does not reduce the total size of the file. You are still storing 1GB of data just spread across many devices rather than concentrated in one.<br>Which brought me to the obvious question: what if we made the file smaller first?</p><h3>The Compression Dream</h3><p>The goal I set myself was, in retrospect, mathematically illegal: compress any file by 90%, regardless of whether it had been compressed before, regardless of its content. Lossless. Reversible. Every time.<br>Claude Shannon, the father of information theory, would like a word.<br>Shannon formalised the concept of entropy in 1948 , not the thermodynamic kind, but informational entropy. For a given file, entropy is the theoretical minimum number of bits required to represent its information content without losing any of it. It is an absolute floor. You cannot compress a file below its entropy. Attempting to do so is not a matter of finding the right algorithm. It is a mathematical impossibility, in the same category as dividing by zero or expecting a government to deliver a project on time and under budget.</p><p>The entropy H of a source is defined as:</p><pre>H(X) = -Σ p(xᵢ) · log₂(p(xᵢ))</pre><p>Where p(xᵢ) is the probability of each symbol xᵢ occurring. High entropy means high randomness, low compressibility. A file of pure random noise has entropy equal to its size you literally cannot make it smaller without losing information. A file of a million zeros has entropy approaching zero, compressible to almost nothing.<br>I knew this. I proceeded anyway. Science is sometimes just organised stubbornness.<br>What I wanted to understand was how far existing compressors had already taken things, and whether there was a novel angle that had been overlooked. So I went back to basics.</p><h3>How Compression Actually Works: The Pointer Trick</h3><p>At its core, every file on your computer is a sequence of bits — ones and zeros. An image file with a resolution of 1000×1000 pixels at 8 bits per colour channel contains roughly 24 million bits before any compression is applied. That is just the raw mathematical reality of representing colour information digitally.<br>Modern compressors exploit one fundamental property of real-world data: repetition.<br>Consider a simple English sentence:</p><pre>The cat sat on the mat. The cat was happy</pre><p>The phrase &#39;The cat&#39; appears twice. A naive encoder writes it out both times. A smart encoder writes it once, and the second time writes a tiny pointer:</p><pre>The cat sat on the mat. [distance=20, length=7] was happy</pre><p>Instead of 7 characters, you store 2 small numbers. The decoder reads the pointer and says: &quot;go back 20 characters in what I have already decoded, copy 7 characters from there.&quot; The output is identical to the original. Zero information lost.<br>This is LZ77, developed by Abraham Lempel and Jacob Ziv in 1977. It is the algorithmic core inside ZIP, gzip, PNG compression, and dozens of other formats you use every day. It maintains a sliding window of recently seen data — typically 32,768 bytes — and for every new chunk of input, searches that window for the longest possible match. Matches above a minimum length threshold (usually 3 bytes) are replaced with (distance, length) pairs. Everything else is emitted as a literal.<br>The longer the matches and the more frequently they occur, the better the compression. The fundamental insight is simple: you only need to store surprise. Anything predictable can be referenced instead of repeated.</p><h3>Idea 1: The 10-Bit Symbol Gambit</h3><p>This is where my research took a turn from surveying existing work to trying to invent something.<br>Here is the observation that started it. Every file is made of bits. Binary. Ones and zeros. If you take any file — an image, a document, an executable — and look at its raw binary representation, you are looking at a stream of bits. Now, if you group those bits into chunks of 10, something interesting happens:<br>10 bits → 2¹⁰ = 1,024 possible combinations<br>That is it. No matter how large the file, no matter how many bits it contains, every 10-bit group it contains must be one of exactly 1,024 possible values. The file might be gigabytes long, but the symbol alphabet is fixed and small.<br>The idea seemed promising: assign a short identifier to each of the 1,024 symbols and replace each 10-bit group with that identifier. You would be representing 10 bits of information with something shorter.<br>Except — and this is the part that hurts — two ASCII letters is 16 bits, not 10. You have made the file larger. The representation costs more than the original.<br>Attempt: Variable-Length Binary Names<br>Fine. Letters are expensive. What about assigning binary names directly? Surely you can assign a 1-bit name to the most common symbol, a 2-bit name to the next, and so on. This is actually what Huffman coding does, and it works beautifully when symbol frequencies are uneven.<br>But for all 1,024 symbols? The maths is unforgiving:</p><pre>Length 1:  2 names   (0, 1)<br>Length 2:  4 names   (00, 01, 10, 11)<br>Length 3:  8 names<br>...<br>Length 9:  512 names<br>Total lengths 1–9: 2+4+8+...+512 = 1,022 names</pre><p>Still 2 short of 1,024. So two symbols need 10-bit names. Total bit cost to represent all 1,024 symbol names:</p><pre>(1×2) + (2×4) + (3×8) + (4×16) + (5×32) + (6×64) +<br>(7×128) + (8×256) + (9×512) + (10×2) = 8,214 bits</pre><blockquote>Now you need a way to separate symbols in the encoded stream, or the decoder cannot tell where one name ends and the next begins. Adding any delimiter, even a comma , adds overhead per symbol. The scheme collapses under its own weight.</blockquote><blockquote>The universe of 10-bit symbols is not the problem. The cost of naming them is.</blockquote><h3>Idea 2: Huffman Coding</h3><p>The Right Tool, Partially<br>Huffman coding, developed by David Huffman in 1952 as part of his MIT doctoral work, solves the variable-length naming problem correctly. The algorithm builds a binary tree based on symbol frequencies: frequent symbols get short codes, rare ones get long codes, and the tree structure guarantees that no code is a prefix of another, meaning the decoder can unambiguously identify symbol boundaries without any delimiter.<br>For English text, where the letter &#39;e&#39; appears roughly 12% of the time and &#39;z&#39; appears 0.07% of the time, Huffman coding achieves significant savings. &#39;E&#39; might get a 3-bit code while &#39;z&#39; gets an 8-bit code. The weighted average across all characters in real English text drops to approximately 4.1 bits per character, compared to the 8-bit ASCII baseline. That is nearly a 50% reduction.<br>But Huffman coding has a structural limitation: it operates on individual symbols in isolation. It does not model relationships between symbols. It does not know that &#39;q&#39; is almost always followed by &#39;u&#39; in English, or that a pixel in an image is likely to be a similar colour to its neighbours. It treats every symbol as statistically independent, which is a useful fiction but a fiction nonetheless.<br>Real compression needs to exploit correlation across symbols, not just compress each symbol individually. Which brings us to the back-reference approach ; and then to something more powerful.</p><h3>Idea 3: BWT — Rearranging Before Compressing</h3><p>The Burrows-Wheeler Transform, published in 1994, does something that seems insane until you understand why it works. It takes your data and rearranges it, producing a completely scrambled output that is, counterintuitively, far easier to compress.<br>Here is the mechanism. Given a block of symbols of length n, the BWT constructs all n cyclic rotations of the block, sorts them lexicographically, and outputs the last character of each sorted rotation. The result is a permutation of the original data that has two remarkable properties. First, similar symbols cluster together , because rotations that share the same context (the characters preceding them) will be sorted adjacently. Second, the transformation is perfectly reversible given one small piece of additional information: the index of the original string in the sorted rotation table.<br>Concretely: if your data has many repeated substrings, the BWT output will have long runs of identical symbols. Runs of identical symbols compress extremely well under run-length encoding or LZ77. The BWT does not compress the data itself — it makes the data more compressible for the next stage.<br>This is the architecture used by bzip2, which frequently outperforms gzip on text because BWT + run-length encoding + Huffman is more powerful than raw LZ77 + Huffman on natural language data.</p><h3>The Decoding Elegance</h3><p>What makes BWT particularly beautiful is that the decoder needs almost nothing extra. The transformed data plus a single integer (the original row index) is sufficient to reverse the entire transformation. No dictionary. No tree. Just the data and one number. The mathematical structure of the sorted rotations allows the decoder to reconstruct the original through a deterministic walking procedure across what is called the LF-mapping . The correspondence between the Last column and the First column of the sorted rotation matrix.</p><h3>The DECIMUS Hypothesis: BWT on 10-Bit Symbols</h3><p>Here is where the threads converge into something original.<br>Standard BWT operates on bytes 8-bit symbols with an alphabet of 256. The question I arrived at was: what happens if you apply BWT not to bytes, but to 10-bit symbols?<br>The reasoning proceeds as follows. Group the file’s bits into 10-bit chunks. You now have a sequence of symbols drawn from an alphabet of 1,024 rather than 256. Apply BWT to this symbol sequence. Then run LZ77 on the BWT output.<br>Why might this be better? Three reasons.<br>First, the larger alphabet gives BWT more expressive power. When BWT sorts rotations, it is grouping together symbols that share the same context. A larger alphabet means finer context discrimination, symbols that look similar in an 8-bit representation might be distinguishable in a 10-bit one, leading to better clustering.<br>Second, working in 10-bit groups means fewer total symbols. A 10MB file contains 83,886,080 bits. Grouped into 8-bit bytes, that is 10,485,760 symbols. Grouped into 10-bit symbols, that is 8,388,608 symbols, 20% fewer. BWT’s complexity is O(n log n) with good suffix array construction, so fewer symbols means faster processing.<br>Third, LZ77 operating on the BWT-transformed 10-bit stream is searching for matches in a richer symbol space. A match of length k in 10-bit symbols represents 10k bits of shared structure, more information per match than byte-level LZ77 achieves.</p><blockquote>You are not changing what the data means. You are changing the granularity at which you look for patterns in it.</blockquote><h3>The Pipeline</h3><pre><br>Raw file (bytes)<br>    ↓<br>Convert to 10-bit symbol stream (0–1023)<br>    ↓<br>Apply BWT per block → clusters repeated 10-bit patterns<br>    ↓<br>Run LZ77 on BWT output → reference repeated symbol sequences<br>    ↓<br>Pack: BWT index + LZ77 token stream</pre><p>Whether this beats existing compressors would need testing, but the theory is completely sound.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d7612259aad3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What happens when you type https://www.google.com in your browser and press Enter]]></title>
            <link>https://medium.com/@chimaraokesamson/what-happens-when-you-type-https-www-google-com-in-your-browser-and-press-enter-2ecf000ec732?source=rss-7f672627f069------2</link>
            <guid isPermaLink="false">https://medium.com/p/2ecf000ec732</guid>
            <category><![CDATA[alx-blog]]></category>
            <category><![CDATA[alxafrica]]></category>
            <category><![CDATA[dns]]></category>
            <category><![CDATA[google]]></category>
            <dc:creator><![CDATA[Chimaraoke Samson]]></dc:creator>
            <pubDate>Fri, 12 Apr 2024 21:04:07 GMT</pubDate>
            <atom:updated>2024-04-12T21:04:07.763Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1TNnC5iusHJMQ9nwieZ6eQ.jpeg" /></figure><p>When you enter “<a href="https://www.google.com/">https://www.google.com</a>&quot; in the address bar and press Enter, a series of important actions happen in the background. These include things like <a href="https://www.cloudflare.com/learning/dns/what-is-dns/">DNS</a> requests and database searches, all of which are essential for showing the Google homepage on your screen. Let’s break down each step of this process to understand it better.</p><p><strong>DNS Request:</strong> First of, your browser starts by translating the human-readable domain name “<a href="http://www.google.com/">www.google.com</a>&quot; into an IP address, which is essential for establishing a connection with the server. It sends a <a href="https://www.cloudflare.com/learning/dns/what-is-dns/"><em>Domain Name System (DNS)</em></a> request to a DNS server, which then responds with the corresponding IP address, such as 172.217.164.196.</p><p>With the IP address in hand, your browser starts a <a href="https://www.geeksforgeeks.org/what-is-transmission-control-protocol-tcp/"><em>Transmission Control Protocol (TCP)</em></a> connection with Google’s server using the Internet Protocol (IP). TCP guarantees that data packets are delivered reliably, in the correct order, and are checked for errors as they travel between your computer and the server. This helps ensure a smooth and dependable exchange of information between the two devices.</p><p>Prior to establishing the connection, it might traverse through <a href="https://www.fortinet.com/resources/cyberglossary/firewall"><em>a firewall,</em></a> which is a network security mechanism created to supervise and regulate incoming and outgoing traffic according to predefined security regulations. The firewall’s role is to verify that only genuine traffic is permitted to reach the server, thus safeguarding against unauthorized entry and malicious assaults.</p><p>As the connection is established, your browser and the server negotiate a secure communication channel using the <a href="https://www.cloudflare.com/learning/ssl/what-is-https/"><em>Hypertext Transfer Protocol Secure (HTTPS)</em></a> protocol, which encrypts data transmitted between them. This encryption is facilitated by Secure Sockets Layer (SSL) or Transport Layer Security (TLS) protocols, ensuring that your interactions with Google remain private and secure.</p><p>Many platforms, including Google, frequently utilize load balancers to distribute incoming traffic among numerous servers, enhancing performance and preventing any individual server from becoming overwhelmed. <a href="https://www.cloudflare.com/learning/performance/what-is-load-balancing/"><em>Load balancers </em></a>oversee the health of servers and allocate requests based on factors such as server capacity and current workload, thereby guaranteeing a seamless and efficient user experience.</p><p>Once the connection is established and encrypted, your browser sends an HTTP request to Google’s web server. This server, which could be running Google’s proprietary software or open-source solutions like Apache or Nginx, processes the request and generates a response.</p><p>In the background, Google’s application servers manage more intricate responsibilities, such as running search algorithms, customizing search results, and delivering dynamic content. These servers operate the applications that handle the features you engage with on the Google homepage.</p><p>To provide personalized search results and other dynamic content, Google’s application servers may need to retrieve data from databases. These databases store vast amounts of information, ranging from indexed web pages to user preferences, and are accessed as needed to fulfill user requests.</p><p>Going from typing “<a href="https://www.google.com/">https://www.google.com</a>&quot; to viewing the Google homepage involves a well-coordinated mix of technologies and procedures. Every step, from DNS resolution to database queries, is vital for providing a smooth and safe browsing experience. Knowing about this process gives us a glimpse into the intricacy and advancement of today’s web infrastructure, which drives our daily use of the internet.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2ecf000ec732" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>