Why are strings and IO so complicated?

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

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • compile-time-regular-expressions

    Compile Time Regular Expression in C++

  • I tend to use std::getline to read each line into a string and then a regular expression to break out the line. Where ‘regular expression’ is CTRE from https://github.com/hanickadot/compile-time-regular-expressions

  • flux

    A C++20 library for sequence-orientated programming (by tcbrindle)

  • After that, I use this rather excellent library 😉 or CTRE if the input format is more complicated.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • pystring

    C++ functions matching the interface and behavior of python string methods with std::string

  • If you are used to python strings give pystring from Sony Imageworks a go. https://github.com/imageworks/pystring

  • Here is my solution to today's problem, for example.

  • advent_of_code

    C++23 solutions to advent of code puzzles -- various years complete. (by jwezorek)

  • re: advent of code, I've been doing it this year in modern style C++, actually C++23 because I use ranges::to and ranges::views::zip.

  • range-v3

    Range library for C++14/17/20, basis for C++20's std::ranges

  • std::ranges is in c++20, but you can pull in the library it was based on if you use 17 (https://github.com/ericniebler/range-v3)

  • strutil

    Header only C++ string utility library (by tgalaj)

  • You want to: 1) checkout strutil: https://github.com/tgalaj/strutil (I used that for my 2022's AoC in C++ a lot) (also eigen: https://eigen.tuxfamily.org/index.php?title=Main_Page and tensorx: https://tensorx.org/ might not hurt) 2) checkout and compare with other people's code: https://github.com/Bogdanp/awesome-advent-of-code#c-2

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • lexy

    C++ parsing DSL

  • lexy (https://lexy.foonathan.net/)

  • scnlib

    scanf for modern C++

  • scnlib (https://github.com/eliaskosunen/scnlib) scanf

  • aoc2023

    C++23 aoc 2023 (by GGCristo)

  • I am doing aoc this year in modern C++, here is the Github link in case you want to take a look to learn or give some feedback https://github.com/GGCristo/aoc2023

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