abseil-cpp

Abseil Common Libraries (C++) (by abseil)

Abseil-cpp Alternatives

Similar projects and alternatives to abseil-cpp

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better abseil-cpp alternative or higher similarity.

Suggest an alternative to abseil-cpp

Reviews and mentions

Posts with mentions or reviews of abseil-cpp. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-09-12.
  • Transmission torrent client ported to C++
    news.ycombinator.com | 2021-09-12
    STL has a lot of weird pitfalls. There was std::vector. Here you can see some pitfalls of std::unordered_map: <https://youtu.be/ncHmEUmJZf4?t=2220>. The whole talk is interesting to watch. In the beginning you can also see the puzzling design of std::unordered_map (puzzling because of the number of indirections).

    I'd reach for abseil first: <https://abseil.io/>.

  • Fast Rust Builds
    news.ycombinator.com | 2021-09-05
    std::array will instantiate function templates for all used array sizes, lengthen compilation time, and be hard to use across separately-compiled code without putting code into headers. It has its uses, but more often I'd prefer T[N] with bounds-checking, and, in another world, a builtin variably-sized, non-resizable array type; basically a sort of absl::FixedArray[1], but with the semantics of operator[] and at() reversed, so that bounds-checking is the default. Sadly, nothing like that is included in the standard, so won't be a lingua-franca.

    [1]: <https://github.com/abseil/abseil-cpp/blob/master/absl/contai...>

  • Transparent find() is a pain to get right.
    reddit.com/r/cpp | 2021-09-05
    However, I can't seem to find anything in the docs/issues and their hash_test.cc makes me wonder if I misunderstood what I heard/read previously.
  • Show HN: C++ vector type up to 50% faster than std:vector
    news.ycombinator.com | 2021-08-13
  • Retiring boost from my codebase
    reddit.com/r/cpp | 2021-07-29
  • C++ is awesome, here's why...
    dev.to | 2021-07-23
    Again, this is not completely inaccurate. Common operations like joining strings by a delimiter are more complicated than they need to be. However, this is a problem solved rather easily with open source libraries like Google's Abseil with thousands of utility functions that make it very easy to work with. Apart from string utilities, Abseil also contains special implementations of hashmaps, concurrency helpers, and debugging tools. Other libraries like Boost make it easy to work with BLAS routines (e.g. dot products, matrix multiplications, etc.) and are very performant.
  • Correctly implementing a spinlock in Modern C++
    news.ycombinator.com | 2021-06-25
    For a real battle-tested combination of spinlock and futex, see https://github.com/abseil/abseil-cpp/blob/master/absl/synchr...
  • Best learning resources for an experienced developer in a different language?
    reddit.com/r/cpp | 2021-06-12
    Additionally, some libraries you should probably look at are Abseil, Folly, Boost (Opinion is split between heaven send and scum of the earth on this one.), SFML, and SDL.
  • Linked lists be like
    Off the top of my head, I know that both Java and C++'s standard libraries use chaining. In C++ this is why you should use abseil's flat_hash_map, folly's FastMap or other equivalent to avoid this.
  • The Google Style Guides project holds the C++, C#, Swift, Objective-C, Java, Python, R, Shell, HTML/CSS, JavaScript, TypeScript, AngularJS, Common Lisp, and Vimscript Style Guide.
    Notably, dogmatically following our C++ style guide is challenging, as we don't use exceptions. I can recommend that, and point you towards https://github.com/abseil/abseil-cpp if you're interested in how we make that happen, but to most C++ programmers this will be weird.
  • Returning pointers, the lifetime of the object, and ownership
    yeah, I'm missing the garbage collection now :P. But about being managed and living until no reference exists, is that what unique_ptr does? Because ive seen a ton of usage of that as well as absl::make_unqiue. It looks like new isnt really used any more at all
  • CppCast: Defer Is Better Then Destructors
    reddit.com/r/cpp | 2021-05-01
  • Performance comparison: counting words in Python, Go, C++, C, AWK, Forth, and Rust
    For those looking for a performant hash map in C++, absl::flat_hash_map is a good choice. It's very nearly a drop in replacement for std::unordered_map. I know there are some other goods one out there as well, this is just the one I use at work.
  • Modern C++ "result" type based on Swift / Rust
    reddit.com/r/cpp | 2021-03-13
    There is also absl::StatusOr, though it is not generic over error type (only supporting the corresponding absl::Status type) and does not have the monadic functions.
  • Tim Sweeney: “ISO obstructs adoption of standards by paywalling them ”
    news.ycombinator.com | 2021-03-08
    Any specific examples come to mind? I usually find Folly [1] and Abseil [2] beat the standard library on almost every metric you can imagine, including the under appreciated compile time metric.

    And then of course there's boost [3], but people have very mixed opinions about it.

    The reason a lot of developers use the standard library in C++ is because dependency management in C++ such a nightmare that many people writing a library are forced to use the standard if they want any hope of adoption even when far superior options exist. It's literally something people writing C++ libraries will advertise "Dependency free header only library!" because they know without that a lot of developers won't bother using it.

    Anyways, I would be interested to know what part of the standard library you find is better than third party options.

    [1] https://abseil.io/

Stats

Basic abseil-cpp repo stats
17
9,337
8.8
5 days ago

abseil/abseil-cpp is an open source project licensed under Apache License 2.0 which is an OSI approved license.

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
Find remote jobs at our new job board 99remotejobs.com. There are 25 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.