Buck

BuckOriginal author(s)| Michael Bolin

|

Developer(s)| Meta Platforms, Inc.
Initial release| April 17, 2013; 13 years ago (2013-04-17)[1]
Stable release|

2021.01.12.01 / January 12, 2021; 5 years ago (2021-01-12)[2]

Written in| Buck1 – Java
Buck2 – Rust
Operating system| Cross-platform
License| MIT[3] or
Apache License 2.0[4]

Buck is a multi-language build system developed and used by Meta Platforms, Inc. It was designed for building small, reusable modules consisting of code and resources within a monorepo.[5] It supports many programming languages, including C++, Swift, Unix Shell, Java, Kotlin, Python, Lua, OCaml, Rust and Go. It can produce binary outputs for a variety of target platforms including iOS, Android, .NET, and Java virtual machine (VM) runtime systems. Licensing for Buck1 is under Apache License 2.0, while Buck2 is under either MIT or Apache 2.0.[3][4]

Buck requires the explicit declaration of dependencies. Because all dependencies are explicit and Buck has a directed acyclic graph of all source files and build targets, Buck can perform incremental recompilation, only rebuilding targets downstream of files that have changed. Buck computes a key for each target that is a hash of the contents of the files it depends on. It stores a mapping from that key to the build target in a build cache.

## Contents

* 1 History
* 2 See also
* 3 References
* 4 External links

## History

In 2013, Buck1 was released. One of the key features was the ability to share build results between multiple developers and continuous integration (CI), as Buck1 supports a HTTP Cache API.[6]

In 2023, Buck2 was released, claiming that builds are 2x as fast as compared to Buck1. One of the largest changes from Buck1 is that the core is written in Rust instead of Java, and rules are written outside the core in Starlark (the language created for the Bazel build system).[7]

## See also

* Build automation
* List of build automation software

## References

1. ↑ Bolin, Michael (2013-05-14). "Buck: How we build Android apps at Facebook". Facebook Engineering. https://www.facebook.com/notes/facebook-engineering/buck-how-we-build-android-apps-at-facebook/10151454619998920/.
2. ↑ "Releases: facebook/buck". https://github.com/facebook/buck/releases.
3. ↑ 3.0 3.1 "buck/license-mit". 2022-12-01. https://github.com/facebook/buck2/blob/main/LICENSE-MIT.
4. ↑ 4.0 4.1 "buck/license-apache". 2022-12-01. https://github.com/facebook/buck2/blob/main/LICENSE-APACHE.
5. ↑ "Overview". https://buck.build/about/overview.html. "Buck is designed to build multiple deliverables from a single repository—that is, a monorepo—rather than from multiple repositories"
6. ↑ Bluestein, Nofar. "Introducing Cache Intelligence for Faster, More Efficient Continuous Integration Builds | Harness". https://www.harness.io/blog/cache-intelligence-faster-efficient-continuous-integration-builds.
7. ↑ Krill, Paul (2023-04-06). "Meta open-sources ‘significantly faster’ build system" (in en). https://www.infoworld.com/article/3693049/meta-open-sources-significantly-faster-build-system.html.

## External links

0.00

(0 votes)

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Software:Buck&oldid=787774"