tinyformat
papers
Our great sponsors
tinyformat | papers | |
---|---|---|
4 | 84 | |
517 | 587 | |
- | 2.9% | |
0.0 | 4.6 | |
3 months ago | 4 months ago | |
C++ | Perl | |
- | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
tinyformat
-
I’m about to start learning C++
printf has some pretty serious security implications. When I want more complicated text printing options than what is easy or terse in iostream then I use the tinyformat library.
-
The Year is 2022 and the Standard is C++20; what is your preferred way to do Text I/O?
The usual way I do I/O is via combining C++ stringstremas with either tinyformat or via an implementation of p0117 "variadic to_[basic_]string, depending on the particular need.
-
[Belay the C++] Yet another reason to not use printf (or write C code in general)
Haven't been able to make it work with MSVC 2012 (the earliest Windows-side compiler I need to support). I myself use tinyformat instead.
-
Is there a real benefit to using cout as opposed to printf that offsets the extra work in formatting?
However, not all is lost. While there are libraries like {fmt} I don't pay attention to them because they are far away into The Future and unusable with my requirements (C++03 support at the earliest, work reasons). Most newfangled libs I've seen are intended for Compilers of the Future, for C++20/C++23 and the like, and with that among other reasons are not generic enough for me. Instead I just use tinyformat that lays on top of both and bridges them, not to mention the biggest sell that is rrtaining the POSIX style printf notation (why didn't {fmt} go with that is still a mystery to me).
papers
-
Learn Modern C++
What's fun is, because everything is decided in papers, we can find out why! https://github.com/cplusplus/papers/issues/884
Accepted paper here: https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p20...
> The proposed std::print function improves usability, avoids allocating a temporary std::string object and calling operator<< which performs formatted I/O on text that is already formatted. The number of function calls is reduced to one which, together with std::vformat-like type erasure, results in much smaller binary code (see § 13 Binary code).
Additionally,
> Another problem is formatting of Unicode text:
> std::cout << "Привет, κόσμος!";
> If the source and execution encoding is UTF-8 this will produce the expected output on most GNU/Linux and macOS systems. Unfortunately on Windows it is almost guaranteed to produce mojibake despite the fact that the system is fully capable of printing Unicode
- The insanity of compile time programming
- P1673 A free function linear algebra interface based on the BLAS
-
When will std::linalg make it into a new C++ release?
See https://github.com/cplusplus/papers/issues/557
-
C++ Papercuts
Bringing editions to C++ failed, and I am not aware of anyone trying to tackle the issues https://github.com/cplusplus/papers/issues/631
(I could be wrong though! I follow the committee more than you may guess, but not as much as to think I know everything about what's going on.)
-
Argonne National Lab is attempting to replicate LK-99
GitHub would not be relevant in this respect because:
* It's owned by a (single) commercial corporation, Microsoft.
* There is censorship both by content and in some respects by country of origin.
* The code is closed.
but otherwise it's an interesting idea.
The C++ standardization committee uses GitHub to track papers submitted to them, see:
https://github.com/cplusplus/papers
-
C++23: The Next C++ Standard
There was no non-approval. The facility needs more work, and the authors (and the committee) were focusing on getting print/format done first. I hope that the paper will be worked on again in the future. We will be happy to review it once there is a revision (see github for history)
- What C++ library do you wish existed but hasn’t been created yet?
-
2023-06 Varna ISO C++ Committee Trip Report — First Official C++26 meeting!
For more details on what we did at the 2023-06 Varna meeting, the [GitHub issue](https://github.com/cplusplus/papers/issues/328) associated with the paper has a summary.
-
Trip Summer ISO C++ standards meeting (Varna, Bulgaria)
You subscribe to the Github issue of the proposal: https://github.com/cplusplus/papers/issues
What are some alternatives?
C++ Format - A modern formatting library
circle - The compiler is available for download. Get it!
blackboxwm - A window manager for X11
compiler-explorer - Run compilers interactively from your web browser and interact with the assembly
printf-tac-toe - tic-tac-toe in a single call to printf
AnyAny - C++17 library for comfortable and efficient dynamic polymorphism
LEWG - Project planning for the C++ Library Evolution Working Group
scnlib - scanf for modern C++
CPM.cmake - 📦 CMake's missing package manager. A small CMake script for setup-free, cross-platform, reproducible dependency management.
libcfg-cpp - A minimalistic configuration manager for C++ projects.
FastAD - FastAD is a C++ implementation of automatic differentiation both forward and reverse mode.