strf
fast_io
Our great sponsors
strf | fast_io | |
---|---|---|
9 | 19 | |
68 | 153 | |
- | - | |
9.0 | 9.9 | |
12 days ago | about 2 years ago | |
C++ | C++ | |
Boost Software License 1.0 | MIT License |
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.
strf
-
issue with libfmt and locale: Alignment is not correct.
You might get interested in trying strf library instead:
-
std::format, UTF-8-literals and Unicode escape sequence is a mess
If you want a formatting library that supports well char8_t and UTF, you might get interested in the one I'm developing: Strf.
-
How many people use printf() in their C++ code ?
You might like the strf formatting library then
-
How to get unicode of special characters in c++
You can also use https://github.com/robhz786/strf to convert utf-8 to utf-32 ( as demonstrated here).
-
Root cause of log4j: format string is a historical mistake. fast_io is the future.
Format strings enable the use of tools like gettex. However, with the strf formatting library, It is possible to use them without a format string.
-
State of the art for CPOs (customization points) in C++?
So it is a formatting library (strf), and if one wants to make a type xyz printable, one can either specialize a template or overload tag_invoke function, like below:
-
std::locale portability
The Strf formatting library may solve your problem:
-
Converting int to char*
There is the strf formatting library. Its current version (0.14) is not working well in CUDA, but I'm working to fix this into the next release, which should come soon. The usage would be:
-
Do you use cout or printf
strf
fast_io
- Why Windows isn't ready for Arm developers
- Root cause of log4j: format string is a historical mistake. fast_io is the future.
- C++20 std::format is 2x slower than std::fstream?
- What does the keyword "inline" REALLY mean in C++?? You are highly likely to misunderstand it!
- C++ exceptions under the hood
- Fast_io and refterm v2 is 46548 times faster than stdio.h and cmd
-
fast_io + refterm v2 is 46548 times faster than stdio.h + cmd
Ah, fair enough! Happen to have a link to an example / docs? I can't really make heads or tails of the examples/docs and I don't really spend much time worrying about optimizing I/O in C++ to have enough context. I assume something to do with open_mode?
What are some alternatives?
C++ Format - A modern formatting library
nanobench - Simple, fast, accurate single-header microbenchmarking functionality for C++11/14/17/20
American Fuzzy Lop - american fuzzy lop - a security-oriented fuzzer
Windows Terminal - The new Windows Terminal and the original Windows console host, all in the same place!
RE2 - RE2 is a fast, safe, thread-friendly alternative to backtracking regular expression engines like those used in PCRE, Perl, and Python. It is a C++ library.
fast_io_vs_rust
libssh2 - the SSH library
neither - Either and Maybe monads for better error-handling in C++ ↔️
c-smart-pointers - Smart pointers for the (GNU) C programming language
dtoa-benchmark - C++ double-to-string conversion benchmark
SDS - Simple Dynamic Strings library for C
Experimental Boost.MSM-lite - Boost.SML (formerly called Boost.MSM-lite)