---
title: "Compilers (hard)"
description: "Compiler design, optimization passes, code generation, JITs"
url: "https://swe.quest/tags/compilers?difficulty=hard&per=96"
---

# Compilers (hard)

Topic in Compilers & runtimes: Compiler design, optimization passes, code generation, JITs

By difficulty: [Easy](https://swe.quest/tags/compilers.md?difficulty=easy) · [Medium](https://swe.quest/tags/compilers.md?difficulty=medium) · [Hard](https://swe.quest/tags/compilers.md?difficulty=hard)

Posts 1–36 of 36, page 1 of 1, newest first.

## 2026-11-16

- [Last year we built megakernels. This year we deleted them: The road to Together Compiler](https://swe.quest/articles/last-year-we-built-megakernels-this-year-we-deleted-them-the-road-to-together-8e97dcf4bda731c8.md): Together AI · 2026-11-16 · Hard · 28 min read · Compilers, Inference & serving, Performance engineering, Hardware
  Megakernels for Llama 1B hit 990 TPS on H100 but were too inflexible to productionize, supporting only one model, batch size and precision.

## 2026-11-10

- [How We Built TLX: A Hardware-Native GPU Compiler for Production ML at Scale](https://swe.quest/articles/how-we-built-tlx-a-hardware-native-gpu-compiler-for-production-ml-at-scale-f66815adb066ecad.md): Meta Engineering · 2026-11-10 · Hard · 17 min read · Compilers, Hardware, Performance engineering, Language design, Model training
  Triton Low-Level Extensions (TLX) add explicit warp-group, synchronization, memory and cluster-level orchestration to Triton, so engineers can use Hopper and Blackwell features such as TMA, TMEM, mbarriers and paired-CTA execution without dropping to CUDA.

## 2026-11-07

- [JIT bitmap text rendering for microcontrollers](https://swe.quest/articles/jit-bitmap-text-rendering-for-microcontrollers-b2c91e4d8888665c.md): Linebender · 2026-11-07 · Hard · 13 min read · Compilers, Performance engineering, Hardware, Algorithms
  Proportionally spaced, kerned bitmap text on the RP2350 renders fast enough to race the beam by JIT-compiling each string into ARM Cortex-M33 code.

## 2026-11-06

- [Writing a DSL for high performance parallel programming in OxCaml](https://swe.quest/articles/writing-a-dsl-for-high-performance-parallel-programming-in-oxcaml-5f7bd51c2038a2c3.md): Jane Street Tech Blog · 2026-11-06 · Hard · 17 min read · Compilers, Functional programming, Language design, Performance engineering, Hardware
  A Jane Street intern built a JIT compiler for an SPMD-style DSL in OxCaml so SIMD kernels for options pricing and risk checks can be written once as ordinary-looking OxCaml functions instead of architecture-specific C intrinsics.

## 2026-11-04

- [Together Compiler: Continual Compilation for AI inference](https://swe.quest/articles/together-compiler-continual-compilation-for-ai-inference-d1283db901cce6b0.md): Together AI · 2026-11-04 · Hard · 6 min read · Inference & serving, Compilers, AI agents, Performance engineering
  Together Compiler (TKCC) is an agent-driven continual optimization loop that recompiles inference engines as model, hardware and traffic shape drift.

## 2026-10-02

- [Arch-specific SIMD in Go](https://swe.quest/articles/arch-specific-simd-in-go-2992a831c4663686.md): The Go Blog · 2026-10-02 · Hard · 11 min read · Go, Performance engineering, Compilers, Hardware, WebAssembly
  Go 1.27 extends the experimental architecture-specific SIMD API (simd/archsimd, enabled with GOEXPERIMENT=simd) from amd64 to arm64 NEON and wasm 128-bit SIMD.

## 2026-09-30

- [Trading off compute for memory with activation checkpointing](https://swe.quest/articles/trading-off-compute-for-memory-with-activation-checkpointing-1f2b8d13685e738d.md): Jane Street Tech Blog · 2026-09-30 · Hard · 9 min read · Model training, Memory management, Compilers, Performance engineering, Python
  A whole-graph activation checkpointing planner for torch.compile takes an absolute GB memory budget and greedily drops min-cut saves with the cheapest recompute cost per byte of peak memory freed.

## 2026-09-24

- [Platform-independent SIMD in Go](https://swe.quest/articles/platform-independent-simd-in-go-f8d408cca35d2358.md): The Go Blog · 2026-09-24 · Hard · 18 min read · Go, Performance engineering, Hardware, Compilers, API design
  Go 1.27 adds an experimental, size-agnostic \`simd\` package, loosely modeled on Highway for C++.

## 2026-09-11

- [Module Tracking in Swift Debug Info](https://swe.quest/articles/module-tracking-in-swift-debug-info-924221c1e8f2aa55.md): Swift.org · 2026-09-11 · Hard · 9 min read · Swift, Debugging, Build systems, Compilers, Developer tools
  Swift 6.3 and 6.4 change how explicitly-built Swift modules are referenced in debug info so LLDB's expression evaluator can import the exact module for the code at a breakpoint instead of looking it up by base name.

## 2026-09-10

- [On Binary Translation and its Consequences](https://swe.quest/articles/on-binary-translation-and-its-consequences-03315e429b313fa2.md): Chips and Cheese · 2026-09-10 · Hard · 13 min read · Hardware, Performance engineering, Compilers, Runtimes & VMs
  Running Geekbench 7's x86-64 build under Windows 11's Prism binary translator roughly doubles executed aarch64 instruction counts and costs several CPU generations' worth of performance, with vectorized AVX workloads like Video Player hit hardest and branch/memory-bound ones like Navigation least.

## 2026-09-09

- [A “proof” of Fermat’s Last Theorem that fits the margin](https://swe.quest/articles/a-proof-of-fermat-s-last-theorem-that-fits-the-margin-b44a4aebaeb677ac.md): Trail of Bits · 2026-09-09 · Hard · 2 min read · Vulnerability research, Formal methods, Memory safety, Compilers
  A bug in Lean's String.Pos.Raw.extract let a bogus "proof" of Fermat's Last Theorem typecheck.

## 2026-07-17

- [Journey to Root, Episode I: The Maglev King](https://swe.quest/articles/journey-to-root-episode-i-the-maglev-king-49a6ac5d378286bb.md): Calif · 2026-07-17 · Hard · 46 min read · Vulnerability research, Browsers, Memory safety, Compilers, AI for coding
  A three-person team used AI assistants to discover and weaponize a five-vulnerability Google Chrome exploit chain, including a Maglev representation-confusion bug that causes incorrect write-barrier elision, a JavaScript Promise Integration sandbox escape, and an ExternalOneByteString information leak.
- [Running unmodified Doom in the SQLite bytecode language](https://swe.quest/articles/running-unmodified-doom-in-the-sqlite-bytecode-language-75f412e9cb0f0591.md): Turso · 2026-07-17 · Hard · 12 min read · Compilers, SQLite, Runtimes & VMs, Storage engines, C & C++
  Turso compiles unmodified Doom C source to SQLite's VDBE bytecode by using LLVM as a frontend and a custom backend, vdbecc, that lowers LLVM IR to VDBE.

## 2026-06-11

- [Profiling in PyTorch (Part 2): From nn.Linear to a Fused MLP](https://swe.quest/articles/profiling-in-pytorch-part-2-from-nn-linear-to-a-fused-mlp-9b220b5d3b1f868e.md): Hugging Face · 2026-06-11 · Hard · 19 min read · Performance engineering, Python, Machine learning, Compilers
  Profiling an nn.Linear on an A100 shows a single cuBLAS/CUTLASS GEMM kernel with the bias folded in as an epilogue via aten::addmm, while aten::t only rewrites strides on the CPU and launches nothing.

## 2026-04-02

- [KernelEvolve: How Meta’s Ranking Engineer Agent Optimizes AI Infrastructure](https://swe.quest/articles/kernelevolve-how-meta-s-ranking-engineer-agent-optimizes-ai-infrastructure-d31b329bdf84a06a.md): Meta Engineering · 2026-04-02 · Hard · 14 min read · AI agents, Performance engineering, Hardware, Compilers, Recommendations & ranking
  KernelEvolve is Meta's agentic kernel-authoring system that treats kernel optimization as a search problem instead of one-shot LLM code generation.

## 2026-03-31

- [Introducing the JetStream 3 Benchmark Suite](https://swe.quest/articles/introducing-the-jetstream-3-benchmark-suite-df1c85fb12e2a75d.md): WebKit · 2026-03-31 · Hard · 21 min read · Runtimes & VMs, WebAssembly, Compilers, Memory management, Performance engineering
  JetStream 3 replaces JetStream 2's separate Wasm Startup/Runtime scores with the JavaScript-style first-iteration, worst-case and average-case scoring.

## 2025-06-24

- [Speculative Optimizations for WebAssembly using Deopts and Inlining](https://swe.quest/articles/speculative-optimizations-for-webassembly-using-deopts-and-inlining-bb89e7c53ac7945f.md): V8 · 2025-06-24 · Hard · 17 min read · WebAssembly, Compilers, Runtimes & VMs, Performance engineering
  V8 in Chrome M137 adds speculative call\_indirect inlining and deoptimization support for WebAssembly, using runtime call-target feedback gathered by the Liftoff baseline compiler so TurboFan can inline up to four likely callees behind cheap instance and target checks.

## 2025-03-25

- [Land ahoy: leaving the Sea of Nodes](https://swe.quest/articles/land-ahoy-leaving-the-sea-of-nodes-b461320cb50dc764.md): V8 · 2025-03-25 · Hard · 25 min read · Compilers, Runtimes & VMs, JavaScript, WebAssembly
  V8 is replacing Sea of Nodes in its Turbofan optimizing compiler with Turboshaft, a traditional control-flow-graph IR.

## 2025-02-25

- [Turbocharging V8 with mutable heap numbers](https://swe.quest/articles/turbocharging-v8-with-mutable-heap-numbers-d32025b1d5ea1f1c.md): V8 · 2025-02-25 · Hard · 5 min read · Runtimes & VMs, Compilers, JavaScript, Performance engineering, Memory management
  V8 eliminated a performance cliff in JetStream2's async-fs benchmark caused by a custom Math.random whose \`seed\` lives in a ScriptContext slot.

## 2025-01-15

- [Unraveling a Postgres segfault that uncovered an Arm64 JIT compiler bug](https://swe.quest/articles/unraveling-a-postgres-segfault-that-uncovered-an-arm64-jit-compiler-bug-3a4fc2ffe09ef0c2.md): Datadog Engineering · 2025-01-15 · Hard · 19 min read · PostgreSQL, Compilers, Debugging, Hardware, Incidents & postmortems
  Postgres crashes with segfaults on Arm64 instances were traced to JIT-compiled tuple-deforming code, and ultimately to a bug in LLVM's Arm64 code generation.

## 2024-08-29

- [ICFP 2024](https://swe.quest/articles/icfp-2024-a2b848db9d4cf383.md): Jane Street Tech Blog · 2024-08-29 · Hard · 8 min read · Functional programming, Type systems, Language design, Memory management, Compilers
  Jane Street's OCaml Language team brings nine papers and talks to ICFP 2024 and describes its compiler-branch extensions: modal types (modes like local and unique) for Rust-like control over allocation and data-race-free parallelism, and a kind system for unboxed layouts.

## 2024-04-10

- [Introducing the next-gen Meta Training and Inference Accelerator](https://swe.quest/articles/introducing-the-next-gen-meta-training-and-inference-accelerator-bf598e586267b839.md): Meta Engineering · 2024-04-10 · Hard · 9 min read · Hardware, Inference & serving, Recommendations & ranking, Compilers
  Meta's second-generation MTIA inference accelerator, built on TSMC 5nm at 1.35GHz and 90W, more than doubles compute and memory bandwidth over v1.

## 2023-12-08

- [Postgres Language Server: implementing the Parser](https://swe.quest/articles/postgres-language-server-implementing-the-parser-3a3e33745c9c0915.md): Supabase · 2023-12-08 · Hard · 14 min read · PostgreSQL, Compilers, Rust, Developer tools, SQL
  A Postgres language server's parser builds on libpg\_query rather than a custom grammar, and has to work around two gaps in it.

## 2023-11-01

- [A new way to bring garbage collected programming languages efficiently to WebAssembly · V8](https://swe.quest/articles/a-new-way-to-bring-garbage-collected-programming-languages-efficiently-to-667c409700cf29b4.md): V8 · 2023-11-01 · Hard · 20 min read · WebAssembly, Memory management, Runtimes & VMs, Compilers
  Garbage-collected languages like Java, Kotlin, Dart, Python and C# can reach WebAssembly in two ways: compile an existing language VM to linear-memory WasmMVP, or lower the language's objects onto WasmGC structs and arrays managed by the host VM's garbage collector.

## 2023-10-03

- [CPU Dispatch in ClickHouse](https://swe.quest/articles/cpu-dispatch-in-clickhouse-5bbf7a6eb81cd552.md): ClickHouse · 2023-10-03 · Hard · 16 min read · C & C++, Performance engineering, Compilers, Hardware, Analytics & OLAP
  CPU dispatch lets a single binary use SIMD instruction sets like AVX2 and AVX-512 while staying compatible with older CPUs: hot functions are compiled for several targets with the target attribute, and the best variant is chosen at runtime using CPUID feature checks.

## 2023-07-18

- [Contributing support for a Wasm instruction to Winch](https://swe.quest/articles/contributing-support-for-a-wasm-instruction-to-winch-3a4d14391ef1d680.md): Shopify Engineering · 2023-07-18 · Hard · 9 min read · WebAssembly, Compilers, Rust, Testing, Open source
  Adding a WebAssembly instruction to Winch, Wasmtime's baseline non-optimizing compiler, touches several layers: the wasmparser VisitOperator visitor, the CodeGenContext that manages the value stack, register allocation and spilling, an ISA-independent MacroAssembler, and an x86\_64 assembler built on Cranelift's ISLE-generated instruction definitions.

## 2023-05-26

- [Oxidizing OCaml: Locality](https://swe.quest/articles/oxidizing-ocaml-locality-b1f7bf98d1488c18.md): Jane Street Tech Blog · 2023-05-26 · Hard · 13 min read · Functional programming, Type systems, Memory management, Language design, Compilers
  Jane Street is extending OCaml with modes, starting with a locality mode that marks values as local (cannot escape their region) or global, so the compiler can stack-allocate short-lived values while keeping garbage collection everywhere else.

## 2023-05-18

- [Meta introduces its first-generation AI inference accelerator](https://swe.quest/articles/meta-introduces-its-first-generation-ai-inference-accelerator-ada8e18664455a57.md): Meta Engineering · 2023-05-18 · Hard · 8 min read · Hardware, Inference & serving, Recommendations & ranking, Compilers
  MTIA v1 is Meta's first custom inference ASIC for deep learning recommendation models: a TSMC 7nm, 800 MHz, 25 W chip delivering 102.4 INT8 TOPS, built from an 8x8 mesh of processing elements with customized RISC-V cores, fixed-function units, 128 KB local SRAM each, 128 MB shared on-chip SRAM and up to 128 GB LPDDR5.

## 2022-11-23

- [JIT in ClickHouse](https://swe.quest/articles/jit-in-clickhouse-a3bd9587dc26e5d4.md): ClickHouse · 2022-11-23 · Hard · 27 min read · Compilers, Query engines, C & C++, Performance engineering, Analytics & OLAP
  Just-in-time compilation is built up from first principles: hand-encoding x86-64 instructions into an mmap'd executable page, calling back into host functions via pointers, and reading ELF sections to see where code and constants live.

## 2022-10-12

- [Porting the Solana eBPF JIT compiler to ARM64](https://swe.quest/articles/porting-the-solana-ebpf-jit-compiler-to-arm64-2640f585a04d44ad.md): Trail of Bits · 2022-10-12 · Hard · 11 min read · Compilers, Runtimes & VMs, Rust, Sandboxing & isolation, Memory safety
  Solana's RBPF JIT compiler, which translates eBPF smart contracts to native code on validators, was ported from x86-only to ARM64, and its x86 backend gained Windows support.

## 2022-05-02

- [How the Cinder JIT’s function inliner helps us optimize Instagram](https://swe.quest/articles/how-the-cinder-jit-s-function-inliner-helps-us-optimize-instagram-bec4e8e06857e7ce.md): Meta Engineering · 2022-05-02 · Hard · 13 min read · Compilers, Python, Runtimes & VMs, Performance engineering
  Cinder, Instagram's open-source CPython fork, ships a method-at-a-time JIT that lowers bytecode through HIR, SSA, LIR and register allocation to native code, removing interpreter dispatch and stack overhead.

## 2022-03-15

- [VESPA: Static profiling for binary optimization](https://swe.quest/articles/vespa-static-profiling-for-binary-optimization-e63042c42d2a6f6d.md): Meta Engineering · 2022-03-15 · Hard · 3 min read · Compilers, Performance engineering, Machine learning
  VESPA (Vintage ESP Amended) lets the BOLT binary optimizer run without dynamic profiling by predicting branch probabilities statically.

## 2021-09-13

- [Superpack: Pushing the limits of compression in Facebook’s mobile apps](https://swe.quest/articles/superpack-pushing-the-limits-of-compression-in-facebook-s-mobile-apps-cb66a7a2bfc6bd02.md): Meta Engineering · 2021-09-13 · Hard · 13 min read · Compilers, Algorithms, Mobile, Functional programming
  Superpack is Meta's asymmetric compressor that combines compiler analysis with data compression, cutting Android app size by over 20% on average versus default Zip compression for apps like Facebook, Instagram, WhatsApp and Messenger.

## 2021-07-28

- [Optimizing JavaScript Standard Library Functions in JSC](https://swe.quest/articles/optimizing-javascript-standard-library-functions-in-jsc-1faf7ca6f0ee5e50.md): WebKit · 2021-07-28 · Hard · 6 min read · Runtimes & VMs, Compilers, JavaScript, Browsers, Performance engineering
  JavaScriptCore speeds up Function.prototype.toString by stacking several general optimizations that together reduce a call like f.toString() to a constant string.

## 2021-07-20

- [Extending Anvil for Fun and Profit](https://swe.quest/articles/extending-anvil-for-fun-and-profit-7f2a4cd8f637a17a.md): Slack Engineering · 2021-07-20 · Hard · 6 min read · Mobile, Java & JVM, Build systems, Compilers
  Slack's Android app replaced dagger-android activity injection with a custom Anvil code generator: annotating an activity with @InjectWith(scope) generates an AnvilInjector wrapping Dagger's intrinsic MembersInjector plus a @ContributesTo binding module that adds it to a scope-level multibinding map.

## 2016-09-22

- [Redesigning the HHVM JIT compiler for better performance](https://swe.quest/articles/redesigning-the-hhvm-jit-compiler-for-better-performance-1f9d35b871d88d6a.md): Meta Engineering · 2016-09-22 · Hard · 7 min read · Compilers, Runtimes & VMs, PHP, Performance engineering
  HHVM's JIT originally compiled tracelets, maximal type-specialized bytecode sequences formed by inspecting live VM state.

Same list as RSS: [https://swe.quest/feed.xml?difficulty=hard&tag=compilers](https://swe.quest/feed.xml?difficulty=hard&tag=compilers). Lists take `?page=`, `?per=12|24|48|96` and, on the home page, `?tag=` (up to 3), `?source=`, `?difficulty=easy|medium|hard` and `?search=`.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
