meta
printf-tac-toe
meta | printf-tac-toe | |
---|---|---|
9 | 18 | |
122 | 2,029 | |
0.8% | - | |
0.0 | 0.0 | |
almost 3 years ago | almost 2 years ago | |
C++ | C | |
- | 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.
meta
-
Trying out Reflection TS experimental
I guess I'm confused which compiler to use. Is this by lock3 the "demo" implementation which is superseded by clang 15.0-reflection (godbolt says that's the compiler used). I'm using clang for now
-
Experimental Clang implementation of TS Reflection is now available.
Is it related to the "meta" branch or a completely independent work ? (https://github.com/lock3/meta/wiki)
-
Adding reflection to an existing codebase
then there's no pure C++ solution, you either have to use alternative compilers such as https://github.com/lock3/meta/wiki or Circle, or use an external reflection system such as Qt's moc
-
Code generation using attributes
https://github.com/lock3/meta/wiki/Metaprogramming-Introductory-Tutorial for a fork of clang with the reflection & metaclass feature
-
C++ Reflection
and https://github.com/lock3/meta/wiki/Reflection-Introductory-Tutorial for a tutorial
-
Discussion on possibility of a compile-time printf
yup, that would be the "CPPX" compiler developed for prototyping reflection and metaprogramming features, also available here
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)
What are some alternatives?
shaders - Circle C++ shaders
tinyformat - Minimal, type safe printf replacement library for C++
circle - The compiler is available for download. Get it!
C++ Format - A modern formatting library
Refureku - Cross-platform C++17 Runtime Reflection Library
talent-plan - open source training courses about distributed database and distributed systems
moonlight-docs - Moonlight Documentation
HAR - Drop-in simulator for C/C++-programmable microcontrollers and hardware models
papers
llvm-project - The LLVM Project is a collection of modular and reusable compiler and toolchain technologies. Note: the repository does not accept github pull requests at this moment. Please submit your patches at http://reviews.llvm.org.
papers - ISO/IEC JTC1 SC22 WG21 paper scheduling and management