Writing

Blog

Showing 1–10 of 47

RSS feed
Boltzmann Brains in an LLM: Heat Garbles Answers, It Rarely Swaps Facts
AILLM

Boltzmann Brains in an LLM: Heat Garbles Answers, It Rarely Swaps Facts

Does turning the temperature up make a language model write confident, fluent lies, like a Boltzmann brain? I measured 5,100 answers from two models. A 12B model produced none; a 1B model peaked at about one in 19, and mostly the heat garbled the text instead.

November 27, 202616 min read
Read post
PHP 8.6 Performance Benchmark: The php-fpm Image Is Thread-Safe, and That Costs 2%
PHPPerformanceDockerLaravelSymfony

PHP 8.6 Performance Benchmark: The php-fpm Image Is Thread-Safe, and That Costs 2%

php:8.6-fpm is built thread-safe and php:8.5-fpm is not. Laravel and Symfony on php-fpm, php-cgi, FrankenPHP and the CLI, on an x86_64 server and an arm64 Mac: 1.5 to 2.6% fewer requests per second, all of it the build. Sliders, a fleet calculator and the 70% result I threw away.

November 26, 202648 min read
Read post
Dapr Workflow vs Temporal Under Chaos: Deploys, Crashes and Double Charges
DaprTemporalJavaReliabilityArchitecture

Dapr Workflow vs Temporal Under Chaos: Deploys, Crashes and Double Charges

One order saga on Dapr 1.19 and Temporal 1.32, broken mid-charge with Toxiproxy and Docker: a rolling deploy charged twice on Dapr and once on Temporal, a hang charged three times on Temporal. 24 tests, the fixes that held, and where the latency really goes.

November 20, 202626 min read
Read post
pgvector in Laravel 13: Tenant Filters, HNSW and the Rows That Go Missing
LaravelPostgreSQLpgvectorRAGPHP

pgvector in Laravel 13: Tenant Filters, HNSW and the Rows That Go Missing

whereVectorSimilarTo() on 100,000 Wikipedia paragraphs in PostgreSQL 18 with pgvector 0.8.7: a tenant filter that loses rows only for the largest teams, paginate() pages that come back empty, and a fix that collides with the similarity threshold. Measured, with the class that fixes all three.

November 11, 202624 min read
Read post
Tauri vs Electron for an MCP Client: Memory, Start-up and Where IPC Lies, Measured
MCPRustTauriElectron

Tauri vs Electron for an MCP Client: Memory, Start-up and Where IPC Lies, Measured

I built the same desktop app twice, on Tauri 2.12 and Electron 45, and measured memory, start-up and every IPC route for 1 to 50 MiB, plus MCP clients in Rust and TypeScript. Tauri saved 26.5 MiB and started no faster; the MCP client cost more than either.

November 11, 202626 min read
Read post
How Big an LLM Can a 1 GB Raspberry Pi 4 Run? Measured
AILLMPerformance

How Big an LLM Can a 1 GB Raspberry Pi 4 Run? Measured

On a Raspberry Pi 4 with 1 GB of RAM, Qwen2.5 0.5B generated 8.3 tokens per second and Llama 3.2 1B 0.13. The 1B file does not fit, so the Pi rereads it from the SD card for every token. What moved the line, what did not, and what a 3-bit file costs in answers.

November 11, 202610 min read
Read post
What Is Temperature in AI? A Beginner's Guide, Measured on a Real Model
AILLM

What Is Temperature in AI? A Beginner's Guide, Measured on a Real Model

Temperature decides how adventurous a language model is when it picks its next word. I asked Llama 3.2 the same question 100 times at four temperatures: one answer at 0, 12 at 0.7, 37 at 1.0 and 99 at 1.5, a quarter of them gibberish. Here is why, with the model's own probabilities.

November 9, 20269 min read
Read post
Small Language Models at the Edge: 1,000 Tickets on a Mac, a Thin Client and n8n
AILLMPerformanceEvaluation

Small Language Models at the Edge: 1,000 Tickets on a Mac, a Thin Client and n8n

I sent 1,000 support tickets to Llama 3.2, Qwen 2.5 and the Apple Foundation Model on a Mac and a thin client, behind n8n, and to Claude Haiku. Constrained decoding made every local answer valid JSON; the best local model got all four fields right on 37% of the tickets, the cloud on 100%.

November 9, 202622 min read
Read post
PIE Replaces PECL: Installing PHP Extensions in Docker, Measured
PHPDockerDevOpsTooling

PIE Replaces PECL: Installing PHP Extensions in Docker, Measured

PIE replaces pecl install. I moved Docker builds to it and measured: parallel builds made redis almost twice as fast and ran grpc out of memory, prebuilt binaries come from mirrors PIE cannot verify, and PIE exits 0 when an extension it installed does not load.

November 8, 202622 min read
Read post
Durable AI Agents in Laravel: an LLM Agent on Temporal, Crashes Included
AgentsLaravelTemporalPHPLLM

Durable AI Agents in Laravel: an LLM Agent on Temporal, Crashes Included

A Laravel support agent built twice, as the usual loop and as a Temporal workflow, then killed mid-refund. Temporal keeps the model's decision but still repeats the refund, and only a key per order pays once. One Laravel call made the live PHP worker report a result that never happened.

November 6, 202619 min read
Read post