mrkeyoor.comAsk

facebook/follytested 05 Oct 2026commit bfae630

folly review

Our Folly Python run ended with 2 collection/setup errors after a successful 20-second install, leaving the native C++ library unverified.

  • Install 20 s
  • Build 2 s
0/2passed, run exited non-zero
  • 35 packages
Dev Toolsevaluationupdated 27 Oct 2026
+4stars / 7d

Folly is Meta's collection of C++20 library components for applications that need tools beyond the standard library. It supplies reusable infrastructure code, with efficiency at large scale as a stated design priority.

Verdict

Our Folly Python run ended with 2 collection/setup errors after a successful 20-second install, leaving the native C++ library unverified. Consider Folly when you can name the component you need and accept rebuilding consumers across revisions. Its explicit lack of ABI guarantees makes it a poor choice for a dependency you expect to update independently of its callers.

We ran it

Lab card: what happened when we ran folly
Lab card from our sandbox run
Screenshot of folly (github.com/facebook/folly)
github.com/facebook/folly
Install✓ · 20s35 packages · 37 MB
Build✓ · 2s
Tests✗ · 4s0 passed · 0 failed · 2 errors of 2 (pytest)
Known vulns0(pip-audit)
Repo3234 files~747,915 lines of source · 30.7 MB · 5 CI workflows · tests dir

Answers from our run

Does folly build from source?

Dependencies installed in 20 seconds (35 packages), and the build succeeded in 2 seconds. We cloned commit bfae630 into a clean Debian container with 3 CPUs and no project-specific setup.

Do folly's tests pass?

No. The project's own test command finished in 4 seconds and reported 0 passed, 0 failed, 2 collection errors (pytest).

Does folly have known vulnerabilities in its dependencies?

pip-audit found none in the dependency tree at the time of our run.

Who should not use folly?

Distributors requiring binary compatibility across library updates: Folly explicitly makes no ABI compatibility guarantee between commits.

What are the alternatives to folly?

Abseil, Boost. Our Folly Python run ended with 2 collection/setup errors after a successful 20-second install, leaving the native C++ library unverified.

Setup4/5Our source checkout installed in 20 s and built in 2 s with 35 dependencies, but we did not run a README task.Editor’s note: Not assessed: installation was not reproduced in a supported environment.
Docs2/5The 11,145-character README has no usage instructions or examples.Editor’s note: The README explains platform and compatibility boundaries, but a complete native consumer walkthrough was not reproduced.
Community5/5Last push on 2026-10-27 and 30,561 stars.Editor’s note: Recent push and pull-request activity were checked, but support responsiveness and maintainer capacity were not assessed.
Maturity4/5Latest release v2026.10.26.00 on 2026-10-26, repository created 2012-06-01 and its test suite did not pass in our sandbox (0 of 2 passed).Editor’s note: The Python collection failure does not assess native library reliability or compatibility in a deployed C++ application.

How we score

Discussed on

  1. hnFacebook's std::vector optimization275 points
  2. hnFolly - The Faceboook open source library200 points
  3. hnFolly – Faceboook’s open source C++ library110 points
  4. hnFolly: An open-source C++ library developed and used at Facebook95 points
  5. hnFacebook Open Sources Production Code14 points

Who it’s for

C++ teams that need a particular Folly component and can own its integration.
Maintainers of software that already depends on Meta's other C++ projects.
Engineers willing to pin a revision and rebuild consumers when updating the library.

Who it’s NOT for

Distributors requiring binary compatibility across library updates: Folly explicitly makes no ABI compatibility guarantee between commits.
Teams treating experimental headers as stable interfaces: the README warns that client code can break when those files change.
Windows developers expecting the same coverage as other platforms: the README says many Windows checks are disabled.
Python users seeking a verified ready-to-import package: our recorded Python run stopped at collection with two errors, including a missing folly module.

Setup reality

Our October 5, 2026 sandbox run at bfae630 installed the Python subdirectory in 20 seconds, recording 35 dependencies and 37 MB on disk. The build step succeeded in 2 seconds. Tests exited 1 in 4 seconds: pytest recorded 0 passed, 0 failed and 2 collection/setup errors. The tail includes ModuleNotFoundError: No module named 'folly'.

Folly's main project is C++20. Its README documents CMake and dependency tooling, rather than a hosted service requiring an account. Our Python result does not verify the native library or its consumer integration.

The recorded sandbox had 3 CPUs, 8 GB RAM and image ghcr.io/astral-sh/uv:python3.12-bookworm. That label does not establish the actual runtime or operating-system version. Folly gives no ABI compatibility guarantee between commits and recommends a static library, so allow for revision pinning and consumer rebuilds.

Folly requires a rebuild policy before a dependency decision

