By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
AIModelKitAIModelKitAIModelKit
  • Home
  • News
    NewsShow More
    Bernie Sanders Urges Caution: The US Lacks Understanding of the Speed and Scale of the Impending AI Revolution | US News
    Bernie Sanders Urges Caution: The US Lacks Understanding of the Speed and Scale of the Impending AI Revolution | US News
    6 Min Read
    Executives Share Positive Outlook on Future Business Prospects
    Executives Share Positive Outlook on Future Business Prospects
    6 Min Read
    India’s Sarvam Unveils Indus AI Chat App Amid Intensifying Competition in the Market
    India’s Sarvam Unveils Indus AI Chat App Amid Intensifying Competition in the Market
    5 Min Read
    Trump’s Environmental Policies Lead to Dirtier Coal Plants Amid Rising Energy Demands from AI
    Trump’s Environmental Policies Lead to Dirtier Coal Plants Amid Rising Energy Demands from AI
    5 Min Read
    India Poised to Harness US Tech Giants’ Innovations at Delhi Summit: A Focus on AI Advancements
    India Poised to Harness US Tech Giants’ Innovations at Delhi Summit: A Focus on AI Advancements
    6 Min Read
  • Open-Source Models
    Open-Source ModelsShow More
    Streamline Your Web Apps: Leverage Gradio’s gr.HTML for One-Shot Integration
    Streamline Your Web Apps: Leverage Gradio’s gr.HTML for One-Shot Integration
    6 Min Read
    Boosting Throughput with Adaptive Time-Varying Capacity Strategies
    Boosting Throughput with Adaptive Time-Varying Capacity Strategies
    5 Min Read
    Creating, Simulating, and Testing Dynamic Human-AI Group Conversations: A Comprehensive Guide
    Creating, Simulating, and Testing Dynamic Human-AI Group Conversations: A Comprehensive Guide
    5 Min Read
    Unlocking Underwater Mysteries: How AI Trained on Birds is Revolutionizing Ocean Research
    Unlocking Underwater Mysteries: How AI Trained on Birds is Revolutionizing Ocean Research
    4 Min Read
    Empower Your LLMs with JavaScript: Essential Tools and Techniques
    Empower Your LLMs with JavaScript: Essential Tools and Techniques
    6 Min Read
  • Guides
    GuidesShow More
    Comprehensive Quiz on Deep Dive Concepts with Examples – Real Python
    Comprehensive Quiz on Deep Dive Concepts with Examples – Real Python
    1 Min Read
    Ultimate Real Python Quiz Guide: Test Your Skills and Knowledge
    Ultimate Real Python Quiz Guide: Test Your Skills and Knowledge
    4 Min Read
    Mastering Python Docstrings: A Comprehensive Guide from Real Python
    Mastering Python Docstrings: A Comprehensive Guide from Real Python
    6 Min Read
    Comprehensive Real Python Quiz: Test Your Knowledge with In-Depth Examples
    Comprehensive Real Python Quiz: Test Your Knowledge with In-Depth Examples
    5 Min Read
    Mastering the File System: Take the Real Python Quiz
    Mastering the File System: Take the Real Python Quiz
    4 Min Read
  • Tools
    ToolsShow More
    Discover SyGra Studio: Your Gateway to Exceptional Creative Solutions
    Discover SyGra Studio: Your Gateway to Exceptional Creative Solutions
    6 Min Read
    Maximizing Power Efficiency in AI Manufacturing with NVIDIA Spectrum-X Ethernet Photonics
    Maximizing Power Efficiency in AI Manufacturing with NVIDIA Spectrum-X Ethernet Photonics
    5 Min Read
    Understanding Mantle’s Zero Operator Access Design: An In-Depth Exploration
    Understanding Mantle’s Zero Operator Access Design: An In-Depth Exploration
    5 Min Read
    Optimizing Hardware-Software Co-Design with PyTorch: A Comprehensive Guide
    Optimizing Hardware-Software Co-Design with PyTorch: A Comprehensive Guide
    6 Min Read
    How to Enable Cluster Launch Control with TLX in PyTorch: A Step-by-Step Guide
    How to Enable Cluster Launch Control with TLX in PyTorch: A Step-by-Step Guide
    5 Min Read
  • Events
    EventsShow More
    error code: 524
    error code: 524
    5 Min Read
    NVIDIA Joins Forces with India’s Leading Manufacturers and Global Industrial Software Giants to Propel AI Revolution
    NVIDIA Joins Forces with India’s Leading Manufacturers and Global Industrial Software Giants to Propel AI Revolution
    5 Min Read
    Explore Highlights from NVIDIA AI Day São Paulo: Innovations and Insights
    Explore Highlights from NVIDIA AI Day São Paulo: Innovations and Insights
    6 Min Read
    Auto Browse: Essential Insights for Educators on Google’s New AI Tool
    Auto Browse: Essential Insights for Educators on Google’s New AI Tool
    6 Min Read
    How to Avoid the Rising Trend of AI-Generated Pink Slime
    How to Avoid the Rising Trend of AI-Generated Pink Slime
    4 Min Read
  • Ethics
    EthicsShow More
    The Download: Microsoft’s Online Reality Check and the Alarming Surge in Measles Cases
    The Download: Microsoft’s Online Reality Check and the Alarming Surge in Measles Cases
    4 Min Read
    Enhancing Research in Taiwan’s Humanities and Social Sciences: How AI Agents Transform Labor into Collaborative Methodologies
    Enhancing Research in Taiwan’s Humanities and Social Sciences: How AI Agents Transform Labor into Collaborative Methodologies
    6 Min Read
    Is Google DeepMind Questioning the Authenticity of Chatbots: Are They Just Virtue Signaling?
    Is Google DeepMind Questioning the Authenticity of Chatbots: Are They Just Virtue Signaling?
    5 Min Read
    Exploring the Ethical and Societal Implications of Generative AI in Higher Education for Computing
    Exploring the Ethical and Societal Implications of Generative AI in Higher Education for Computing
    6 Min Read
    Exploring the ‘Uncanny Valley’: ICE’s Hidden Expansion Strategies, Palantir Employees’ Ethical Dilemmas, and the Role of AI Assistants
    Exploring the ‘Uncanny Valley’: ICE’s Hidden Expansion Strategies, Palantir Employees’ Ethical Dilemmas, and the Role of AI Assistants
    5 Min Read
  • Comparisons
    ComparisonsShow More
    OpenAI Launches Harness Engineering: Empowering Large-Scale Software Development with Codex Agents
    5 Min Read
    Examining Community Perspectives on Body-Worn Camera Footage: A Comprehensive Analysis
    Examining Community Perspectives on Body-Worn Camera Footage: A Comprehensive Analysis
    6 Min Read
    Optimizing Policy-Based Few-Step Generation through Imitation Distillation Techniques
    Optimizing Policy-Based Few-Step Generation through Imitation Distillation Techniques
    5 Min Read
    Understanding Block-Recurrent Dynamics in Vision Transformers: Insights from Paper [2512.19941]
    Understanding Block-Recurrent Dynamics in Vision Transformers: Insights from Paper [2512.19941]
    5 Min Read
    Exploring the Mechanistic Interpretability of Cognitive Complexity in LLMs Through Linear Probing and Bloom’s Taxonomy
    Exploring the Mechanistic Interpretability of Cognitive Complexity in LLMs Through Linear Probing and Bloom’s Taxonomy
    4 Min Read
Search
  • Privacy Policy
  • Terms of Service
  • Contact Us
  • FAQ / Help Center
  • Advertise With Us
  • Latest News
  • Model Comparisons
  • Tutorials & Guides
  • Open-Source Tools
  • Community Events
© 2025 AI Model Kit. All Rights Reserved.
Reading: Explore Our Open Source Build System: Streamline Your Development Process
Share
Notification Show More
Font ResizerAa
AIModelKitAIModelKit
Font ResizerAa
  • 🏠
  • 🚀
  • 📰
  • 💡
  • 📚
  • ⭐
Search
  • Home
  • News
  • Models
  • Guides
  • Tools
  • Ethics
  • Events
  • Comparisons
Follow US
  • Latest News
  • Model Comparisons
  • Tutorials & Guides
  • Open-Source Tools
  • Community Events
© 2025 AI Model Kit. All Rights Reserved.
AIModelKit > Comparisons > Explore Our Open Source Build System: Streamline Your Development Process
Comparisons

Explore Our Open Source Build System: Streamline Your Development Process

aimodelkit
Last updated: April 12, 2025 8:07 am
aimodelkit
Share
Explore Our Open Source Build System: Streamline Your Development Process
SHARE

Write a detailed, engaging, and SEO-friendly article about

Contents
  • Why rebuild Buck?
  • The user view
  • The rule author view
    • OCaml dependencies
    • C++ link dependencies
  • Try Buck2 now
  • Buck2, our new open source, large-scale build system, is now available on GitHub.
  • Buck2 is an extensible and performant build system written in Rust and designed to make your build experience faster and more efficient. 
  • In our internal tests at Meta, we observed that Buck2 completed builds 2x as fast as Buck1.

Buck2, Meta’s open source large-scale build system, is now publicly available via the Buck2 website and the Buck2 GitHub repository. While it shares some commonalities with other build systems (like Buck1 and Bazel), Buck2 is a from-scratch rewrite. Buck2 features a complete separation of the core and language-specific rules, with increased parallelism, integration with remote execution and virtual file systems, and a redesigned console output. All of these changes are aimed at helping engineers and developers spend less time waiting, and more time iterating on their code.

