Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Ladybird 13 min read Release hardMaster

This Month in Ladybird - August 2026

Ladybird's August 2026 progress centres on a sustained engine performance push. A new incremental style engine treats DOM mutations as typed deltas routed to dependent selectors, and is checked against a cache-free reference evaluator and replayed session recordings. Layout results are now cached by formatting-context input constraints, and opacity and transform CSS animations run on the compositor. Together these lifted StyleBench from about 3.5 to 83 and Speedometer 2 from about 47 to 64. Other changes include CSS parsing and painting moving to Rust behind A/B equivalence checks, caging of NaN-boxed JS cell pointers into a reserved heap region, a single sandboxed WasmCompiler service, MSE support for fMP4/H.264/HEVC/AV1, CSS scroll snap, and JS debugging in DevTools.

Assumes: browser rendering pipelineCSS cascade and selectorsJavaScript engine internals

Related posts

  • This Month in Ladybird - October 2026

    Ladybird easyNovice

    Ladybird moved style, layout and paint recording onto separate threads that run concurrently with JavaScript, so CSS animations (including layout-affecting ones) and :hover keep working during long scripts, while layout queries from script wait for pending work to avoid stale data. LibJS gained a speculative optimizing JIT for x86-64 and AArch64 driven by runtime type and shape profiling, validated with a differential fuzzer against the interpreter. A new Rust WebAssembly engine with a flap-written interpreter and tiered JIT replaced the C++ engine and Cranelift, scoring about 7x higher on JetStream 3 Wasm, and Ladybird passed Safari Technology Preview on WPT with help from AI coding agents. Other changes include finer process isolation (per-site network processes, out-of-process iframes), sandbox-escape fixes, more C++-to-Rust migration, a redesigned UI and many new CSS and web APIs.

  • We Have to Start Over: From Atom to Zed

    Zed easyNovice

    Zed's co-founders explain why they abandoned Atom's Electron/JavaScript stack and rebuilt a code editor in Rust: JavaScript's pointer-chasing arrays, uncontrollable GC pauses, and the costly JS/C++ boundary for multithreading made performance work feel like fighting the platform. Rust's ownership model pushed them toward a copy-on-write B-tree (SumTree) rope built on Arc, letting snapshots move to background threads in O(1), and high-level Rust code cut a find-all-matches operation from 1s to 4ms. GPU rendering with custom shaders and signed distance fields came out of necessity after Pathfinder proved too slow. Owning the stack (Tree-sitter, GPUI) lets them change anything, such as adding WASM language extensions, at the cost of building more themselves.

  • Bun 1.4

    Bun mediumAdept

    Bun 1.4 adds 1,517 newly passing Node.js test-suite tests, fixes over 2,900 issues, and rewrites Bun from Zig to Rust. JavaScriptCore now uses an extended mimalloc instead of libpas, adding a scavenger thread, partial page clearing and better lazy zeroing. Together with GC timer tuning, segmented-array Strong roots and fewer futex calls, this cuts idle CPU 5x, HTTP server peak memory 13–48%, and Linux startup time in half. New APIs include Bun.Image, Bun.WebView, Bun.markdown, Bun.cron and Bun.Terminal, plus Markdown CPU, heap and bundle profiles and a cross-platform memoryPressure event built on kqueue, PSI and Windows resource notifications.

  • Optimizing WebKit & Safari for Speedometer 3.0

    WebKit hardMaster

    WebKit's Speedometer 3.0 work spans JavaScriptCore, DOM, style, layout, rendering and Safari itself, with measured gains for each change. The largest wins came from letting the simple text path handle font-variant-caps (4.5x on Editor-TipTap, ~7% overall) and from scheduling incremental sweeping and garbage collection opportunistically between rendering updates (6.5% on Speedometer 3.0). Other changes include reworked megamorphic and call inline caches, retuned inlining heuristics, lazy JIT code destruction, enum-based RenderObject type checks, cached CSS custom property resolution, and a larger IOSurface cache (hit rate ~30% to ~80%). Profile-guided optimization interacts with code changes in a surprising way: some improvements only appear, or briefly regress, until the PGO profiles refresh.

  • Bringing Goodnotes to the web with Swift and WebAssembly

    Swift.org mediumAdept

    Goodnotes runs the same Swift code behind its iPad app in browsers by compiling it to WebAssembly with SwiftWasm, sharing 1.47M lines (66% of the 2.2M-line web codebase) including a rendering engine that targets Metal on iOS and WebGL on the web. The port required replacing libdispatch with Swift Concurrency, fixing code that assumed a 64-bit Int on wasm32, and abstracting I/O through dependency injection. WASI threads with Web Workers and SharedArrayBuffer, plus custom actor executors (SE-0392) that pin actors to specific workers, more than doubled INP but require cross-origin isolation. The roughly 50 MB binary (12 MB with Brotli) is cached with Service Workers, and Chrome DevTools debugging and a custom wasm-memprof heap profiler make the tooling workable. The WebAssembly support is upstreamed as of Swift 6.2.

The quest for software engineering knowledge.

Look:
Layout: