---
title: "5 Things you didn’t know about Buck2"
description: "Buck2, Meta's open-source successor to the Buck build system, completes builds roughly 2x faster than Buck1 in internal tests."
url: "https://swe.quest/articles/5-things-you-didn-t-know-about-buck2-e7af8905ffa26190"
canonical: "https://engineering.fb.com/2023/10/23/developer-tools/5-things-you-didnt-know-about-buck2/"
source: "Meta Engineering"
published: "2023-10-23"
difficulty: "easy"
kind: "Deep dive"
reading_minutes: 3
tags: ["build-systems","rust","developer-tools","open-source"]
---

# 5 Things you didn’t know about Buck2

A post on [Meta Engineering](https://swe.quest/sources/meta.md), published 2023-10-23, 3 min read, Deep dive. Original: [https://engineering.fb.com/2023/10/23/developer-tools/5-things-you-didnt-know-about-buck2/](https://engineering.fb.com/2023/10/23/developer-tools/5-things-you-didnt-know-about-buck2/)

## Summary

Buck2, Meta's open-source successor to the Buck build system, completes builds roughly 2x faster than Buck1 in internal tests. Its core is written in Rust, chosen over Java, Haskell and Go for performance, memory control without GC over large graphs, and safe concurrency, while rules are written in Starlark. With remote execution it can skip downloading intermediate outputs by tracking only their hashes. It uses 11 distinct path types for type safety, keeps all language knowledge out of the core in a replaceable Starlark prelude, and offers BXL for querying the build graph and defining new actions, for example to generate IDE projects.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [Build systems](https://swe.quest/tags/build-systems.md) (Engineering practices)
- [Rust](https://swe.quest/tags/rust.md) (Languages)
- [Developer tools](https://swe.quest/tags/developer-tools.md) (Engineering practices)
- [Open source](https://swe.quest/tags/open-source.md) (Engineering practices)

## Prerequisites

- build systems basics ([easy posts on Build systems](https://swe.quest/tags/build-systems.md?difficulty=easy))
- remote execution

## Keywords

Buck2, Buck, Starlark, BXL, Bazel, remote execution

## Related posts

- [Build faster with Buck2: Our open source build system](https://swe.quest/articles/build-faster-with-buck2-our-open-source-build-system-ede49d4bb9123548.md): Meta Engineering · 2023-04-06 · Medium · 7 min read · Build systems, Rust, Open source, Developer productivity
  Buck2 is Meta's from-scratch rewrite of Buck, open sourced with a Rust core and all language rules written in Starlark, and it completes builds about twice as fast as Buck1 internally.
- [Improving machine learning iteration speed with faster application build and packaging](https://swe.quest/articles/improving-machine-learning-iteration-speed-with-faster-application-build-and-76fe5935fe0be272.md): Meta Engineering · 2024-01-29 · Medium · 5 min read · Build systems, Developer productivity, ML platforms, Storage systems, Python
  Meta cut ML engineers' build and packaging overhead by double-digit percentages by tackling build non-determinism, pruning dependencies, and replacing monolithic XAR executables with an incremental Content Addressable Filesystem (CAF).
- [Bun v1.1.39](https://swe.quest/articles/bun-v1-1-39-87acf329d791d87e.md): Bun · 2024-12-17 · Medium · 9 min read · JavaScript, Runtimes & VMs, Build systems, Testing, Memory management
  Bun v1.1.39 introduces bun.lock, a human-readable text lockfile that improves git diffs and works with tools like Dependabot and Renovate, and makes cached bun install 30% faster.
- [Enabling Kotlin incremental compilation on Buck2](https://swe.quest/articles/enabling-kotlin-incremental-compilation-on-buck2-bd5307852c0570ff.md): Meta Engineering · 2025-08-26 · Medium · 10 min read · Build systems, Java & JVM, Compilers, Developer productivity, Mobile
  Meta integrated the Kotlin incremental compiler into Buck2 via Kotlin's experimental Build Tools API, making some large Android modules build up to 3x faster and improving incremental build times about 30% for the average developer.
- [Build better software to build software better](https://swe.quest/articles/build-better-software-to-build-software-better-5c6078f2e1d6c4da.md): Slack Engineering · 2025-11-06 · Medium · 17 min read · Build systems, Developer productivity, CI/CD, Refactoring & migrations, Caching
  Slack cut the 60-minute build pipeline for Quip and Slack Canvas's backend by applying classic software engineering principles (hermetic, idempotent, granular units of work and clean separation of concerns) before adopting Bazel.

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)
