<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Posts on Precomputing.com</title>
    <link>https://precomputing.com/posts/</link>
    <description>Recent content in Posts on Precomputing.com</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Tue, 03 Nov 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://precomputing.com/posts/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Introduction</title>
      <link>https://precomputing.com/introduction/</link>
      <pubDate>Fri, 25 Sep 2026 00:00:00 +0000</pubDate>
      <guid>https://precomputing.com/introduction/</guid>
      <description>&lt;p&gt;&lt;strong&gt;Answers ready before you ask: one small language keeps counts, percentiles, candles, invoices and log dashboards current in a SQLite file as the data arrives.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Precomputing is a project to make answers cheap. A short policy names the streams of events you have and the answers you want ready, and says how long each level of detail should live. From then on every event updates those answers the moment it arrives, so a question becomes a lookup, and old detail fades on the schedule you set.&lt;/p&gt;</description>
    </item>
    <item>
      <title>How It Works</title>
      <link>https://precomputing.com/how-it-works/</link>
      <pubDate>Fri, 25 Sep 2026 00:00:00 +0000</pubDate>
      <guid>https://precomputing.com/how-it-works/</guid>
      <description>&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;The idea.&lt;/strong&gt; Decide the questions first. Keep their answers current as each event arrives, in one SQLite file, and let raw detail fade on a schedule while unusual events stay whole.&lt;/p&gt;&lt;/blockquote&gt;&#xA;&lt;h2 id=&#34;before-and-after&#34;&gt;Before and After&lt;/h2&gt;&#xA;&lt;p&gt;Today a system that collects events usually keeps all of them and computes each answer when someone asks. A dashboard scans the last hour on every refresh. An invoice adds up a month of requests at the month&amp;rsquo;s end. Precomputing moves the work to the moment each event arrives:&lt;/p&gt;</description>
    </item>
    <item>
      <title>The Policy Language</title>
      <link>https://precomputing.com/the-policy-language/</link>
      <pubDate>Fri, 25 Sep 2026 00:00:00 +0000</pubDate>
      <guid>https://precomputing.com/the-policy-language/</guid>
      <description>&lt;p&gt;&lt;strong&gt;A policy is a short text file. It names the streams of events you have and the answers to keep ready, and says how long each level of detail survives.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;The compiler turns it into plain SQLite, and the Engine runs it as it is. This post walks through a policy line by line, and shows what each line becomes in the file.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://precomputing.com/images/policy-anatomy.png&#34; alt=&#34;A policy&amp;rsquo;s lines and the tables they become. raw keep 5m becomes latency_raw, whole events. Each rollup becomes rows of latency_win, one summary per window and key, and quantiles ms adds the sketch buckets in latency_ms_sk. samples becomes latency_sample, anomalies becomes latency_anomaly and latency_base, and each precompute becomes a view with its own name.&#34;&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Precomputing Now Takes OpenTelemetry and Lets a Running File Change Its Policy</title>
      <link>https://precomputing.com/precomputing-now-takes-opentelemetry-and-lets-a-running-file-change-its-policy/</link>
      <pubDate>Tue, 03 Nov 2026 00:00:00 +0000</pubDate>
      <guid>https://precomputing.com/precomputing-now-takes-opentelemetry-and-lets-a-running-file-change-its-policy/</guid>
      <description>&lt;p&gt;Precomputing 0.3 is out. It closes the four gaps that stood between it and a real deployment. Applications and OpenTelemetry Collectors can send logs and metrics straight to &lt;code&gt;precomputing serve&lt;/code&gt; over OTLP/HTTP. The server speaks HTTPS. A billing stream can refuse a report from a gateway whose clock runs ahead. And a file that has been running for months can take a new version of its policy without starting over.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Precomputing 0.1.1 Alpha Is Now Open Source Under the Apache License 2.0</title>
      <link>https://precomputing.com/precomputing-0.1.1-alpha-is-now-open-source-under-the-apache-license-2.0/</link>
      <pubDate>Mon, 05 Oct 2026 00:00:00 +0000</pubDate>
      <guid>https://precomputing.com/precomputing-0.1.1-alpha-is-now-open-source-under-the-apache-license-2.0/</guid>
      <description>&lt;p&gt;Everything behind this site&amp;rsquo;s eight &lt;a href=&#34;https://precomputing.com/demo/&#34;&gt;live demos&lt;/a&gt; is now on &lt;a href=&#34;https://github.com/precomputing/precomputing&#34;&gt;GitHub&lt;/a&gt;, under the Apache License 2.0. Version 0.1.1-alpha is the first public release, and it comes with ready-made binaries for Linux.&lt;/p&gt;&#xA;&lt;p&gt;Precomputing keeps answers ready as data arrives. A short policy names the streams of events, the answers to keep ready and how long each level of detail lives, and one SQLite file keeps those answers current. Any SQLite tool reads the file. The &lt;a href=&#34;https://precomputing.com/introduction/&#34;&gt;introduction&lt;/a&gt; has the longer version.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Agent Traces Case Study: A Day of Coding-Agent Calls Kept 14 Times Smaller and Rebuilt Byte for Byte</title>
      <link>https://precomputing.com/agent-traces-case-study-a-day-of-coding-agent-calls-kept-14-times-smaller-and-rebuilt-byte-for-byte/</link>
      <pubDate>Wed, 30 Sep 2026 00:00:00 +0000</pubDate>
      <guid>https://precomputing.com/agent-traces-case-study-a-day-of-coding-agent-calls-kept-14-times-smaller-and-rebuilt-byte-for-byte/</guid>
      <description>&lt;p&gt;A coding agent works by calling a model again and again, and every call sends the whole conversation so far: the system prompt, the tool list, the task, everything the agent has said and every tool output it has read. A run&amp;rsquo;s 40th call repeats its first 39. A tracer that stores each call whole stores the start of every run many times over, and the questions teams ask of those traces are simple ones: what did this run cost, which repository spends the most, and which tool fills the context.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Incident Déjà Vu Case Study: Every Returning Incident Named Within Ten Seconds</title>
      <link>https://precomputing.com/incident-deja-vu-case-study-every-returning-incident-named-within-ten-seconds/</link>
      <pubDate>Wed, 30 Sep 2026 00:00:00 +0000</pubDate>
      <guid>https://precomputing.com/incident-deja-vu-case-study-every-returning-incident-named-within-ten-seconds/</guid>
      <description>&lt;p&gt;When a service starts failing at night, the person on call wants to know one thing first: has this happened before, and what fixed it? The answer usually exists somewhere. It sits in an old ticket or in a colleague&amp;rsquo;s memory, and finding it takes a search that only works if you already know what to search for. The Incident Déjà Vu demo asks the log file itself, every ten seconds.&lt;/p&gt;</description>
    </item>
    <item>
      <title>MCP Case Study: An AI Agent Gets Its Answers in a Few Hundred Tokens Each</title>
      <link>https://precomputing.com/mcp-case-study-an-ai-agent-gets-its-answers-in-a-few-hundred-tokens-each/</link>
      <pubDate>Wed, 30 Sep 2026 00:00:00 +0000</pubDate>
      <guid>https://precomputing.com/mcp-case-study-an-ai-agent-gets-its-answers-in-a-few-hundred-tokens-each/</guid>
      <description>&lt;p&gt;An AI agent that needs a number from operational data usually gets it by reading the data: rows from a database through a SQL tool, lines from a log search, an export. Every row it reads costs tokens and room in its context, and most of what it reads is detail the question never needed. A Precomputing file already holds the answers its policy names, so an agent can ask for those instead.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Wikipedia Live: Every Change to Every Wiki, Counted in the Browser</title>
      <link>https://precomputing.com/wikipedia-live-every-change-to-every-wiki-counted-in-the-browser/</link>
      <pubDate>Wed, 30 Sep 2026 00:00:00 +0000</pubDate>
      <guid>https://precomputing.com/wikipedia-live-every-change-to-every-wiki-counted-in-the-browser/</guid>
      <description>&lt;p&gt;Wikipedia never stops changing. Every edit, new page, log entry and category change on every Wikipedia, and on Wikidata, Commons and the other Wikimedia wikis, goes out on a public stream the moment it is made, usually tens of changes a second. That makes the stream a good test for keeping answers ready: the data is real and never pauses. Anyone can watch it.&lt;/p&gt;&#xA;&lt;p&gt;The Wikipedia demo connects your browser straight to that stream. Each change goes into the Precomputing Engine, running in the page, which keeps its answers in an SQLite file as the changes arrive. The page draws everything from that file, once a second, and a recount kept apart from the Engine checks every count in it as it goes.&lt;/p&gt;</description>
    </item>
    <item>
      <title>API Latency Case Study: A Million Requests Kept as Ready Answers Inside SQLite</title>
      <link>https://precomputing.com/api-latency-case-study-a-million-requests-kept-as-ready-answers-inside-sqlite/</link>
      <pubDate>Tue, 29 Sep 2026 00:00:00 +0000</pubDate>
      <guid>https://precomputing.com/api-latency-case-study-a-million-requests-kept-as-ready-answers-inside-sqlite/</guid>
      <description>&lt;p&gt;A small web service that already keeps its data in SQLite wants the usual answers about its API: how many requests each endpoint gets, how long they take on average, and the p99. The simple way is a table with a row per request, scanned whenever someone looks. In the SQL demo the service keeps a compiled Precomputing policy in the same SQLite instead, and the answers stay current on every insert.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Precomputing Explained: Keep a Running Total Instead of Counting Again</title>
      <link>https://precomputing.com/precomputing-explained-keep-a-running-total-instead-of-counting-again/</link>
      <pubDate>Tue, 29 Sep 2026 00:00:00 +0000</pubDate>
      <guid>https://precomputing.com/precomputing-explained-keep-a-running-total-instead-of-counting-again/</guid>
      <description>&lt;p&gt;A lot of software that collects data works like a shop owner with a shoebox. Every receipt goes in the box. When someone asks how much the shop sold today, she tips the box out and adds everything up, and if they ask again an hour later she does it all over again, with a bigger pile.&lt;/p&gt;&#xA;&lt;p&gt;Precomputing works like a notepad next to the till. Each sale is added to a running total the moment it happens, so a question gets answered by reading one number. Now and then the box can be emptied. She keeps only the odd receipts (a huge refund, a sale at 3 a.m.) in case someone asks about them later.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Precomputing&#39;s Moat: One SQLite File Format and Answers That Match to the Last Bit</title>
      <link>https://precomputing.com/precomputings-moat-one-sqlite-file-format-and-answers-that-match-to-the-last-bit/</link>
      <pubDate>Tue, 29 Sep 2026 00:00:00 +0000</pubDate>
      <guid>https://precomputing.com/precomputings-moat-one-sqlite-file-format-and-answers-that-match-to-the-last-bit/</guid>
      <description>&lt;p&gt;Keeping answers ready is an old idea. Databases have offered materialized views for decades, and every time-series database rolls up its metrics as they arrive. So the useful questions about Precomputing are narrower: what does this version do that the others don&amp;rsquo;t, and which parts would a rival struggle to copy?&lt;/p&gt;&#xA;&lt;p&gt;The answer comes in two halves. What sets it apart today is where it runs and how much it covers. One small policy language drives four jobs that usually take four separate products, and all of it lives in an ordinary SQLite file. What makes it hard to copy is the proof work behind those claims: two runtimes that write the same file to the last bit, and exact counts checked against separate recounts, crash after crash.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Market Data Case Study: Four Million Trades Turned Into Candles, Checked After a Pulled Plug</title>
      <link>https://precomputing.com/market-data-case-study-four-million-trades-turned-into-candles-checked-after-a-pulled-plug/</link>
      <pubDate>Mon, 28 Sep 2026 00:00:00 +0000</pubDate>
      <guid>https://precomputing.com/market-data-case-study-four-million-trades-turned-into-candles-checked-after-a-pulled-plug/</guid>
      <description>&lt;p&gt;A stock chart is made of candles: for each minute, the first price, the highest, the lowest and the last, with the volume traded. A candle is a window summary, the same kind of summary Precomputing keeps for API latency, only in a field every investor knows. In the Engine demo a trading day of stock trades goes through the Engine, which keeps 1-second, 1-minute and 1-hour candles and a quote board ready in its SQLite file, and writes the file five times a second.&lt;/p&gt;</description>
    </item>
    <item>
      <title>AI Usage Billing Case Study: A Month of Invoices That Match a Recount to the Billionth of a Dollar</title>
      <link>https://precomputing.com/ai-usage-billing-case-study-a-month-of-invoices-that-match-a-recount-to-the-billionth-of-a-dollar/</link>
      <pubDate>Sun, 27 Sep 2026 00:00:00 +0000</pubDate>
      <guid>https://precomputing.com/ai-usage-billing-case-study-a-month-of-invoices-that-match-a-recount-to-the-billionth-of-a-dollar/</guid>
      <description>&lt;p&gt;An AI product that bills by the token has to count every request exactly once, even when the network does not cooperate. Clients retry, and a retry can arrive through a different gateway. A gateway that loses its link holds its reports and sends them hours later. A queue can stick at the end of the month, after the invoices are out. In the Meter demo the product&amp;rsquo;s gateways report every request to one meter, a compiled Precomputing policy inside SQLite, and the invoices are one SQL view over totals the meter keeps ready.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Web Shop Logs Case Study: A Dashboard Sent Upstream in 120 Times Fewer Bytes</title>
      <link>https://precomputing.com/web-shop-logs-case-study-a-dashboard-sent-upstream-in-120-times-fewer-bytes/</link>
      <pubDate>Sat, 26 Sep 2026 00:00:00 +0000</pubDate>
      <guid>https://precomputing.com/web-shop-logs-case-study-a-dashboard-sent-upstream-in-120-times-fewer-bytes/</guid>
      <description>&lt;p&gt;A web shop sends its logs to a log platform so a dashboard can show requests, latency, errors, payments and revenue, and so someone can search the lines when things go wrong. The platform charges by the gigabyte ingested and by the million lines indexed, and many of those lines are never read. In the Logs demo a log reducer sits next to the shop&amp;rsquo;s services. It learns each kind of line as it arrives, keeps every line on site for 48 hours, and sends upstream only the answers the dashboard shows, the errors and anything new.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Inside the Engine: Same Answers, 12 to 17 Times Faster</title>
      <link>https://precomputing.com/inside-the-engine-same-answers-12-to-17-times-faster/</link>
      <pubDate>Fri, 25 Sep 2026 00:00:00 +0000</pubDate>
      <guid>https://precomputing.com/inside-the-engine-same-answers-12-to-17-times-faster/</guid>
      <description>&lt;p&gt;The SQL runtime does all its work inside SQLite: every insert runs a trigger that updates every summary, sketch and answer the policy asks for. That is simple and it runs anywhere, but a trigger pays SQLite&amp;rsquo;s price for each small update. The Engine runs the same policy in Go, keeps the recent work in memory and writes what changed to the same SQLite file in one transaction at every checkpoint. Its answers are the same, to the last bit, and on Demo 2&amp;rsquo;s trades it is 12 to 17 times faster.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Next Applications: Eight Places Where Answers Kept Ready Could Fit</title>
      <link>https://precomputing.com/next-applications-eight-places-where-answers-kept-ready-could-fit/</link>
      <pubDate>Fri, 25 Sep 2026 00:00:00 +0000</pubDate>
      <guid>https://precomputing.com/next-applications-eight-places-where-answers-kept-ready-could-fit/</guid>
      <description>&lt;p&gt;The four case studies share one pattern. The questions are known in advance and the events arrive as a stream, so the answers can be kept current as each event lands, while raw detail stays only as long as it is useful. API monitoring, market data, usage billing and logs came first because the demos cover them.&lt;/p&gt;&#xA;&lt;p&gt;The pattern turns up in many more places. None of the eight below has been tested, and none runs Precomputing today. This post sets out what each would ask of the platform, and which parts already carry over from the demos. It is a map for choosing pilots, ideally together with the people who run these systems.&lt;/p&gt;</description>
    </item>
    <item>
      <title>One File: The SQLite Layout Both Runtimes Write</title>
      <link>https://precomputing.com/one-file-the-sqlite-layout-both-runtimes-write/</link>
      <pubDate>Fri, 25 Sep 2026 00:00:00 +0000</pubDate>
      <guid>https://precomputing.com/one-file-the-sqlite-layout-both-runtimes-write/</guid>
      <description>&lt;p&gt;A Precomputing file is an ordinary SQLite file. Any SQLite tool opens it, the same SQL works on it whichever runtime wrote it, and it carries its own policy, so a reader never has to guess what is inside. This post walks through the layout for one stream.&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-is-in-the-file&#34;&gt;What Is in the File&lt;/h2&gt;&#xA;&lt;p&gt;For Demo 1&amp;rsquo;s stream, &lt;code&gt;latency&lt;/code&gt;, with the key &lt;code&gt;endpoint&lt;/code&gt; and the value &lt;code&gt;ms&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://precomputing.com/images/file-layout.png&#34; alt=&#34;The file for the latency stream. You insert into the view latency and read the answer views requests, avg_ms and p99_ms. Behind them sit latency_raw with whole events, latency_win with one summary per window and key, latency_ms_sk with sketch buckets, latency_sample, latency_anomaly and latency_base, the state tables behind the answers, and three tables that describe the file: _precomputing with the policy, _precomputing_objects and, when the Engine writes, _precomputing_sources.&#34;&gt;&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
