Archive
2026
-
05Machine learning
The Detector Was Not Impressed
One rewrite by the voice model still scores as fully AI, and ten rounds start bending the facts. Guards, a judge and rollbacks got the same text rated human in five runs out of five.
-
05Machine learning
80,000 Words of Me
Training a small model on about 80,000 words of my own writing, and why one pass beats three. Its loss, and habits like how often I say we, show how close it gets.
-
05Machine learning
I Didn't Write This Post
Give a chat model 22 of my old posts and it rewrites plain text close to my voice, for cents. A detector still calls it all AI, and the unchanged words show why.
-
01Event logs
EventStore: From Log to State, and Into Production
Part 3 of 3 Folding Wile's orders into a per-customer dashboard, with snapshots that shrug off a kill -9. Then the practical side of production: watching lag, raising alerts and archiving old messages to BigQuery.
-
01Event logs
EventStore: Reading the Log by Pulling, Pushing and Sharding
Part 2 of 3 Reading the log by pulling with your own bookmark, pushing over AMQP, or sharding across readers. You learn exactly when Wile can be charged twice, and why nothing is lost on restart.
-
01Event logs
EventStore: One Ordered Log for Everything
Part 1 of 3 Billing, notifications and a dashboard all need to hear about Wile E. Coyote's orders. EventStore gives them one ordered log with one index and one writer, and a precise at-least-once guarantee.
-
02Actors
Cats-Actors 2.2.0: Taking Control of Time
Part 4 of 4 Cats-Actors 2.2.0 hands your tests the clock, so scheduled work, receive timeouts and supervision windows need no sleeps. Tests that were slow, flaky or impossible now run instantly and the same way every time.
-
02Actors
Cats-Actors 2.1.0 Goes Cross-Platform
Part 3 of 4 Cats-Actors 2.1.0 runs one actor codebase on the JVM, as a native binary and in the browser. A token races round a ring of actors, then eight monkeys throw bananas right on the page.
2024
-
02Actors
Typed Actors in Action - Exploring Cats-Actors with Alice and Bob
Part 2 of 4 Alice sends Bob money through wallet actors and a transaction actor, built with the typed actors in Cats-Actors 2.0. Messages are checked at compile time, so fewer mistakes are left waiting for runtime.
-
02Actors
A Logic Circuit Simulator with Cats-Actors
Part 1 of 4 A logic circuit simulator for ACME's space-cat motherboards, where every wire and gate is an actor. Building up from AND gates to adders and demultiplexers shows functional programming and actors working together.
2021
-
03Functional programming
Functional Programming to the max
A small number guessing game, rewritten step by step from procedural code into a functional program with its own IO type. The aim is not purity for its own sake, but more principled code.
2019
-
04Infrastructure
Node Management in GKE
What happens to your pods when GKE upgrades its nodes, from our Google Cloud Summit talk in Milan. Three takeaways keep disruptions small: redundancy, protection and giving Kubernetes insight through probes.
-
03Functional programming
Performant Functional Programming to the max with ZIO
Wile E. Coyote wants a purchase summary for every ACME customer. The same program is built imperatively, then with monad transformers, then with ZIO, which keeps it pure without paying for it at runtime.
-
04Infrastructure
Why Kubernetes? Google Cloud Event Follow-up
Why we moved to Kubernetes, from my talk at the first Google Cloud Event in Malta. Reactive microservices need scheduling, scaling, rolling updates and supervision, and Kubernetes handles all four.
-
03Functional programming
Computation Context - Walk the Line
Pierre the tightrope walker and his birds, simulated with exceptions, nulls and finally an Option. Functional programming turns out to be more than a refactor: a computation context gives you honest types and safe sequencing.
2018
-
03Functional programming
Lambda Calculus is Dead! Long live Lambda Calculus!
Lambda calculus is usually shown off with numbers and recursion. Here it goes to work on an everyday CMS problem instead: finding every URL for the sitemap, and each page's alternate language URLs.
2017
-
06Web
An efficient headless CMS on top of Wordpress - a.k.a the ACF Compiler!
WordPress with ACF makes a free headless CMS, until the n+1 queries pile up. The ACF Compiler turns annotated classes into an efficient query plan, cutting our bootstrap times from a minute to seconds.
-
02Actors
Akka Finite State Machine (FSM) and At Most Once Semantics
A bank account and a wire transfer, modelled with Akka's FSM mixin instead of raw become and unbecome. Explicit states keep actors out of spaghetti code, and the transfer runs at most once.
-
06Web
Angular 2 - Define Routes Dynamically using UIRouter
Angular routes are usually fixed at configuration time, which hurts when every language has its own URLs. UIRouter can declare states on the fly from a CMS sitemap, giving fully multilingual routes.
2016
-
02Actors
Crawling the Web using Actors
A web crawler built from Akka actors: getters fetch pages, a link checker keeps track and a crawl server hands out work. Supervision and timeouts show how actors tame concurrency, one message at a time.
-
03Functional programming
Functions as Data
A set library where each set is nothing but a function that says yes or no to an element. Union, intersection and difference follow naturally, and the line between code and data starts to blur.
-
05Machine learning
Decision Trees with Kotlin
An ID3 decision tree in Kotlin that learns when to play tennis, from Tom Mitchell's classic example. Entropy and information gain decide each split, and Kotlin features like delegated properties keep the code short.
-
06Web
TypeScript Json Mapper
JSON rarely arrives in camelCase, so it cannot simply be cast onto a TypeScript class. A generic mapper driven by decorators does the conversion, handles arrays, and plugs into the AngularJS http service.
-
06Web
Controlling Digests in AngularJS
Why a big ng-repeat slows AngularJS down, traced through the digest cycle with Batarang. limitTo, infinite scroll and a timed variant of my own render long lists in small batches instead of all at once.
-
05Machine learning
Language Detection using N-Grams - Part II
Part 2 of 2 A working n-gram language detector in Node, trained on the Universal Declaration of Human Rights in several languages. It scores a sentence against each language profile and can tell English from Maltese.
-
05Machine learning
Language Detection using N-Grams
Part 1 of 2 How n-grams, short slices of text, give every language a recognisable profile. Comparing a document's profile with each language's using an out-of-place rank is enough to tell which language it is written in.
-
04Infrastructure
Dockerise, Deploy, Update Code, Repeat
A Spring Boot Hello World, packaged with Docker, pushed to a private registry and run on Kubernetes in Google Container Engine. Then a rolling update ships new code without taking the app down.
-
06Web
The Three Little Modules and the slick Universal Loader
Global, CommonJS and AMD modules, built up from the simple fact that only functions create scope in JavaScript. A universal loader like SystemJS then lets all three live in the same project.
-
06Web
Slack! Hubot! Github!
Set up a Slack team, connect Hubot, and write a small plugin that talks to GitHub. Ask hubot followup in Slack and the bot lists the issues that need following up.
-
03Functional programming
Houses, Arrays and Higher Order Functions
Filter, map and reduce, put to work on a dataset of house listings. Four-bedroom houses in Cambria or the average listing price take a few composed functions, and maybe turn up a dream home.
-
03Functional programming
Higher Order Functions in Practice
Summing integers, cubes and factorials starts as three near-identical functions. A higher order function folds them into one, showing how JavaScript's first-class functions simplify everyday code.
-
03Functional programming
Data Abstraction and Closures
SICP's picture language, translated from Scheme to JavaScript, where painters are just functions. Combining them with closures builds intricate patterns from simple parts, and shows why stratified design keeps programs easy to change.































