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.
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.
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.
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.
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 →
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.
Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.
▶ Play today's briefNew every morning, and the back catalogue is archived by date.
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.