← All stories
● Covered by 1 source · 1 reportLow impact1 neutral

Yusuke Endoh Creates Piet Quine: A Self-Replicating GIF Image Program

🔄 Updated 1d ago
New to BrevFeed? We gather this story from every outlet covering it into one summary — ranked by real-world impact, not just the latest headline — so you never miss what matters. What is BrevFeed? →

Key points

  • Yusuke Endoh created a Piet Quine.
  • The GIF is both the program and its visual output.
  • Piet is an esoteric language where programs are colorful images.
  • A Quine is a program that prints its own source code.
  • The GIF handles binary data, compression, and flow.
  • AI assisted in refining the visual design.

What is a Piet Quine?

Yusuke Endoh has created a "Piet Quine," which is a GIF image that acts as a program and, when run, produces an identical copy of itself as its visual output. This combines two distinct programming concepts: Piet, an esoteric programming language where programs are visual art, and a Quine, a program designed to output its own source code without external input.

The Piet Programming Language

Piet is an esoteric programming language where programs are represented as colorful, tiled artwork, named after artist Piet Mondrian. These programs consist of bold squares and rectangles. The visual nature of Piet programs makes them distinct from traditional text-based code.

The Quine Concept

In computer science, a Quine is a self-replicating program that generates its own source code as its output. This is a complex task even with standard text-based code, as the output must be an exact, character-for-character replica of the input without simply reading its own file.

The Challenge of a Graphical Quine

Creating a graphical Quine, especially with a format like GIF, introduces additional complexities. The GIF format involves binary data, compression, and a specific data flow that must be precisely managed to ensure the output is an exact duplicate of the source image. Endoh's solution involves a separately interpreted data part, compressed with adaptive run-length encoding, and a code part within the source image.

Development and Refinement

Endoh first achieved a Piet Quine in 2009, but the resulting GIF was visually elongated. To create a more compact, landscape-oriented version, Endoh utilized AI assistance from Claude Code to analyze and reconstruct the original script. This process involved significant effort to shrink the visuals and refine the design into the current compact GIF.

✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →

The daily brief

One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.

One email a day. Unsubscribe in one click, any time.

Today's brief

Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.

~7 min · 6 stories · Aug 15

▶ Play today's brief Listen on Spotify

New every morning, and the back catalogue is archived by date.

Reporting from

Yusuke Endoh developed a "Piet Quine," a GIF image that functions as both a program and its own visual output, meaning the GIF code prints an exact copy of itself. This technical achievement combines esoteric programming language Piet with the concept of a Quine, a program that reproduces its own source code.