This is a list of open source tools and libraries I have used, want to use, or at least are worth thinking about. Originally, I was using "stars" for this, but I really wanted to be able to group them.
I will usually use one of these two sets of core libraries. I use Abseil when I am working on a system that is worried about minimizing dependendencies. Otherwise, I use several libraries:
- abseil - Abseil is an open-source collection of C++ code (compliant to C++11) designed to augment the C++ standard library.
or
- cxxopts - Lightweight C++ command line option parser.
- {fmt} - Small, safe and fast formatting library.
- parallel-hashmap Essentially a reqrite of the Abseil hashmaps and btree implementations, but it has a wrapper around X of them, thus increasing the parallelization significantly.
Then I pick and choose from these, depending on the actual needs:
- spdlog - Commonly used logging library
- libucl - Beautiful configuration parser
- Googletest - Google Testing and Mocking Framework
- Google Benchmark - A microbenchmark support library
- backward-cpp - A beautiful stack trace pretty printer for C++. [MIT]
- Eigen - A high-level C++ library of template headers for linear algebra, matrix and vector operations, numerical solvers and related algorithms. [MPL2]
- PCRE - A regular expression C library inspired by the regular expression capabilities in Perl. [BSD]
- bzip2 - A freely available, patent free, high-quality data compressor. [BSD]
- LZ4 - Extremely Fast Compression algorithm. [BSD] website
- LZMA - The default and general compression method of 7z format. [PublicDomain]
- Snappy - A fast compressor/decompressor. [BSD]
- zstd - Zstandard - Fast real-time compression algorithm. Developed by Facebook. [BSD]
Most of the time, protobuf is a good balance of features, ease of use, and perfomance. Sometimes though, you just want your data to be human readable and widely adoptable. In that case, reach for JSON. Sometimes you want performance above all else. Flatbuffers is for these cases.
- FlatBuffers - A Memory efficient serialization library. [Apache2]
- protobuf - Protocol Buffers - Google's data interchange format. [BSD]
- json - JSON for Modern C++.
- Intel TBB - Intel® Threading Building Blocks. [Apache2]
- Asio - A cross-platform C++ library for network and low-level I/O programming that provides developers with a consistent asynchronous model using a modern C++ approach. [Boost] website
- libuv - Cross-platform asynchronous I/O. [BSD]
- uvw - C++ wrapper for libuv. [MIT]
- SQLite - A completely embedded, full-featured relational database in a few 100k that you can include right into your project. [PublicDomain]
- RocksDB - Embedded key-value store for fast storage from facebook. [BSD]
- Hiredis - A minimalistic C client library for the Redis database. [BSD]
- libpqxx - C++ interface to PostgreSQL [BSD-3]
- cpr - C++ Requests: Curl for People, a spiritual port of Python Requests.
- libcurl - Multiprotocol file transfer library. [MIT/X derivate license]
- gRPC - A high performance, open source, general-purpose RPC framework. [BSD] website
- ZeroMQ - High-speed, modular asynchronous communication library. [LGPL] website
- NATS-C - Ultra lightweight messaging system
- rdkafka - C++ client library for Apache Kafka
- RabbitMQ - Interact with the RabbitMQ messaging queue in C++
- clang-format - A tool to format C++ code.
- clangd - understands your C++ code and adds smart features to your editor: code completion, compile errors, go-to-definition and more.
- Compiler Explorer - Interactively explore the assembly output of your C++ code.
- Valgrind - is an instrumentation framework for building dynamic analysis tools. There are Valgrind tools that can automatically detect many memory management and threading bugs, and profile your programs in detail. You can also use Valgrind to build new tools.
- cppcheck - is a static analysis tool for C/C++ code. It provides unique code analysis to detect bugs and focuses on detecting undefined behaviour and dangerous coding constructs.
- clang-tidy - is a clang-based C++ “linter” tool. Its purpose is to provide an extensible framework for diagnosing and fixing typical programming errors, like style violations, interface misuse, or bugs that can be deduced via static analysis. clang-tidy is modular and provides a convenient interface for writing new checks.
- clang-analyzer - is a source code analysis tool that finds bugs in C, C++, and Objective-C programs. It implements path-sensitive, inter-procedural analysis based on symbolic execution technique.
- CMake - Cross-platform family of tools designed to build, test and package software.
- Ninja - A small build system with a focus on speed.
- GCC - GNU Compiler Collection. Supports C++11/14/1z C11 and OpenMP. [GNU GPL3]
- GDB - GNU Debugger.
- Compiler Explorer - An interactive compiler with assembly output available.
- Jenkins
- ripgrep
- fd - find replacement
- fzf - fuzzy searcher plugin for vim, bash, etc.
- Visual Studio Code
- vim
- tmux
- Telegraf - An open source server agent to help you collect metrics from your stacks, sensors and systems. The influxdb folks expect you to use influxdb as the backend, but I prefer postgresql (and timescaledb) because I don't want to maintain another DB.
- Prometheus - An open-source systems monitoring and alerting toolkit originally built at SoundCloud.
- Grafana - Used by thousands of companies to monitor everything from infrastructure, applications, and power plants to beehives
- Jaeger - Monitor and troubleshoot transactions in complex distributed systems. Honestly, I haven't ever needed this - simply writing stats out to prometheus has always been good enough. Its good to know that this is out there, though.
- Docker
- Consul
- Envoy
- Nomad
- RancherOS - A lightweight, secure Linux distribution, built from containers to run containers well.
- PostgreSQL - The World's Most Advanced Open Source Relational Database
- PostGIS - PostGIS is a spatial database extender for PostgreSQL object-relational database.
- Timescaledb - Store time correlated data in postgresql quickly
- Redis - In memory remote data structure store