What are some cool modern libraries you enjoy using?

This page summarizes the projects mentioned and recommended in the original post on /r/cpp

CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. json_test_data

    Test data for nlohmann/json

    Libraries like nlohmann's json, cpr, fmt are prime examples of what I'm seeking. Any suggestions?

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. cpr

    C++ Requests: Curl for People, a spiritual port of Python Requests.

    Libraries like nlohmann's json, cpr, fmt are prime examples of what I'm seeking. Any suggestions?

  4. {fmt}

    A modern formatting library

    Libraries like nlohmann's json, cpr, fmt are prime examples of what I'm seeking. Any suggestions?

  5. univalue

    An easy-to-use and competitively fast JSON parsing library for C++17, forked from Bitcoin Cash Node's own UniValue library.

    nlohmann's json is ergonomic but is slow. I use this lib when I need speed.

  6. PEGTL

    Parsing Expression Grammar Template Library

    I like PEGTL

  7. mimalloc

    mimalloc is a compact general purpose allocator with excellent performance.

    mimalloc

  8. Magic Enum C++

    Static reflection for enums (to string, from string, iteration) for modern C++, work with any enum type without any macro or boilerplate code

    magic_enum by far. It has an extreme amount of black magic, and compiler specific stuff all abstracted away behind its extremely neat user interface.

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. outcome

    Provides very lightweight outcome<T> and result<T> (non-Boost edition)

    outcome and/or expected

  11. expected

    C++11/14/17 std::expected with functional-style extensions

    outcome and/or expected

  12. GLM

    OpenGL Mathematics (GLM)

    even though it's fairly old and buggy, I haven't found anything as easy to use or complete as glm

  13. entt

    Gaming meets modern C++ - a fast and reliable entity component system (ECS) and much more

    entt if you really need that ECS model

  14. stb

    stb single-file public domain libraries for C/C++

    if you need basic support for different things and don't mind slowness, stb has a bunch of nice simple libraries, mostly for image/sound/font loading/saving

  15. Allegro

    The official Allegro 5 git repository. Pull requests welcome!

    allegro5 is a great rendering library if you want to get something 2D on the screen fast

  16. farmhash

    Discontinued Automatically exported from code.google.com/p/farmhash (by google)

    farmhash is pretty great as well in terms of API

  17. cpp-httplib

    A C++ header-only HTTP/HTTPS server and client library

  18. Experimental Boost.DI

    C++14 Dependency Injection Library

    I love: https://github.com/boost-ext/di for dependency injection

  19. FTXUI

    Features: - Functional style. Inspired by [1] and React - Simple and elegant syntax (in my opinion). - Support for UTF8 and fullwidth chars (→ 测试). - No dependencies. - Cross platform. Linux/mac (main target), Windows (experimental thanks to contributors), - WebAssembly. - Keyboard & mouse navigation. Operating systems: - linux emscripten - linux gcc - linux clang - windows msvc - mac clang

    Just discovered FTXUI - a library for creating functional user interfaces on terminal. It supports clickable stuff and even plots. https://github.com/ArthurSonzogni/FTXUI Jason Turner also has a starting repository with all the boilerplate ready: https://github.com/cpp-best-practices/ftxui_template

  20. cmake_template

    CMake for C++ Best Practices

    Just discovered FTXUI - a library for creating functional user interfaces on terminal. It supports clickable stuff and even plots. https://github.com/ArthurSonzogni/FTXUI Jason Turner also has a starting repository with all the boilerplate ready: https://github.com/cpp-best-practices/ftxui_template

  21. sml

    C++14 State Machine library

    I'm a big fan of boost::sml for representing state machines.

  22. abseil-cpp

    Abseil Common Libraries (C++)

    Abseil https://abseil.io/

  23. Code-used-on-Daniel-Lemire-s-blog

    This is a repository for the code posted on my blog

    Nope, simdjson is originally from Daniel Lemire who also often blogs about fancy low level optimizations: https://lemire.me/blog/ I'm just a happy user :)

  24. read

    A small header-only library to make input in C++ sensible

  25. compile-time-regular-expressions

    Compile Time Regular Expression in C++

    ctre

  26. robin-hood-hashing

    Discontinued Fast & memory efficient hashtable based on robin hood hashing for C++11/14/17/20

    Oh my bad. Still thought -- your name.. it looks very familiar to me. Are you the robin_hood hashing guy perhaps? Yes you are! My bad -- https://github.com/martinus/robin-hood-hashing.

  27. bela

    Modern C++ development experience library (by fcharlie)

    Bela Utilities - Modern C++20 library collection, better development experience on Windows (10,11)

  28. Better Enums

    C++ compile-time enum to string, iteration, in a single header file

  29. cpp-peglib

    A single file C++ header-only PEG (Parsing Expression Grammars) library

    By the same author, https://github.com/yhirose/cpp-peglib is also very nice.

  30. Thrust

    Discontinued [ARCHIVED] The C++ parallel algorithms library. See https://github.com/NVIDIA/cccl

    For GPGPU, I like thrust. C++-idiomatic way of writing CUDA code, passing between host and device, etc.

  31. RESTinio

    Cross-platform, efficient, customizable, and robust asynchronous HTTP(S)/WebSocket server C++ library with the right balance between performance and ease of use

    I had a good experience using restinio for a small ASIO HTTP server recently.

  32. DataFrame

    C++ DataFrame for statistical, Financial, and ML analysis -- in modern C++ using native types and contiguous memory storage

  33. threadx

    Discontinued Azure RTOS ThreadX is an advanced real-time operating system (RTOS) designed specifically for deeply embedded applications. (by azure-rtos)

    I'm interested in something equivalent to tx_byte_pool but for non-embedded usage where I want a custom allocator for defined pools. Do you know if mimalloc can do this? I see it has custom heaps, but I didn't see any functions to create one from raw memory.

  34. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Factor is faster than Zig

    11 projects | news.ycombinator.com | 10 Nov 2023
  • Harald Achitz: Launder lazy_storage

    1 project | /r/cpp | 18 Mar 2023
  • Inside boost::unordered_flat_map

    11 projects | /r/cpp | 18 Nov 2022
  • palpatine Release1.0

    3 projects | dev.to | 18 Sep 2022
  • Giving C++ std:regex a C makeover

    4 projects | news.ycombinator.com | 5 Sep 2024

Did you know that C++ is
the 7th most popular programming language
based on number of references?