Thousands of developers at Meta are already using Buck2 and performing millions of builds per day, with builds completing twice as fast as with Buck1. Our own internal analysis has shown that engineers were able to produce meaningfully more code when their builds were executed by Buck2, and we hope the wider industry will also see benefits.

Why rebuild Buck?

Build systems stand between a programmer and running their code, so anything we can do to make the experience quicker or more productive directly impacts how effective a developer can be. The goal of Buck2 was to keep what we liked about Buck1 (the core concepts and workflows), draw inspiration from innovations after Buck1 (including Bazel, Adapton, and Shake), and focus on speed and enabling new experiences.

Buck2’s design is based on the following principles:

  • The core build system has no knowledge of any language-specific rules. Having the rules separated from the core means that the rules are easier to change and understand. The core of Buck2 is written in Rust, and its language rules (like how to build C++) are written in Starlark. This separation is in contrast to Buck1 (where all rules are written in the core) and Bazel (where C++/Java are written in the core).
  • The build system is powered by a single incremental dependency graph, avoiding any phases (in contrast to Buck1 or Bazel). This decision eliminates many types of bugs and increases parallelism.
  • The rules API is designed to contain advanced features for performance, along with dynamic (or monadic) dependency features for expressibility. At the same time, these features are carefully restricted to ensure other properties (for example, fast queries or hermeticity) are not harmed.
  • The open source release is almost identical to our internal version. The only pieces swapped out are the toolchains (which point at the internal copies of our compilers) and remote execution (which points at our internal servers) — both have open source alternatives supplied. We are also releasing all the rules exactly as they are used internally. Furthermore, we have separated some of the logical components into separate crates (e.g. Starlark, Superconsole, Allocative, Gazebo) so that they can be used outside Buck2.
  • Buck2 is written to integrate with remote execution, with the ability to run actions on remote machines. We use the same API as Bazel, and have been testing remote execution with Buildbarn and EngFlow. While not required (and not really expected for people starting out with the open source version), we are able to efficiently compute recursive digests and send them to remote execution efficiently.
  • Buck2 is written to integrate with virtual file systems, where the entire repository is not all checked out, but fetched on demand as the files are accessed. In particular, we support Sapling-based file systems. To integrate well, we watch for file notifications (with Watchman) and request both files and file-digests without direct file operations. The benefit is that we can make virtual file systems as fast as a full checkout, but with the benefits of much faster checkout and much lower disk usage.

The key takeaway from all these improvements is that we have designed Buck2 to be fast. In real world usage, depending on the build, Buck2 is significantly faster than Buck1. If there are no source code changes, Buck2 is almost instant on subsequent builds. If there is a lot of work to do, Buck2 starts executing faster and has greater parallelism. This increase in speed is both a consequence of many of the factors above, but also care and attention.

The user view

For end users, Buck2 works mostly the same as Buck1 (which, to a first approximation, is fairly similar to Bazel). A user defines targets in a BUCK file:

rust_binary(
    name = “my_binary”,
    srcs = [“main.rs”],
    deps = [“:my_library”],
)

A user can then build with buck2 build //:my_binary. The value main.rs is a source file, and :my_library is a dependency defined in the same BUCK file. It’s worth noting that Buck2 is mostly compatible with the BUCK files of Buck1. 

As well as the increase in speed, there are two major additional user-visible differences compared to Buck1.

First, the console output has been redesigned on top of the Superconsole library, which we specifically developed for Buck2. The console shows a few more details and feels a lot nicer to use:

Second, there is a persistent daemon that maintains a single dependency graph. When you change a BUCK file, a dependency, or a source file, we invalidate the appropriate things on the dependency graph, then request the output artifacts per the command line. In Buck1 there are multiple distinct dependency graphs, which result in phases like target graph construction, action graph construction, and then action graph execution. There are also some operations that aren’t performed on the graph. If certain things change in Buck1, then entire graphs are thrown away, rather than the minimum pieces being invalidated. With a single dependency graph, Buck2 is simpler, avoids more redundant work, and avoids explicit phases. Everything on the dependency graph has a key (how it is identified) and a value, along with a function to compute the value from the key and other related keys (following the model in the paper, “Build Systems a la Carte”).

The rule author view

While the user model follows Buck1 very closely, the approach for rules is completely different. There are lots of rules in Buck, for example rust_binary used above. While a rule in Buck1 was a Java class, baked into Buck1, a rule in Buck2 is entirely decoupled. Buck2 also ships with a “prelude” of rules that implement most of the Buck1 rules. 

