# A Quine in Piet: A GIF That Prints Itself

Original title: A quine in Piet – a GIF image that prints itself \[video\]

> Hacker News story 49156157 · language: en · submitted 2026-08-03
> Web version: https://zeli.app/story/49156157
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 76 · by [surprisetalk](<https://news.ycombinator.com/user?id=surprisetalk>) · 💬 10
[original](<https://www.youtube.com/watch?v=GwMtzhjCzyc>) · [HN discussion](<https://news.ycombinator.com/item?id=49156157>)

## Summary

In the esoteric programming language Piet, programs are images. Yusuke Endoh created a 252x189 GIF that, when run, outputs its own bytes—a quine. The video breaks down the process: loading data, drawing the GIF header and palette, then the data and code parts, ending with a trailer and halt. Code and generator are on GitHub.

## Key quote

> In Piet, a program is an image.

## HN discussion (10 comments)

### [jamesaross](<https://news.ycombinator.com/item?id=49213628>)

> 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](<https://news.ycombinator.com/item?id=49213612>)

> Naive question:what it actually is .and what is usecase

### [chao-](<https://news.ycombinator.com/item?id=49208129>)

> 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

---

## Cite

- Page: https://zeli.app/story/49156157
- Date: 2026-08-03
- Source: youtube.com (https://www.youtube.com/watch?v=GwMtzhjCzyc)
- Hacker News: https://news.ycombinator.com/item?id=49156157

## Other languages

- zh: https://zeli.app/zh/story/49156157 · markdown: https://zeli.app/zh/story/49156157.md
- ja: https://zeli.app/ja/story/49156157 · markdown: https://zeli.app/ja/story/49156157.md
- ko: https://zeli.app/ko/story/49156157 · markdown: https://zeli.app/ko/story/49156157.md
- de: https://zeli.app/de/story/49156157 · markdown: https://zeli.app/de/story/49156157.md
- es: https://zeli.app/es/story/49156157 · markdown: https://zeli.app/es/story/49156157.md
