Daily Edition · Page 5

THE DAILY INDEX

Technology, AI, software, security, crypto and business

ARTICLES & TUTORIALS

TLDR Dev

SCALING REDIRECTS TO INFINITY ON VERCEL

Vercel had latency and cost challenges scaling web redirects to millions using existing routing rules and middleware. Their initial solution involved sharding redirect data into JSONL files and using Bloom filters for fast "no redirect" checks, but parsing entire JSON shards for positive matches still caused performance bottlenecks. To overcome this, they implemented a binary search over sorted redirect keys within each shard, allowing them to retrieve individual redirect data without parsing the entire shard.

XCODEGEN AND THE QUEST TO MODULARIZE THE WEALTHFRONT IOS APP

Wealthfront's decade-old iOS app, a monolithic structure, faced challenges like merge conflicts, opaque build configurations, and slow build times due to its single module design. To address this, the team adopted XcodeGen, an open-source command-line tool that generates Xcode project files from declarative YAML, eliminating the `.xcodeproj` file from source control. This immediately resolved merge conflicts and made build configurations human-readable and auditable.

I PUT A FULL JVM INSIDE A BROWSER TAB. IT "WORKS". TECHNICALLY. EVENTUALLY

JavaBox is a project that runs a full OpenJDK Java Virtual Machine entirely within a web browser tab, without requiring any server-side processing. This system involves a 227MB WebAssembly blob that emulates a Linux environment via QEMU, which then hosts OpenJDK, with a custom "CompileServer" daemon improving compile times. While technically functional, the system is slow, taking approximately 55 seconds to display "Hello World" from page load.

TLDR IndexPage 5