ptc-print: a C++17 header-only library for custom printing to the output stream (basically a detailed implementation of the Python print() function with improvements)

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

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

    A single-header cross-platform library for custom printing to the output stream.

  • Hello everybody, I want to present you `ptc-print`, a modern C++ library for custom printing to the output stream. It is basically a detailed implementation of the Python `print()` function, with several additions. It is **NOT** a formatting library as `fmt`, but a pretty printer tool which provides you a most comfortable way to print generic stuff to the output stream. In particular, some of its features are: - It is constructed through the `Print` functor, which is a fully type- and thread-safe class with automatic memory management, implemented through an *header-only* library, with no external dependencies. - It supports also the usage of *ANSI escape sequences*. - It supports the printing of all the standard types and also stdlib ones (`std::vector`, `std::map` etc...). - It is possible to choose to print using different char types (`char`, `wchar_t`...). - Several [advantages](https://github.com/JustWhit3/ptc-print#advantages) with respect to similar libraries (friendly syntax, better performances, etc...). There is a whole README section dedicated to this. It has also many more features like the possibility to choose end and separator characters (like in Python) or to set a pattern among each printed argument. In the main README you can find all the information you want, a list of todo stuff and some preliminary [benchmarking](https://github.com/JustWhit3/ptc-print#comparison-with-other-libraries) studies I performed with respect to other similar libraries. With [performance improvements](https://github.com/JustWhit3/ptc-print#performance-improvements) options enabled it is even consistently faster than `fmt::print` or `printf`. If you like the repo don't forget to leave a star on GitHub! Thanks. Repository link: https://github.com/JustWhit3/ptc-print

  • 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
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