Hacker GitHub

← All repos

meta/folly

View on GitHub ↗ ★ 30,556 C++

An open-source C++ library developed and used at Facebook.

144 mentions on Hacker News by 90 people: 15 stories, 129 comments · first 2012-06-02 · latest 2026-01-14

Mentions per year 144 mentions · busiest year 2020 (16)
20082026
  1. The TimerWheel abstraction, implemented for example: - https://github.com/facebook/folly/blob/master/folly/io/async... (Facebook/Folly) - https://github.com/real-logic/Agrona/blob/886d7744fa15fc3de1... (Real-Logic/Argona) and in turn based…
    comment by markpapadakis · 2016-07-06 · in Implementing Software Timers (1990)
  2. …the coroutines proposals working their way through the C++ committee can make lives better. [1] https://github.com/facebook/folly/tree/master/folly/fibers [2] https://github.com/facebook/folly/tree/master/folly/futures [3]…
  3. Facebook's Folly library implements something similar: https://github.com/facebook/folly/blob/master/folly/ScopeGua... It provides some macros to make it easier to use, e.g. SCOPE_EXIT { cleanup(); more_cleanup(); if…
    comment by Kristine1975 · 2016-04-28 · in Custom Deleters for C++ Smart Pointers
  4. I just tried to compile folly in OSX and it fails to compile with homebrew. https://github.com/facebook/folly/issues/400 Also, Once I manage to compile folly and then wangle, what kind of database drivers can I use in conjunction with…
  5. …although anecdotally GCC makes better use of these hints. Folly has a function to make it portable: https://github.com/facebook/folly/blob/bb5ed8070d533c016e1e9...
  6. …has the same trick, and it's a std::string compliant implementation used in production at Facebook. https://github.com/facebook/folly/blob/master/folly/docs/FBS...
  7. …fd callbacks and event_base, as well as providing implementations for many common types of fd uses. https://github.com/facebook/folly/blob/master/folly/io/async... grepping the codebase for `asio` brings up nothing.
  8. …combinators. You get all the map/filter/take/drop/reduce primitives, but in a much cleaner way. See https://github.com/facebook/folly/blob/master/folly/gen/test... for an example.
  9. https://github.com/facebook/folly/blob/master/folly/Benchmar...
    comment by ot · 2015-07-16 · in GCC 5.2 released
  10. Folly Futures support interrupts and cancellations. See https://github.com/facebook/folly/blob/master/folly/futures/...
    comment by jsedgwick · 2015-06-20 · in Futures for C++11 at Facebook
  11. …goodness as a real futex, but is fully portable. For an example of this technique, check out https://github.com/facebook/folly/blob/master/folly/detail/F... . That code only implements wake and wait, but it would be straightforward to…
    comment by ngbronson · 2015-04-24 · in Show HN: Evenk C++ concurrency library
  12. …idea. It also has some nice features like buffered file reading, fork-join parallelism, etc. [1]: https://github.com/facebook/folly/blob/75278c6326af4e6a81b87...
    comment by ajtulloch · 2015-04-06 · in C++ Streams
  13. …most 23 characters in-place, and it's a widely used implementation (at least within Facebook :) ) https://github.com/facebook/folly/blob/master/folly/FBString...
  14. …and libraries, completely replacing std::string both for our own code and third-party code. https://github.com/facebook/folly/blob/master/folly/docs/FBS... In addition, it is worth noting folly::StringPiece (from folly/Range.h), which is…
  15. …Proxygen as well. Proxygen heavily relies on folly's buffer management abstractions such as IOBuf ( https://github.com/facebook/folly/blob/master/folly/io/IOBuf... ) and Cursor ( https://github.com/facebook/folly/blob/master/folly/io/Curso.…
    comment by seasonedschemer · 2014-11-05 · in Proxygen, Facebook's C++ HTTP Framework
  16. …[1], this is just: using namespace folly::gen; byLine('/a/file/with/numbers') | eachTo<int> | sum; https://github.com/facebook/folly/tree/master/folly/gen
  17. …library is much more interesting and can yield better performance (if you hit the sweet spot). https://github.com/facebook/folly/blob/master/folly/docs/sma... From what I understand, using a "rvalue-reference ready" vector implementation…
    comment by shin_lao · 2014-08-30 · in Facebook's std::vector optimization
  18. …have the cleanup code optimized away. An updated version of ScopeGuard doesn't have this problem ( https://github.com/facebook/folly/blob/master/folly/ScopeGua... ). So, yes, I'll concede that code that expects you to cast some kind of…
    comment by maxlybbert · 2014-06-24 · in Why C++ Sails When the Vasa Sank [pdf]
  19. …library contains a really clean lock-free SPSC queue [1], and a really fast MPMC queue [2]. [1]: https://github.com/facebook/folly/blob/master/folly/Producer... [2]: https://github.com/facebook/folly/blob/master/folly/MPMCQueu...
  20. …| filter([](int i){ return i % 2 == 0; }) | mapped([](int i){ return i * i; }) | as<vector>(); } https://github.com/facebook/folly/tree/master/folly/gen
    comment by ajtulloch · 2014-04-11 · in C++ – From goto to std::transform
  21. …Folly from facebook. I haven't taken a close look, but I know they do some jemalloc-specific code: https://github.com/facebook/folly/tree/master/folly The other allocated-related thing that C++ really wants (and could benefit C as well) is…
    comment by bodyfour · 2014-04-06 · in A Story Of realloc (And Laziness)
  22. …an infinite amount of samples and keeping the minimum is the actual time that needs measuring. [0]: https://github.com/facebook/folly/blob/master/folly/Benchmar... [1]: https://github.com/facebook/folly/blob/master/folly/docs/Ben...
  23. https://github.com/facebook/folly
  24. …way (and also prevents access without acquiring the lock): SYNCHRONIZED(data) { // modify data } https://github.com/facebook/folly/blob/master/folly/Synchron...
    comment by zeroonetwothree · 2014-02-07 · in In the C++ bag of tricks: scoped locks
  25. I hadn't heard of Folly; so for others: https://github.com/facebook/folly
    comment by emmelaich · 2013-05-21 · in A fast lock-free queue for C++
  26. …of a single-producer single-consumer lock-free queue in Facebook's folly C++ library. https://github.com/facebook/folly/blob/master/folly/Producer... (code) https://github.com/facebook/folly/blob/master/folly/docs/Pro... (docs)
  27. …code, but I'm sure as hell going to look at making my C vector code do some of what FBVector does: https://github.com/facebook/folly/blob/master/folly/docs/FBV...
    comment by tptacek · 2012-06-03 · in Folly - The Faceboook open source library
  28. I'm going to be taking a serious look at this for my own projects. I like Format: https://github.com/facebook/folly/blob/master/folly/docs/For... Histogram is going to come in handy. :) fbstring seems to be exactly what the doctor ordered.…
    comment by luser001 · 2012-06-02 · in Folly - The Faceboook open source library
  29. This all fits into Folly: The Facebook Open Source Library. https://github.com/facebook/folly
    comment by ramisayar · 2012-06-02 · in Facebook C++ Conference Live Blogging