BlogFeatured 10 times

Farid Zakaria’s Blog

I’m a software engineer, father and wishful amateur surfer. If you’ve come seeking my political views, you’ve found the wrong Fareed.

Visit fzakaria.com

Recent posts

Newest first
  1. Keep it SSA, stupid

    LLMs may find Static Single Assignment (SSA) code easier to reason about than code with mutable variables, according to an experiment using Rust and LLVM IR.

  2. Programming languages are for humans

    borrIR is a borrow checker for LLVM IR, designed to enforce memory safety at the assembly level for agentic engineering.

  3. Your phone is a Kubernetes node

    Tabernetes transforms browser tabs into Kubernetes nodes, enabling phones to join a live cluster running Linux kernels within the browser.

  4. Browser tabs as a container runtime

    tabc is a container runtime that leverages a browser's sandbox and WebAssembly to run Linux containers without a host kernel or virtual machine.

  5. 2035 came early

    Linux compiled to WebAssembly via unkernel.dev enables graphical and audio experiences in the browser, significantly faster than previous emulation methods.

  6. Genrules all the way down

    The largest Bazel workspace of genrules, fzakaria/genrulify-nixpkgs, transpiles Nixpkgs into Bazel genrules for 219 packages, demonstrating a new approach to managing third-party software.

  7. Build systems à la trace

    Retroactively converting monadic Nix builds into applicative Bazel builds is feasible by tracing execution with Rewind and applying static single assignment principles.

  8. beer.drv.drv.drv

    Dynamic derivations in Nix, an experimental feature, allow a derivation to produce other derivations, potentially matching build speeds of systems like Bazel.

  9. Worshipping at the altar of Brendan Gregg

    A new Rewind time command analyzes recordings to reveal performance bottlenecks and critical paths, inspired by Brendan Gregg's work.

  10. What if every Nix build were bit-reproducible?

    Rewind, a deterministic virtual machine, aims to make every Nix build bit-reproducible by capturing implicit build inputs.

  11. Making profile-guided optimization reproducible

    Profile-guided optimization (PGO) is not reproducible due to non-deterministic training runs, but a deterministic virtual machine may offer a solution.

  12. The intensional model in disguise

    Nix, Bazel, and buck2 share a common intensional model where outputs and actions are addressed by content, unlike the traditional extensional model.

  13. Rewinding by fast-forwarding

    Rewind is a deterministic virtual machine that records program execution, enabling backward debugging to trace memory value history and identify read/write operations.

  14. Why does shuffling the schedule find so many bugs?

    Shuffling execution schedules reveals bugs by exposing rare event orderings that standard tests often miss.

  15. A clock made of branches

    Rewind's deterministic VM uses instruction stream progress, specifically conditional branch counts, as a reliable measure of time for accurate replays.

  16. Reading the code is the hard part

    Rewind VM's deterministic debugging combined with AI agents can efficiently find and fix bugs by analyzing code execution traces and identifying discrepancies.