home.social

#quine — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #quine, aggregated by home.social.

  1. Thanks to the #c23 #embed macro, I may have written the world's shortest #quine.
    ```c
    #include<stdio.h>
    int main(){puts((char[]){
    #embed"q.c"
    ,0});}
    ```
    (I doubt that I'm the first to do this)
    We just need to politely ignore the extra `\n` injected by `puts`. Otherwise, replace `puts` with `printf`.

  2. svg8.svg — Code is numbers.
    Edition of 10
    (Final version)

    Each character of the source code is remapped to a hexadecimal digit (0-F) with an added offset over time. Each line of code will be visited once.

    Project page

    ertdfgcvb.ch/+/svg

    Realtime version

    objkt.com/asset/hicetnunc/8151

    #realtime
    #svg
    #quine
    #bigint
    #javascript
    #NFT
    #cryptoart

  3. Having fun this evening talking about unusual code with youngest kid.

    We discussed quines [1], the legendary "hello polyglots" program [2], and ran a bash fork bomb [3] on my MacBook.

    (Results: high CPU usage, loud fans, excess heat, forced reboot, giggling child)

    1: en.wikipedia.org/wiki/Quine_(c
    2: yarchive.net/comp/polyglot.htm
    3: :(){ :|:&};:

    #Programming #Quine #ForkBomb