4 ms·
A quine in Piet – a GIF image that prints itself [video]
- chao- 2mo agoEvery 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 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 https://github.com/mame/quine-relay
- capitainenemo 2mo agoThe esolang wiki has a few simpler to grasp piet examples too. https://esolangs.org/wiki/Piet https://esolangs.org/wiki/Piet
- vok 2mo agoThe examples: https://www.dangermouse.net/esoteric/piet/samples.html 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!..."
- capitainenemo 2mo agoAh. missed those when reading the intro page. thanks.
- sri9s 2mo agothis is amazing
- Joabpeters 2mo agoI 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
- laxisOp 2mo agoNaive question:what it actually is .and what is usecase
- rashkov 2mo agoa quine is a program that prints its own source code. The usecase is to inspire
- jamesaross 2mo agoIf 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 https://github.com/jar/ttsky26a_prime_quine You may view the simulated output: https://vga-playground.com/?repo=https://github.com/jar/ttsky26a_prime_quine https://vga-playground.com/?repo=https://github.com/jar/ttsk...
- sargstuff 2mo agoCould 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 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.fullerton.edu:80/Mathews/c2003/ConformalMapDictionary.1.html https://web.archive.org/web/20130407075256/http://math.fulle... "considered harmful" [gotos/globals/etc] : http://en.wikipedia.org/wiki/Considered_harmful http://en.wikipedia.org/wiki/Considered_harmful "A case against the GO TO statement" : https://www.cs.utexas.edu/~EWD/transcriptions/EWD02xx/EWD215.html https://www.cs.utexas.edu/~EWD/transcriptions/EWD02xx/EWD215...