Next.js Hacker News
  • top|
  • new|
  • ask|
  • show|
  • jobs|
  • GitHub
A quine in Piet – a GIF image that prints itself [video]
74 points by surprisetalk 4 days ago | 9 comments
  • chao-
    Every time I peek at the code from something by Mr. Endoh, I end up down a rabbit hole and learn something. I look forward to what this one brings. Probably looking into this Piet language: https://www.dangermouse.net/esoteric/piet.html

    Another awe-inspiring quine of his, from about a decade ago, is the 128-language ouroboros quine:

    https://github.com/mame/quine-relay

    • capitainenemo
      The esolang wiki has a few simpler to grasp piet examples too. https://esolangs.org/wiki/Piet
      • vok
        The examples:

        https://www.dangermouse.net/esoteric/piet/samples.html

        The last one is astonishing: "Okay, this one is really wild. Piet J. (yes, that's his real name) was browsing art in a small gallery and saw a work which reminded him of a Piet program. He spoke to the artist, who claimed to know nothing about the language. Piet took a photo of the artwork (left), converted it into a clean image file using close colours from the Piet palette (right), and tried running it.

        It ran!..."

  • jamesaross
    If you like quines with a visual output like this, I recently taped out an self-reproducing ASIC which displays it's own Verilog source over VGA. https://github.com/jar/ttsky26a_prime_quine

    You may view the simulated output: https://vga-playground.com/?repo=https://github.com/jar/ttsk...

  • laxisOp
    Naive question:what it actually is .and what is usecase
    • rashkov
      a quine is a program that prints its own source code. The usecase is to inspire
  • sargstuff
    Could use vonori / conformal map[0][1] in order to support the decomposition of a complex problem into individual parts/piet blocks. aka go from base 2 gotos to base N gotos.

    --------

    [0] : Conformal Mapping by Computationally Efficient Methods : https://cdn.aaai.org/ojs/7676/7676-13-11206-1-2-20201228.pdf

    [1] : dictionary of conformal mapping : https://web.archive.org/web/20130407075256/http://math.fulle...

    "considered harmful" [gotos/globals/etc] : http://en.wikipedia.org/wiki/Considered_harmful

    "A case against the GO TO statement" : https://www.cs.utexas.edu/~EWD/transcriptions/EWD02xx/EWD215...

  • sri9s
    this is amazing
  • Joabpeters
    I just created an API that found this news right now and it's amazing how it works because i can't believe it actually pulled a news from here
Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact