printbf
color-flood-for-amstrad-cpc
Our great sponsors
printbf | color-flood-for-amstrad-cpc | |
---|---|---|
6 | 1 | |
586 | 3 | |
1.7% | - | |
0.0 | 10.0 | |
about 3 years ago | over 1 year ago | |
Brainfuck | C | |
- | - |
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.
printbf
-
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
-
Controling a Super-Intelligent AI is Impossible, Says Researchers
No shit, you can write a brainfuck interpretter in printf statements: https://github.com/HexHive/printbf
-
The International Obfuscated C Code Contest 2020 winners
https://github.com/HexHive/printbf
well this is a brainfuck interpreter inside printf. I’m pretty sure there are plenty of c-to-bf transpilers.
color-flood-for-amstrad-cpc
-
Few lesser known tricks, quirks and features of C
const int myarray[mysize];
* Good news: C can do compile time constant structs and array with deep self-references.
Yes, in C you can define and fully declare complex data structures that are accepted as compile-time constants, including pointers to parts of itself.
See "self-contained, statically allocated, totally const data structure with backward and forward references (pointers)?" for a previous example at https://stackoverflow.com/questions/47037701/can-c-syntax-de...
-----------------
I used this for a game on a retro machine where such a data structure avoids code which would have been several times (perhaps 10 times) bigger: https://github.com/cpcitor/color-flood-for-amstrad-cpc/blob/...
Here's another take showing two variant: where overall construct is an array then a struct: https://gist.github.com/fidergo-stephane-gourichon/792c194e1...
What are some alternatives?
OWASP-Xenotix-XSS-Exploit-Framework - OWASP Xenotix XSS Exploit Framework is an advanced Cross Site Scripting (XSS) vulnerability detection and exploitation framework.
printf-tac-toe - tic-tac-toe in a single call to printf
xenocryst - A brainfuck interpreter written for memcpy(). Read the paper (or source) for more details.
turing - A reference implementation of Alan Turing's 1936 paper, On Computable Numbers
elvm - EsoLangVM Compiler Infrastructure
google-ctf - Google CTF
turing_machine - A simple C program to emulate two symbol turing machine
libwheel - Generic data structures for the C programming language with (near) zero overhead.
systemf - a brainfuck interpreter supporting linux syscalls with an example HTTP server