<?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>Forem: michael300607@gmail.com</title>
    <description>The latest articles on Forem by michael300607@gmail.com (@michael30706).</description>
    <link>https://forem.com/michael30706</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%2F3842257%2F4c3c5d26-e2e5-495f-a2ac-8a120d4dc292.png</url>
      <title>Forem: michael300607@gmail.com</title>
      <link>https://forem.com/michael30706</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/michael30706"/>
    <language>en</language>
    <item>
      <title>Stop writing cron jobs: I built a C++ database with native temporal states</title>
      <dc:creator>michael300607@gmail.com</dc:creator>
      <pubDate>Tue, 24 Mar 2026 22:43:01 +0000</pubDate>
      <link>https://forem.com/michael30706/stop-writing-cron-jobs-i-built-a-c-database-with-native-temporal-states-5f1a</link>
      <guid>https://forem.com/michael30706/stop-writing-cron-jobs-i-built-a-c-database-with-native-temporal-states-5f1a</guid>
      <description>&lt;p&gt;Hey everyone, I'm Michael. &lt;/p&gt;

&lt;p&gt;For the last few months, I've been building CronDB from scratch. It's a native C++ database engine designed to natively evaluate temporal state machines, meaning you don't have to write external polling scripts or cron jobs to manage state changes over time.&lt;/p&gt;

&lt;p&gt;Under the hood:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Written entirely in C++ with a custom lexer and parser.&lt;/li&gt;
&lt;li&gt;Evaluates FSM clock transitions directly against an O(log n) B-Tree.&lt;/li&gt;
&lt;li&gt;Uses fixed-width binary .bin files for O(1) random-access reads.&lt;/li&gt;
&lt;li&gt;Fully ACID compliant with a Write-Ahead Log (WAL) for durability.&lt;/li&gt;
&lt;li&gt;Ships with an asynchronous webhook engine to push events without blocking the main thread.&lt;/li&gt;
&lt;li&gt;Includes native Python and JavaScript SDKs for easy integration.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The Local Demo&lt;br&gt;
I packaged a lightweight demo version of the engine (Windows .exe and Linux ELF) so you can boot it up and test the Temporal FSM syntax natively on your own hardware. &lt;/p&gt;

&lt;p&gt;You can download the demo binaries here: &lt;a href="https://crondb.dev" rel="noopener noreferrer"&gt;https://crondb.dev&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A quick heads-up on the demo: The binary enforces a strict 50-query limit. While it actively writes the actual WAL and binary files to your disk, the demo version does not load previous states. It will start with a completely clean slate every time you boot it up!&lt;/p&gt;

&lt;p&gt;Deep Dive&lt;br&gt;
If you want to see exactly how the storage engine, WAL, and webhook threading actually work, I wrote a full Developer Documentation PDF detailing the internal architecture:&lt;br&gt;
&lt;a href="https://crondb.dev/Architecture_guide.pdf" rel="noopener noreferrer"&gt;https://crondb.dev/Architecture_guide.pdf&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Please boot up the binary, try to break the temporal syntax, and drop your technical feedback or questions below! I'll be reading all of them.&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>cpp</category>
      <category>database</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