Buck1 rules were tuned over time, had lots of performance optimizations and powerful features like graph traversal, but those rules were also expected to obey a lot of complex invariants—sometimes breaking those rules. For Buck2, the rule API is entirely in Starlark, which forced us to abstract those features as generically reusable APIs, aiming to make them safe, expressive, and performant—a tricky balance. We’ll touch on two such examples.

OCaml dependencies

The dependency structure of the OCaml library is hard to express in Buck1. An OCaml library consists of a number of OCaml files. These must be compiled in dependency order—so if A.ml uses B.ml, you must compile B.ml first. Bazel requires the dependency of A.ml on B.ml to be written explicitly in the BUCK file. Buck1 and Buck2 both leave that internal dependency implicit and run the tool ocamldep to infer it, which requires less maintenance as the structure changes.  What Buck1 did is run ocamldep just after parsing the BUCK file, which wasn’t really allowed, and it didn’t track dependencies, so if you changed the imports too much Buck1 gave spurious compilation failures. With Buck2, we can use the new primitive dynamic_output, which lets you run a command, read the output of the file, then wire up the rest of the graph—putting in the correct dependencies between the .ml files automatically.

C++ link dependencies

Consider the C++ linking model: To produce a library, you usually need to link together its build output, along with the transitive closure of the build output of its dependencies. If you simply duplicate the set of dependencies at each layer as you move up the graph, you end up with O(n2) memory usage. In Buck1, there was custom code in many rules to capture this pattern, relying on the ability to share Java values in memory and for the dependencies to be represented in place within the rule structure (as there was no reified dependency graph). In Buck2, there are much stronger abstraction boundaries, so such reuse has to be made more explicit. Therefore, we introduced transitive-sets (tsets) to capture this pattern of sets representing a transitive closure. By making tsets more abstract, we were also able to wire the tset directly into the underlying dependency graph, meaning this representation is efficient in both memory and computation time.

Try Buck2 now

We’re keen for people to give Buck2 a try, and we would be happy to hear any feedback (GitHub issues are the best way). We expect Buck2 will be most interesting to moderately sized multi-language projects. Visit the Buck2 getting started page for more information.

. Structure the content with clear, distinct paragraphs, each covering a specific aspect of the topic. Use a natural, human, and conversational tone while ensuring the article remains informative, well-organized, and easy to read. Integrate relevant keywords naturally, avoid repetition, and do not include a conclusion. Focus entirely on delivering valuable and well-structured insights.

Enhancing Image Generation Through Representation Regularization Techniques
Effortless and Rapid Detection of LLM-Generated Text Using Spectral Analysis Without Training
Structured Preference Optimization for Long-Horizon Vision-Language Task Planning: An In-Depth Analysis
Enhancing Speech Pre-training: High-Resolution Finite Scalar Quantization with Chunk-Based Approaches (2509.15579)
Optimizing Signal Attenuation for Scalable Decentralized Multi-Agent Reinforcement Learning in Network Environments

Sign Up For Daily Newsletter

Get AI news first! Join our newsletter for fresh updates on open-source models.

By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Copy Link Print
Previous Article Assessing the Advancement of Large Language Models in Scientific Problem-Solving Assessing the Advancement of Large Language Models in Scientific Problem-Solving
Next Article Explore Arabic Instruction Following, AraGen Updates, and Additional Enhancements Explore Arabic Instruction Following, AraGen Updates, and Additional Enhancements

Stay Connected

XFollow
PinterestPin
TelegramFollow
LinkedInFollow

							banner							
							banner
Explore Top AI Tools Instantly
Discover, compare, and choose the best AI tools in one place. Easy search, real-time updates, and expert-picked solutions.
Browse AI Tools

Latest News

Bernie Sanders Urges Caution: The US Lacks Understanding of the Speed and Scale of the Impending AI Revolution | US News
Bernie Sanders Urges Caution: The US Lacks Understanding of the Speed and Scale of the Impending AI Revolution | US News
News
Executives Share Positive Outlook on Future Business Prospects
Executives Share Positive Outlook on Future Business Prospects
News
OpenAI Launches Harness Engineering: Empowering Large-Scale Software Development with Codex Agents
Comparisons
The Download: Microsoft’s Online Reality Check and the Alarming Surge in Measles Cases
The Download: Microsoft’s Online Reality Check and the Alarming Surge in Measles Cases
Ethics
//

Leading global tech insights for 20M+ innovators

Quick Link

  • Latest News
  • Model Comparisons
  • Tutorials & Guides
  • Open-Source Tools
  • Community Events

Support

  • Privacy Policy
  • Terms of Service
  • Contact Us
  • FAQ / Help Center
  • Advertise With Us

Sign Up for Our Newsletter

Get AI news first! Join our newsletter for fresh updates on open-source models.

AIModelKitAIModelKit
Follow US
© 2025 AI Model Kit. All Rights Reserved.
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?