Folly gives no ABI compatibility guarantee between commits. For a C++ team, that means you should decide how the library and its callers will move together before adding a useful header. The README recommends static linking. If your release process expects a shared library to be replaced independently, this is an immediate reason to reconsider.

Meta describes Folly as a collection of C++20 components used extensively inside Facebook. Its stated goal is practical, efficient infrastructure code, and the README admits that performance concerns sometimes produce unusual designs. That is a reason to investigate a component against a concrete requirement. It supplies no evidence that switching your own application will make it faster.

What happened when we ran it

Our sandbox installed Folly's Python subdirectory at commit bfae630 in 20 seconds, recording 35 dependencies and 37 MB on disk. The build step succeeded in 2 seconds. The October 5, 2026 test step exited 1 in 4 seconds, with pytest recording 0 passed, 0 failed and 2 collection/setup errors.

The failing entries were test/test_iobuf_ext.py and test/test_set_executor.py. The tail shows an import of test_set_executor_cython through folly.python.test, followed by ModuleNotFoundError: No module named 'folly'. Collection did not produce a passing suite. The supplied tail does not establish why the module was unavailable, and it would be a guess to blame a particular package or environment setting.

This distinction matters because the run targeted ./folly/python/. It does not establish that the main C++ library built, nor that its native checks passed. Calling the recorded build a successful native Folly build would give a prospective user the wrong evidence. Equally, these import errors do not demonstrate that Folly's C++ components are broken.

The sandbox configuration lists 3 CPUs, 8 GB RAM and image ghcr.io/astral-sh/uv:python3.12-bookworm. The label alone cannot establish the actual runtime or operating-system version. The checkout measured 3,234 files, approximately 747,915 source lines and 30.7 MB. The recorded pip-audit result found 0 known vulnerabilities in that run; it supplies no native-code security assessment.

Independent components can still bring internal dependencies

Folly's README describes relatively independent components, then explicitly permits any module to depend on other Folly components. Selecting a small interface therefore doesn't establish a small integration burden. Check what your chosen component pulls into the application before deciding the library is an easy addition.

The public namespace is folly, while internal and detail namespaces are implementation territory the README tells callers to avoid. Files under folly/experimental carry a stronger warning: they are not considered stable enough for client use. A promising example that reaches into either area should prompt a closer look at whether you can accept changes when updating.

For an existing Meta C++ dependency, taking Folly may already be part of the integration. For a new application, ask which missing capability justifies it. The project's own description says it complements the standard library and Boost, and that components may be removed when those alternatives make them unnecessary. Start with that narrower comparison rather than adopting the whole collection as a default foundation.

Native integration needs its own acceptance check

The README documents CMake and getdeps.py routes, with the latter also serving sibling projects. Those instructions are useful next steps for a native evaluation, not paths exercised by our Python record. Read the instructions for your selected revision, because today's README and the October sandbox checkout describe different points in the project's history.

Folly recommends placing its libraries in a temporary location and pointing the consumer project there instead of treating them as ordinary system libraries. Combined with the ABI warning, that supports a practical adoption rule: keep the chosen Folly revision attached to the application revision that uses it. Exercise an upgrade through your consumer before distributing it.

Platform support also needs a specific answer. The README names Linux, macOS, iOS and Windows, but qualifies the breadth of CMake coverage. It explicitly says many Windows checks are disabled. A platform appearing in the supported list does not settle whether the component you need has equivalent coverage there.

Recent activity does not promise compatibility

GitHub records a Folly push on October 27, 2026, and the latest release endpoint lists v2026.10.26.00, published October 26. The recent issue-and-PR feed includes work on mutex layout and CMake unity builds. These are signs of ongoing maintenance, considered together rather than inferred from a release tag alone. They do not establish support response times or remove the documented compatibility limits.

Abseil offers C++ utilities and Long Term Support releases with severe-bug fixes. Consider that route when its components fit your needs and a maintained release branch matters. Boost provides peer-reviewed portable C++ source libraries. Check it when an existing library already covers the requirement. Neither alternative was measured alongside Folly here, so there is no comparative setup or speed result.

For Folly, choose one required component and connect it to a small native consumer using the revision you intend to ship. Then try the upgrade process with that same consumer. The unanswered adoption question is whether your application can carry Folly's revision changes safely; our Python collection result cannot answer it.

Alternatives

ProjectWhat it isPick it when
AbseilAbseil supplies C++ utilities and offers Long Term Support releases.Pick this instead when its utilities fit and you want a release branch receiving fixes for severe bugs. This does not establish binary compatibility.
BoostBoost provides peer-reviewed portable C++ source libraries.Pick this instead when a Boost library already solves the specific problem. Folly itself describes Boost as a complement.

Sources

  1. Folly README
  2. Folly repository metadata
  3. Folly latest release
  4. Folly recent issues and PRs
  5. Abseil README
  6. Boost README

More dev tools reviews