tinyformat
Minimal, type safe printf replacement library for C++ (by c42f)
printf-tac-toe
tic-tac-toe in a single call to printf (by carlini)
Our great sponsors
tinyformat | printf-tac-toe | |
---|---|---|
4 | 18 | |
517 | 2,029 | |
- | - | |
0.0 | 0.0 | |
3 months ago | almost 2 years ago | |
C++ | C | |
- | GNU General Public License v3.0 only |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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
Posts with mentions or reviews of tinyformat.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-08-03.
-
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).
printf-tac-toe
Posts with mentions or reviews of printf-tac-toe.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-07-01.
- A C implementation of tic-tac-toe in a single call to printf
- Printf-tac-toe: tic-tac-toe in a single call to printf
- Tic-tac-toe in a single call to printf
- GitHub – carlini/printf-tac-toe: tic-tac-toe in a single call to printf
- Printf-Tac-Toe
- Tic-tac-toe implemented in a single call to printf
- A c implementation of tic-tac-toe in a single call to printf.
-
Few lesser known tricks, quirks and features of C
Somewhat related to this, printf alone in a loop is Turing-complete, by using %-directives like that. It was introduced in “Control-Flow Bending: On the Effectiveness of Control-Flow Integrity” (Carlini, et al. 2015) and the authors have implemented Brainfuck and an obfuscated tic-tac-toe with it.
[0]: https://nebelwelt.net/publications/files/15SEC.pdf
[1]: https://github.com/HexHive/printbf
[2]: https://github.com/carlini/printf-tac-toe
-
Rule
My favourite is still that printf is Turing Complete
-
Hacker News top posts: Jun 8, 2022
C implementation of Tic-Tac-Toe in a single call to printf\ (17 comments)
What are some alternatives?
When comparing tinyformat and printf-tac-toe you can also consider the following projects:
C++ Format - A modern formatting library
blackboxwm - A window manager for X11
talent-plan - open source training courses about distributed database and distributed systems
papers - ISO/IEC JTC1 SC22 WG21 paper scheduling and management
moonlight-docs - Moonlight Documentation
AnyAny - C++17 library for comfortable and efficient dynamic polymorphism
meta
scnlib - scanf for modern C++
papers
libcfg-cpp - A minimalistic configuration manager for C++ projects.
tinyformat vs C++ Format
printf-tac-toe vs C++ Format
tinyformat vs blackboxwm
printf-tac-toe vs talent-plan
tinyformat vs papers
printf-tac-toe vs moonlight-docs
tinyformat vs AnyAny
printf-tac-toe vs meta
tinyformat vs scnlib
printf-tac-toe vs papers
tinyformat vs libcfg-cpp
printf-tac-toe vs papers