printf-tac-toe
static-print
printf-tac-toe | static-print | |
---|---|---|
18 | 1 | |
2,029 | 144 | |
- | - | |
0.0 | 0.0 | |
almost 2 years ago | over 6 years ago | |
C | ||
GNU General Public License v3.0 only | GNU General Public License v3.0 only |
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.
printf-tac-toe
- 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)
static-print
-
Discussion on possibility of a compile-time printf
there was a patch for gcc 7.1 that included that feature: https://github.com/saarraz/static-print
What are some alternatives?
tinyformat - Minimal, type safe printf replacement library for C++
meta
C++ Format - A modern formatting library
talent-plan - open source training courses about distributed database and distributed systems
moonlight-docs - Moonlight Documentation
papers
papers - ISO/IEC JTC1 SC22 WG21 paper scheduling and management
MicroPython - MicroPython - a lean and efficient Python implementation for microcontrollers and constrained systems
voxelcopter - Multithreaded helicopter simulator with CPU-only rendering (ray casting) using terrain from the 1992's game Comanche.
printbf - Brainfuck interpreter inside printf