Sunday, 18 October 2026

18 entries · final
Concept of the day · databases

Write Skew

Two transactions that are individually correct can break an invariant together.

The mechanism. Under snapshot isolation, each transaction reads a consistent snapshot and writes rows no one else wrote. No write-write conflict occurs, so both commit. But each made its decision based on rows the other then changed. The invariant spanned both row sets, and nothing checked it.

The canonical example. Hospital rule: at least one doctor on call. Alice and Bob are both on call. Each opens a transaction, reads "two doctors on call, fine", and takes themselves off. Both commit. Zero doctors on call. Neither transaction wrote a row the other read-locked, because snapshot isolation locks nothing on read.

Recognising it in your own code. Look for: read a set of rows, make a decision from an aggregate over them, then write. Booking the last seat, enforcing a unique username without a unique index, enforcing a balance floor across several accounts, claiming a job from a queue.

The fixes, in order of preference. A database constraint (unique index, check, exclusion constraint) — the database checks it for you. Then SERIALIZABLE isolation (PostgreSQL's SSI will abort one transaction; you must retry). Then materialising the conflict: lock an explicit row that represents the invariant, so the two transactions do conflict.

Takeaway. "We use transactions" does not mean "our invariants hold". Isolation level is part of the invariant.

0 of 18 read

Top Reads

5

Articles and engineering write-ups worth the full read.

The Decoherence Trap: When AI slop drowns out the signal in an endless sea of noise

maevyn.codes·Lobsters·48 points / 18 commentsvibecodingthread →

Getting Canceled

youtube.com·Lobsters·38 points / 1 commentsvideozigthread →

You could have invented transformers from memory

https://twitter.com/heyyalexwang/status/2111158818730397932

alexwang.ai·Hacker News·528 points / 121 commentsthread →

Apple ML Research: Muse Spark Open with MLX on Mac Studio

machinelearning.apple.com·Hacker News·362 points / 205 commentsthread →

Intuitive concurrent programming in any language

lf-lang.org·Lobsters·20 points / 8 commentsprogrammingthread →

Shipped

4

Releases, changelogs, cloud and language news.

FOSDEM PGDay 2027: two days of PostgreSQL, with calls for papers and sponsors now open!

Join us for FOSDEM PGDay 2027 on January 28 and 29 at the Brussels Marriott Hotel Grand Place . This year, we're expanding to two days, bringing you more PostgreSQL talks and more time to connect with fellow enthusiasts from around the world. Start your FOSDEM trip with dedicated PostgreSQL content, then enjoy the main FOSDEM event over the weekend! - New for 2027: sponsor the event - For the firs

postgresql.org·PostgreSQL Newspostgres

AI Gateway logs now show session affinity

vercel.com·Vercelcloudinfra

Episode 72 “OpenJDK Bug Fixing, JavaOne, and JDK 28” [IJN]

A critical bug in JDK 27 and how it was fixed, some conference news, and how JDK 28 is shaping up

inside.java·Inside Javahotspotcommunityjdk 28

Workers, Cloudflare CLI - Test Cron Triggers with Local Explorer

Local Explorer can now send one-off Cron Trigger invocations to a Worker's scheduled() handler during local development. This removes the need to construct request URLs when testing handler behavior. Start your local development server with cf dev , wrangler dev , or the Cloudflare Vite plugin . Open /cdn-cgi/local/explorer on the server URL and select Cron Triggers . The browser interface support

developers.cloudflare.com·Cloudflare Changelogworkerscloudflare clicloud

Repos

3

Projects gaining real traction, and what they actually do.

tangency-labs/solidcraft

SolidCraft: an open-source parametric 3D CAD application built in pure Rust. Desktop, web, and automation through MCP.

github.com·GitHubrust3d-modelingbrep

Graphify-Labs/graphify

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.

github.com·GitHubpythonai-agentsantigravity

storytold/figcraft

FigCraft: interface design and prototyping; an open-source, clean-room reimplementation of collaborative design workflows in pure Rust

github.com·GitHubrustdesigntools

Discussion

2

Threads where the comments are the content.

Do you let LLMs write both your tests and your code?

I'm curious what stance others have taken? Or what they've experienced with this? I'm toying with adding a rule to our values.md that the LLM can only significantly generate one or the other. I'm reviewing a merge request at the moment where it's clear the LLM mostly did both, and they're highly tautological. And I can see how it over engineered the code, just to be able to write more tests almost

lobste.rs·Lobsters·16 points / 14 commentsaskvibecoding

Chrome and Edge are removing XSLT: what breaks and what does not

doctor-seo.net·Hacker News·103 points / 114 commentsthread →

AI

3

Capped on purpose, so it does not eat the edition.

DeepSeek-v4.1-Flash-1017

https://api-docs.deepseek.com/news/news261017/ https://openrouter.ai/deepseek/deepseek-v4.1-flash-1017

huggingface.co·Hacker News·765 points / 613 commentsthread →

EP229: 8 Chunking strategies for RAG-based agents

The all-in-one intelligent cloud (Sponsored) Y our app, live in seconds, for free. Railway’s push-button compute, storage, and networking is available immediately upon sign-up. Humans and agents alike operate on one vertically integrated system including hardware, software, and a prompt-to-production experience. Sign up with the link below for free cloud credits and let your agents cook. Sta

blog.bytebytego.com·ByteByteGosystem design

How Itaú is building generative AI for its entire customer base

With ia.i, a conversational interface, and the IARA governance platform, Itaú is applying its AI First strategy to customers and employees — in one of Brazil’s most regulated sectors.

openai.com·OpenAIai

Deep

1

One paper or long teardown.

TraHist: Fast and Accurate Cardinality Estimation for Trajectory Data (Extended Version)

Cardinality estimation is fundamental for query optimization in database systems. Histogram-based estimators are widely used for their simplicity and efficiency but rely on point-centric partitioning that assumes record independence. This assumption breaks in trajectory data, where records from the same moving object show strong spatiotemporal dependencies. Conventional axis-aligned histograms the

arxiv.org·arXiv CScs.dbpaper

Revision

1 from earlier editions

Answer each one before you open it.

Which consistency guarantee stops a user from seeing their own edit disappear?3d ago

The weakest guarantee that stops a user seeing their own edit vanish.

Concept · Read-Your-Writes Consistency