<?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 Mithulchoudhary on Medium]]></title>
        <description><![CDATA[Stories by Mithulchoudhary on Medium]]></description>
        <link>https://medium.com/@mithulchoudhary0088?source=rss-32a64943bbfe------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*BkbfedHCphpEf0qQ</url>
            <title>Stories by Mithulchoudhary on Medium</title>
            <link>https://medium.com/@mithulchoudhary0088?source=rss-32a64943bbfe------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 22:36:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mithulchoudhary0088/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[My First Hackathon: Surviving the Zero-Dependency Challenge with TerminalAlpha]]></title>
            <link>https://medium.com/@mithulchoudhary0088/my-first-hackathon-surviving-the-zero-dependency-challenge-with-terminalalpha-df8b8fff67d9?source=rss-32a64943bbfe------2</link>
            <guid isPermaLink="false">https://medium.com/p/df8b8fff67d9</guid>
            <category><![CDATA[hackathons]]></category>
            <dc:creator><![CDATA[Mithulchoudhary]]></dc:creator>
            <pubDate>Wed, 02 Sep 2026 05:31:50 GMT</pubDate>
            <atom:updated>2026-09-02T05:31:50.690Z</atom:updated>
            <content:encoded><![CDATA[<p>I signed up for my very first hackathon on a total whim right before starting my B.Tech journey, pretty much clueless about what I was getting myself into. I decided to try building a quantitative backtesting engine from scratch, having absolutely no idea how ridiculously difficult it would actually be. I fully expected the complex financial math to be the absolute hardest part of the project. I was completely wrong. The real nightmare was just trying to read a text file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/862/1*sgsnQIROmNn_xvkbg4IVNg.png" /></figure><p>Usually, if you have a massive dataset of high-frequency crude oil ticks, you just drop in <strong>Apache Commons CSV</strong> or switch over to Python and import pandas. You call one function, the data loads, and you move on with your life. But the strict rule for this project was zero external dependencies. Nothing but the standard Java library.</p><p>I figured standard I/O would be fine. I wrote a quick loop using BufferedReader.readLine() and String.split(&quot;,&quot;). It worked perfectly on a tiny sample. Then, to simulate the volume you&#39;d see in a real institutional environment, I fed it 15 million market events.</p><p>The engine completely locked up.</p><p>It wasn’t a logic bug; it was the JVM Garbage Collector. Every single line read was creating multiple temporary String objects. Fifteen million lines meant tens of millions of discarded strings, and the JVM was spending all of its CPU cycles desperately trying to clean up my mess instead of actually simulating trades. Going into this as a total beginner, having to suddenly care about CPU cache lines and memory allocation was a brutal wake-up call. I realized that if I wanted to build serious financial software, I couldn&#39;t just rely on easy abstractions.</p><p>I had to scrap the standard parser and build a zero-allocation I/O engine completely by hand. Instead of reading lines of text, I used <strong>FileChannel</strong> and <strong>MappedByteBuffer</strong> to map the physical file directly into memory. I wrote a custom byte-offset parser that loops through raw ASCII characters, calculates the decimal values on the fly, and drops them directly into contiguous primitive double and long arrays.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/1*Ivw2hPsmeI_EFh3wf7aCUA.png" /></figure><p>It took hours of debugging weird offset errors and boundary bugs to replace what Apache Commons does in one line. But the moment it finally compiled and ran, the terminal lit up. It chewed through <strong>15 million</strong> market ticks per second. <strong>Barely any Garbage Collection events.</strong> No pauses, no memory spikes, just pure, uninterrupted hardware throughput.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df8b8fff67d9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>