<feed xmlns="http://www.w3.org/2005/Atom"> <id>https://ndthuan.com/</id><title>{ndt.write();}</title><subtitle>Software engineer exploring AI, software systems, and how technology changes the way we work.</subtitle> <updated>2026-11-12T20:17:13+07:00</updated> <author> <name>Thuan Nguyen</name> <uri>https://ndthuan.com/</uri> </author><link rel="self" type="application/atom+xml" href="https://ndthuan.com/feed.xml"/><link rel="alternate" type="text/html" hreflang="en" href="https://ndthuan.com/"/> <generator uri="https://jekyllrb.com/" version="4.4.1">Jekyll</generator> <rights> © 2026 Thuan Nguyen </rights> <icon>/assets/img/favicons/favicon.ico</icon> <logo>/assets/img/favicons/favicon-96x96.png</logo> <entry><title>WebAssembly SIMD for Exact All-Pairs Clustering: From 428 s to 8 s in Node.js</title><link href="https://ndthuan.com/webassembly-simd-exact-all-pairs-clustering/" rel="alternate" type="text/html" title="WebAssembly SIMD for Exact All-Pairs Clustering: From 428 s to 8 s in Node.js" /><published>2026-11-12T08:00:00+07:00</published> <updated>2026-11-12T08:00:00+07:00</updated> <id>https://ndthuan.com/webassembly-simd-exact-all-pairs-clustering/</id> <content type="text/html" src="https://ndthuan.com/webassembly-simd-exact-all-pairs-clustering/" /> <author> <name>Thuan Nguyen</name> </author> <category term="Software Engineering" /> <summary>A news clustering job that compares every pair of article embeddings fell from 428 s to about 8 s at 30,000 articles with a hand-written WebAssembly SIMD kernel on every core, and the join decisions stayed identical. What failed first, what worked, and how exactness was kept.</summary> </entry> <entry><title>When PostgreSQL JIT Costs More Than the Query: Measuring Compile Time on Short Queries</title><link href="https://ndthuan.com/postgresql-jit-short-queries/" rel="alternate" type="text/html" title="When PostgreSQL JIT Costs More Than the Query: Measuring Compile Time on Short Queries" /><published>2026-11-11T08:00:00+07:00</published> <updated>2026-11-11T08:00:00+07:00</updated> <id>https://ndthuan.com/postgresql-jit-short-queries/</id> <content type="text/html" src="https://ndthuan.com/postgresql-jit-short-queries/" /> <author> <name>Thuan Nguyen</name> </author> <category term="Software Engineering" /> <summary>A PostgreSQL query that runs in 11 ms spent 119 ms end to end, 108 of them compiling it with LLVM JIT. A reproducible experiment on PostgreSQL 16, 17 and 18: where the cost thresholds sit, what each tier costs, and how to switch it off at the right scope.</summary> </entry> <entry><title>From launchd Plists to Jenkins to My Own CI: Building kipp, a 50 MB Scheduler</title><link href="https://ndthuan.com/kipp-single-binary-ci-scheduler/" rel="alternate" type="text/html" title="From launchd Plists to Jenkins to My Own CI: Building kipp, a 50 MB Scheduler" /><published>2026-11-03T10:30:00+07:00</published> <updated>2026-11-03T10:30:00+07:00</updated> <id>https://ndthuan.com/kipp-single-binary-ci-scheduler/</id> <content type="text/html" src="https://ndthuan.com/kipp-single-binary-ci-scheduler/" /> <author> <name>Thuan Nguyen</name> </author> <category term="DevSecOps" /> <summary>Scheduled jobs in launchd plists had no visibility, Jenkins fixed that and ate gigabytes of memory, and GitHub Actions ran out of minutes. So I built kipp: one Go binary, jobs as YAML, a DAG of stages, multibranch builds, and about 50 MB resident.</summary> </entry> <entry><title>Wrangler's test harness hangs forever under Bun, and why</title><link href="https://ndthuan.com/wrangler-dev-under-bun-hangs/" rel="alternate" type="text/html" title="Wrangler&amp;apos;s test harness hangs forever under Bun, and why" /><published>2026-10-24T09:00:00+07:00</published> <updated>2026-10-24T09:00:00+07:00</updated> <id>https://ndthuan.com/wrangler-dev-under-bun-hangs/</id> <content type="text/html" src="https://ndthuan.com/wrangler-dev-under-bun-hangs/" /> <author> <name>Thuan Nguyen</name> </author> <category term="Software Engineering" /> <summary>Under Bun, wrangler's createTestHarness() listens fine and then every request hangs with no error. The cause is Bun's fetch() ignoring the undici dispatcher Miniflare routes requests through - and wrangler 4.151.3 now fails fast with a message that says so.</summary> </entry> <entry><title>Why Cache Capacity Is Decided by Bytes You Never Counted: Five Rust Layout Changes That Cut 1.1.1.1's DNS Cache 56 Percent</title><link href="https://ndthuan.com/dns-cache-memory-layout/" rel="alternate" type="text/html" title="Why Cache Capacity Is Decided by Bytes You Never Counted: Five Rust Layout Changes That Cut 1.1.1.1&amp;apos;s DNS Cache 56 Percent" /><published>2026-10-15T09:00:00+07:00</published> <updated>2026-10-15T09:00:00+07:00</updated> <id>https://ndthuan.com/dns-cache-memory-layout/</id> <content type="text/html" src="https://ndthuan.com/dns-cache-memory-layout/" /> <author> <name>Thuan Nguyen</name> </author> <category term="Software Engineering" /> <summary>Cloudflare cut 1.1.1.1's DNS cache from 953 to 420 bytes per entry with five Rust layout changes, freeing about 100 TB of RAM. A walkthrough of each change and the arithmetic that made it pay.</summary> </entry> </feed>
