primes-cpp
quine-relay
primes-cpp | quine-relay | |
---|---|---|
1 | 49 | |
0 | 13,808 | |
- | - | |
10.0 | 6.2 | |
over 7 years ago | about 1 month ago | |
C++ | Ruby | |
- | - |
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
quine-relay
- Quine Relay: An uroboros program with 100 programming languages
- Quine Relay – An uroboros program with 100 programming languages
-
Radiation-hardened Quine: A quine that works after any one character is deleted
If there were more languages, then it'd be `console.log("System.out.println({python_source})")`, etc. The problem then becomes quoting and escaping inner quotes. I managed to avoid the problem by using both single and double quotes, and relying on Python's `repr` also giving valid JS strings, but if I had to add one more language I'd have problems.
I still think the Quine Relay is a tour de force, but for different reasons. It's not 128 quines in different languages, but an incredibly robust system for quoting and escaping strings in 128 different languages.
[1] https://github.com/mame/quine-relay/blob/master/src/code-gen...
-
JavaScript forbidden practices. Part 4: self-documenting code
One of the most impressive works I've seen: https://github.com/mame/quine-relay
-
High Te/Ti users, explain to me a fact (scientific/business/practical...) in stupid terms.
"Quine" is a type of program, when executed, will output itself (it's actually it's source code). It's very hard to write one. And this guy wrote a loop quine. It supposed to work like this: * A program in language A output a program in language B * The program in language B output a program in language C * The program in language C output the same program in language A which we started with
-
What do you do to achieve this catastrophy?
Or a Quine relay.
-
It’s worse on mondays for some reason…
Why use a couple of languages, when you can use 128 of them simultaneously? https://github.com/mame/quine-relay
- 😈
-
Weird Ones: 30 years of Brainfuck
Quine relay [1] is to this day the most "I will never understand this" brainfuck project I have ever seen.
[1] https://github.com/mame/quine-relay
-
AI Artist
Go look at a programming quine and tell me it isn't art.
What are some alternatives?
lisp-in-life - A Lisp interpreter implemented in Conway's Game of Life
WLED - Control WS2812B and many more types of digital RGB LEDs with an ESP8266 or ESP32 over WiFi!
scheme - An R7RS Scheme implemented in WebAssembly
ox - An independent Rust text editor that runs in your terminal!
chinese-poetry - The most comprehensive database of Chinese poetry 🧶最全中华古诗词数据库, 唐宋两朝近一万四千古诗人, 接近5.5万首唐诗加26万宋诗. 两宋时期1564位词人,21050首词。
Deep Java Library (DJL) - An Engine-Agnostic Deep Learning Framework in Java
cp-ddd-framework - 轻量级DDD正向/逆向业务建模框架,支撑复杂业务系统的架构演化!
OpenCorePkg - OpenCore bootloader
yt-dlc - media downloader and library for various sites.
pentaquine - 5-way multiquine
hacker-scripts - Based on a true story
mediapipe - Cross-platform, customizable ML solutions for live and streaming media.