<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Hari5616</title>
    <description>The latest articles on DEV Community by Hari5616 (@hari5616).</description>
    <link>https://dev.to/hari5616</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3784122%2F97a9708c-28dd-403e-850b-6aacfa40d174.png</url>
      <title>DEV Community: Hari5616</title>
      <link>https://dev.to/hari5616</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hari5616"/>
    <language>en</language>
    <item>
      <title>Why I'm Building a Database From Scratch in Raw C++ (And Why I Banned the STL)</title>
      <dc:creator>Hari5616</dc:creator>
      <pubDate>Sat, 02 May 2026 21:02:47 +0000</pubDate>
      <link>https://dev.to/hari5616/why-im-building-a-database-from-scratch-in-raw-c-and-why-i-banned-the-stl-41p2</link>
      <guid>https://dev.to/hari5616/why-im-building-a-database-from-scratch-in-raw-c-and-why-i-banned-the-stl-41p2</guid>
      <description>&lt;p&gt;I am a first-year CS student and I recently made a decision that most people around me think is unnecessary — I am building a relational database storage engine from scratch in raw C++, with zero STL dependency.&lt;/p&gt;

&lt;p&gt;No std::vector. No std::string. No iostream. Nothing.&lt;br&gt;
Here is why.&lt;/p&gt;

&lt;p&gt;The Problem With How I Was Learning&lt;/p&gt;

&lt;p&gt;For a long time I was writing code that worked but I had no idea why it worked. I used abstractions, APIs, and libraries that hid everything interesting. I could build things but I couldn't explain what was actually happening in memory, on disk, or at the hardware level.&lt;br&gt;
That bothered me.&lt;/p&gt;

&lt;p&gt;What NanoDB Actually Is&lt;br&gt;
NanoDB is my attempt to fix that. It is a custom storage engine I am building in phases:&lt;br&gt;
Phase 0 — Raw C++ fundamentals, no safety nets&lt;br&gt;
Phase 1 — Page Manager, raw disk I/O&lt;br&gt;
Phase 2 — Buffer Pool with LRU eviction&lt;br&gt;
Phase 3 — Heap File and Tuple layout&lt;br&gt;
Phase 4 — B+ Tree Index&lt;br&gt;
Phase 5 — Query Layer&lt;br&gt;
Phase 6 — Write Ahead Log&lt;br&gt;
Phase 7 — Concurrency with 2PL&lt;br&gt;
Phase 8 — Benchmarking and research documentation&lt;br&gt;
I am currently at Phase 0. I am not going to pretend I am further along than I am.&lt;/p&gt;

&lt;p&gt;Why Ban the STL?&lt;/p&gt;

&lt;p&gt;Because the STL solves problems I haven't suffered through yet. If I use std::vector before I understand dynamic memory allocation, I learn nothing about what std::vector actually does. The restriction forces me to feel the pain that the abstractions were hiding.&lt;/p&gt;

&lt;p&gt;That pain is the education.&lt;br&gt;
Why Am I Writing This Now, Before Writing Code?&lt;br&gt;
Accountability. And because the "why" matters as much as the "what."&lt;/p&gt;

&lt;p&gt;I will be documenting every phase here — what I built, what broke, what I learned, and what confused me. No polished success stories. Just the ugly process.&lt;/p&gt;

&lt;p&gt;If you are also exploring systems programming or low level C++, follow along. We can figure this out together.&lt;/p&gt;

&lt;p&gt;Phase 0 starts now. ⚔️&lt;/p&gt;

</description>
      <category>cpp</category>
      <category>systems</category>
      <category>database</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
