tinyformat
nanoprintf
tinyformat | nanoprintf | |
---|---|---|
4 | 5 | |
519 | 575 | |
- | - | |
0.0 | 5.5 | |
3 months ago | 1 day ago | |
C++ | C++ | |
- | GNU General Public License v3.0 or later |
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).
nanoprintf
-
nanoprintf VS callback_printf - a user suggested alternative
2 projects | 16 Aug 2023
- Nanoprintf – The smallest public printf implementation for its feature set
-
DOOM! on the #emfcamp TiDAL badge
It turns out that DOOM expects a little more POSIX compliance from it's C library than Micropython provides, in particular the printf implementation is lacking many features. The good part is that because I'm building an entirely separate binary application, I can use someone elses printf, and finally, after a lot of pain, it runs!
-
Actual Challenges Faced In Software
You might be interested in this or similar: https://github.com/charlesnicholson/nanoprintf
- Nanoprintf v0.1.0 Released, drop-in [v]snprintf
What are some alternatives?
C++ Format - A modern formatting library
printf - Tiny, fast, non-dependent and fully loaded printf implementation for embedded systems. Extensive test suite passing.
blackboxwm - A window manager for X11
defmt - Efficient, deferred formatting for logging on embedded systems
printf-tac-toe - tic-tac-toe in a single call to printf
printf - Tiny, fast(ish), self-contained, fully loaded printf, sprinf etc. implementation; particularly useful in embedded systems.
papers - ISO/IEC JTC1 SC22 WG21 paper scheduling and management
doomgeneric - Easily portable doom
AnyAny - C++17 library for comfortable and efficient dynamic polymorphism
lfbb - A Lock Free Bipartite Buffer Library written in standard C11
scnlib - scanf for modern C++
esp-idf - Espressif IoT Development Framework. Official development framework for Espressif SoCs.