talira

Meta's library of C++20 components

open sourceApache-2.0free

Folly (originally Facebook Open-source Library) is a library of C++20 components that Meta uses extensively and that its other open source C++ projects depend on. It builds on the standard library and fills its gaps, adding components where the standard library lacks one or doesn't meet Meta's needs for performance, scalability or interface, and moving users to the standard one when it catches up. It is a collection of relatively independent components, all in the folly namespace, with good performance at large scale as the unifying theme.

Problems it solves

  • fast, battle-tested C++ building blocks the standard library doesn't have
  • build a high-performance C++ service on libraries used at Meta's scale
  • one shared C++ utility library for several of my projects instead of copying helpers between them

Features

  • C++20 components that fill gaps in the standard library
  • performance-focused containers, synchronization and utilities
  • relatively independent modules in one namespace

Alternatives

The same job

These do what Folly does.

  1. Abseil Abseil Common Libraries for C++
  2. Boost Free, peer-reviewed portable C++ source libraries

Compare Folly with the top 3