Last year we built megakernels. This year we deleted them: The road to Together Compiler
Megakernels for Llama 1B hit 990 TPS on H100 but were too inflexible to productionize, supporting only one model, batch size and precision.
Topics Compilers & runtimes
Compiler design, optimization passes, code generation, JITs.
Megakernels for Llama 1B hit 990 TPS on H100 but were too inflexible to productionize, supporting only one model, batch size and precision.
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.
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.
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.
Together Compiler (TKCC) is an agent-driven continual optimization loop that recompiles inference engines as model, hardware and traffic shape drift.
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.
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.
Go 1.27 adds an experimental, size-agnostic `simd` package, loosely modeled on Highway for C++.
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.
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.
A bug in Lean's String.Pos.Raw.extract let a bogus "proof" of Fermat's Last Theorem typecheck.
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.
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.
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.
KernelEvolve is Meta's agentic kernel-authoring system that treats kernel optimization as a search problem instead of one-shot LLM code generation.
JetStream 3 replaces JetStream 2's separate Wasm Startup/Runtime scores with the JavaScript-style first-iteration, worst-case and average-case scoring.
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.
V8 is replacing Sea of Nodes in its Turbofan optimizing compiler with Turboshaft, a traditional control-flow-graph IR.
V8 eliminated a performance cliff in JetStream2's async-fs benchmark caused by a custom Math.random whose `seed` lives in a ScriptContext slot.
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.
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.
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.
A Postgres language server's parser builds on libpg_query rather than a custom grammar, and has to work around two gaps in it.
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.
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.
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.
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.
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.
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.
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.
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.
VESPA (Vintage ESP Amended) lets the BOLT binary optimizer run without dynamic profiling by predicting branch probabilities statically.
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.
JavaScriptCore speeds up Function.prototype.toString by stacking several general optimizations that together reduce a call like f.toString() to a constant string.
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.
HHVM's JIT originally compiled tracelets, maximal type-specialized bytecode sequences formed by inspecting live VM state.