What C++ library do you wish existed but hasn’t been created yet?

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

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. cpr

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

    This one might fit the bill https://github.com/libcpr/cpr

  2. SaaSHub

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

    SaaSHub logo
  3. mysql

    MySQL C++ client based on Boost.Asio (by boostorg)

  4. 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

    I'm not sure this is quite what you're asking for, but this library has been super helpful to me in the past : https://github.com/Neargye/magic_enum

  5. frozen

    a header-only, constexpr alternative to gperf for C++14 users

    I use the Frozen library for that. Since the conversions should be known at compile time you can make constexpr hash tables for lookups.

  6. cheap

    C++ HTML Element Apparator

    https://github.com/s9w/cheap is pretty basic but I had the same problem once

  7. http_parser

    http utils using STL only

    i'v tried to write http parser (it can only parse, socket and so on is external). tere is no enough time to test it well, but you can try. it's header only and uses only std.

  8. sqlpp11

    A type safe SQL template library for C++

    sqlpp11 actually helps in this area (which imo is the most error prone area of using a database) and offers compile time query checking

  9. simdutf

    Unicode routines (UTF8, UTF16, UTF32) and Base64: billions of characters per second using SSE2, AVX2, NEON, AVX-512, RISC-V Vector Extension, LoongArch64. Part of Node.js, WebKit/Safari, Ladybird, Chromium, Cloudflare Workers and Bun.

    utf8 normalization, stemming, case insensitive comparison. https://github.com/unicode-rs example for rust What are options for C++? 1. translate to utf16 ( https://github.com/simdutf/simdutf ) and use icu -- slow 2. boost text, https://github.com/tzlaine/text , also slow (because the author doesn't care or couldn't care), we made a lot of patches to make our library faster than lucene, but still this part is slower than icu for utf16 (icu for utf16 also very slow...)

  10. text

    What a c++ standard Unicode library might look like. (by tzlaine)

    utf8 normalization, stemming, case insensitive comparison. https://github.com/unicode-rs example for rust What are options for C++? 1. translate to utf16 ( https://github.com/simdutf/simdutf ) and use icu -- slow 2. boost text, https://github.com/tzlaine/text , also slow (because the author doesn't care or couldn't care), we made a lot of patches to make our library faster than lucene, but still this part is slower than icu for utf16 (icu for utf16 also very slow...)

  11. json

    JSON for Modern C++

    https://github.com/nlohmann/json works well for me

  12. binary_io

    A binary i/o library for C++, without the agonizing pain

    I wrote a modern iostreams library a while back that was born out of these exact same frustrations: https://github.com/Ryan-rsm-McKenzie/binary_io

  13. nativejson-benchmark

    C/C++ JSON parser/generator benchmark

  14. hexago

    A Screensaver that draws shrinking hexagons of random size and colour (by saxbophone)

    SFML supports instantiating a rendering context from an existing OS-native window handle. I use said technique myself to support my screensaver rendering to the mini preview in the screensaver settings screen on macOS and Windows: https://github.com/saxbophone/hexago

  15. colrcv

    C Library for converting Colours between different Colour Models

    I wrote a basic C library https://github.com/saxbophone/colrcv for it back in the day, but I am not a colour model expert and it doesn't support profiles, only conversion between models in D65. I wrote it because I looked at the profile-aware system for doing so and proceeded to get sad!

  16. papers

    ISO/IEC JTC1 SC22 WG21 paper scheduling and management (by cplusplus)

  17. Wt

    Wt, C++ Web Toolkit

    Take a look at Wt Webtoolkit. It can do exactly this (and a lot more) https://www.webtoolkit.eu/wt

  18. Better Enums

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

    IIRC I then switched to another library doing the same stuff: https://github.com/aantron/better-enums It is not as magical, as it uses a special macro to define the enum, using dedicated syntax. So it only works for enums you yourself define. However, it did work a lot better for me with enums with huge values.

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

  • Behind the magic of magic_enum

    4 projects | /r/cpp | 12 Feb 2023
  • let's all be chads

    2 projects | /r/ProgrammerHumor | 28 Jul 2022
  • 🚀Announcing conjure_enum - a C++20 enum and typename reflection Library

    1 project | dev.to | 31 Jul 2024
  • Show HN: Conjure_enum – a C++20 enum and typename reflection Library

    1 project | news.ycombinator.com | 30 Jul 2024
  • C++ Game Utility Libraries: for Game Dev Rustaceans

    9 projects | dev.to | 13 Mar 2024