primes-cpp
ioccc-obfuscated-c-contest
primes-cpp | ioccc-obfuscated-c-contest | |
---|---|---|
1 | 87 | |
0 | 130 | |
- | - | |
10.0 | 0.0 | |
over 7 years ago | over 4 years ago | |
C++ | HTML | |
- | - |
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.
primes-cpp
-
Ask HN: What piece of code/codebase blew your mind when you saw it?
Everybody mentions this, and what's great is that it is a pretty natural solution to a lot of problems. I remember coming up with a version of it while writing an optimized prime-sieve[1], and was surprised when I later learned that it was some named technique.
In addition to just the basic loop-unrolling (which I'm pretty sure you usually don't need to do by hand with modern compilers), it works really well when you need to jump into the middle of a pattern. Like if you're sieving primes in a wheel-factorized array.
[1] https://github.com/patricksjackson/primes-cpp/blob/master/pr...
// Here we're only checking possible primes after wheel-factorization
ioccc-obfuscated-c-contest
-
Making Rust supply chain attacks harder with Cackle
A semi-automated system that compares old unsafe code to new unsafe code would likely be really helpful here - say, a LLM prompted to investigate whether the new unsafe blocks are a significant difference in scope and documented intent from the old unsafe blocks. Unless the winners of https://www.ioccc.org/ are among your attackers, it's a pretty solid line of defense.
-
500 Lines or Less – Writing a useful program in fewer than 500 line code – AOSA
For that you can go savor the archives of IOCCC : https://www.ioccc.org/
-
The Awk Programming Language, Second Edition
>> Perl can also be hilariously unreadable: https://www.foo.be/docs/tpj/issues/vol4_3/tpj0403-0017.html
Most programming languages can be obfuscated. That does not mean people write code in those programming languages like that:
C: https://www.ioccc.org/
Javascript: view-source:https://www.google.com/
The truth is that insulting Perl is considered stylish by some, so many people do despite knowing little to nothing about Perl and having never used it.
-
Where can I find the juiciest, most complex and modern c++ code?
If you want the most complex, then probably here https://www.ioccc.org/
-
Suggestions for making my fizz buzz program as convoluted as possible?
Since someone already linked Enterprise FizzBuzz, I'll link The Obfuscated C Contest as a possible source of inspiration.
-
Radiation-hardened Quine: A quine that works after any one character is deleted
Or this one [3] that calculates pi by estimating its own surface area.
Or this one [4]. It's a lovers quarrel, written simultaneously in C and English. It's incredible, seriously, read it.
[0]: https://www.ioccc.org/
-
Even the K&R book implements a "C gibberish to English" translator
I wonder what sort of "English" it spits out when fed obfuscated C code
-
I can't fathom how any of those could be used.
OP is going to rage quit when he sees https://www.ioccc.org/
-
JavaScript forbidden practices. Part 5: orthogonality
I mean, its no https://www.ioccc.org/ entry
-
JavaScript forbidden practices. Part 4: self-documenting code
The International Obfuscated C Code Contest for all you brain damage needs.
What are some alternatives?
lisp-in-life - A Lisp interpreter implemented in Conway's Game of Life
Removeddit - View deleted stuff from reddit
scheme - An R7RS Scheme implemented in WebAssembly
rustcc - A (toy) C compiler written in Rust.
Anime-Girls-Holding-Programming-Books - Anime Girls Holding Programming Books
W3Schools - W3Schools Full Offline Version
git-blame-someone-else - Blame someone else for your bad code.
zig - General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
r9cc - Toy C compiler
ComLightInterop - Cross-platform COM interop library for .NET Core 2.1 or newer
mimic - [ab]using Unicode to create tragedy
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee - eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee