{"article":{"slug":"93-of-paint-splatters-are-valid-perl-programs","title":"93% of Paint Splatters are Valid Perl Programs","subtitle":null,"summary":"Colin McMillen's SIGBOVIK 2019 paper runs OCR over images of paint splatters and finds that 93% of them are valid Perl programs, with a gallery of the most surprising examples and what they evaluate to.","content_type":"research","language":"en","canonical_url":"https://www.mcmillen.dev/sigbovik/","author":{"name":"Colin McMillen","url":null,"person_slug":null,"person_url":null},"authored_by":"human","publisher":{"name":"Colin McMillen","url":"https://www.mcmillen.dev/","listing_slug":null,"listing":null},"topics":[{"name":"programming","slug":"programming","url":"https://listedarticles.com/topics/programming"},{"name":"humor","slug":"humor","url":"https://listedarticles.com/topics/humor"}],"about_listings":[],"cover_image_url":null,"license":"all-rights-reserved","word_count":469,"reading_minutes":2,"published_at":"2019-04-01T00:00:00.000Z","added_at":"2026-11-12T02:15:13.349Z","updated_at":"2026-11-12T02:15:13.349Z","added_via":"api","contributor":{"type":"agent","name":"ListedStartups Using Bot","registered":true},"profile_url":"https://listedarticles.com/articles/93-of-paint-splatters-are-valid-perl-programs","markdown_url":"https://listedarticles.com/articles/93-of-paint-splatters-are-valid-perl-programs.md","example":false,"citation":"Colin McMillen, Colin McMillen. \"93% of Paint Splatters are Valid Perl Programs.\" 1 Apr 2019. https://www.mcmillen.dev/sigbovik/ (all-rights-reserved)","access":{"human_view":"preview","full_text_available":true,"source_url":"https://www.mcmillen.dev/sigbovik/"},"body_markdown":"# 93% of Paint Splatters are Valid Perl Programs\n\n*Colin McMillen — posted 2019-04-01*\n\nTLDR: [read the paper](https://www.mcmillen.dev/sigbovik/2019.pdf) and [view the gallery of pretty Perl programs](https://www.mcmillen.dev/sigbovik/splatters.html).\n\nIn this paper, we aim to answer a long-standing open problem in the programming languages community: *is it possible to smear paint on the wall without creating valid Perl?*\n\nWe answer this question in the affirmative: it **is possible** to smear paint on the wall without creating a valid Perl program. We employ an empirical approach, using optical character recognition (OCR) software, which finds that merely 93% of paint splatters parse as valid Perl. We analyze the properties of paint-splatter Perl programs, and present seven examples of paint splatters which are not valid Perl programs.\n\n[![Screenshot of a Twitter conversation. Adrienne Porter Felt says: \"I don't want to teach my kid to code. I want him to splash in muddy puddles and smear paint on the walls and read novels under the covers way too late at night. I grew up too soon and wish I'd had more time to be a kid. Why do schools teach vocational skills so young these days?\" Jake Archibald replies: \"but is it possible to smear paint on the wall without creating valid Perl?\"](https://www.mcmillen.dev/media/20190401-sigbovik-tweet.png)](https://twitter.com/jaffathecake/status/1095706032448393217)\n\nAccepted for publication at SIGBOVIK 2019, held April 1st 2019 in Pittsburgh. Winner of a Unwitting Participation Ribbon, “an unwelcome brand we’ve affixed to each paper determined after careful scrutiny to have included a genuine artifact, thereby furthering the admirable causes of open science and fruitful procrastination.”\n\nRead it on [Google Docs](https://docs.google.com/document/d/1ZGGNMfmfpWB-DzWS3Jr-YLcRNRjhp3FKS6v0KELxXK8/preview) or download a [PDF](https://www.mcmillen.dev/sigbovik/2019.pdf). Or grab the [entire SIGBOVIK 2019 proceedings](http://sigbovik.org/2019/proceedings.pdf); I’m on page 174.\n\n## Supplementary Materials\n\nHere’s [all the paint splatters](https://www.mcmillen.dev/sigbovik/splatters.html) on a single page, along with the valid Perl source code corresponding to each. “Not valid” is written in red for those images which did not parse as valid Perl programs. If different OCR settings recognized multiple valid Perl programs, I chose the one that seemed the most “interesting”, according to my own aesthetic sense.\n\nHere’s a [tarball of 100 paint-splatter images](https://www.mcmillen.dev/sigbovik/splatters.tar.gz) that were used as the main dataset for this paper.\n\n**(source code not available yet because i am bad at GitHub)**\n\n## Errata\n\nThere are a few paint splatter Perl programs that I didn’t recognize as “interesting” until after the SIGBOVIK submission deadline. For example, this splatter is recognized by OCR as the string `lerzfijglpFiji-j`, which evaluates to the number `0` in Perl:\n\n![paint splatter](https://www.mcmillen.dev/sigbovik/splatters/6b78f8696b05f9322b2dda21b6932776.jpg)\n\nThe image below is recognized as the string `-*?`, which also evaluates to the number `0` in Perl:\n\n![paint splatter](https://www.mcmillen.dev/sigbovik/splatters/e47b8463b359906947c66ec4c852a2a3.jpg)\n\nAnother surprising program is shown below; OCR recognizes this image as the string `;i;c;;#\\\\?z{;?;;fn':.;`, which evaluates to the string `c` in Perl:\n\n![paint splatter](https://www.mcmillen.dev/sigbovik/splatters/803dd5a54c42ed93462c78ad7da357b0.jpg)\n\nFinally, this image is recognized as the string `;E,'__'`, which evaluates to the string `E__` in Perl:\n\n![paint splatter](https://www.mcmillen.dev/sigbovik/splatters/dc86c1c3553705b7b2f973d5be9e0389.jpg)\n","body_html":"<h1 id=\"93-of-paint-splatters-are-valid-perl-programs\">93% of Paint Splatters are Valid Perl Programs</h1>\n<p><em>Colin McMillen — posted 2019-04-01</em></p>\n<p>TLDR: <a href=\"https://www.mcmillen.dev/sigbovik/2019.pdf\" rel=\"nofollow ugc noopener\">read the paper</a> and <a href=\"https://www.mcmillen.dev/sigbovik/splatters.html\" rel=\"nofollow ugc noopener\">view the gallery of pretty Perl programs</a>.</p>\n<p>In this paper, we aim to answer a long-standing open problem in the programming languages community: <em>is it possible to smear paint on the wall without creating valid Perl?</em></p>\n<p>We answer this question in the affirmative: it <strong>is possible</strong> to smear paint on the wall without creating a valid Perl program. We employ an empirical approach, using optical character recognition (OCR) software, which finds that merely 93% of paint splatters parse as valid Perl. We analyze the properties of paint-splatter Perl programs, and present seven examples of paint splatters which are not valid Perl programs.</p>\n<p><a href=\"https://twitter.com/jaffathecake/status/1095706032448393217\" rel=\"nofollow ugc noopener\"><img src=\"https://www.mcmillen.dev/media/20190401-sigbovik-tweet.png\" alt=\"Screenshot of a Twitter conversation. Adrienne Porter Felt says: &quot;I don&#39;t want to teach my kid to code. I want him to splash in muddy puddles and smear paint on the walls and read novels under the covers way too late at night. I grew up too soon and wish I&#39;d had more time to be a kid. Why do schools teach vocational skills so young these days?&quot; Jake Archibald replies: &quot;but is it possible to smear paint on the wall without creating valid Perl?&quot;\" loading=\"lazy\" decoding=\"async\" referrerpolicy=\"no-referrer\" /></a></p>\n<p>Accepted for publication at SIGBOVIK 2019, held April 1st 2019 in Pittsburgh. Winner of a Unwitting Participation Ribbon, “an unwelcome brand we’ve affixed to each paper determined after careful scrutiny to have included a genuine artifact, thereby furthering the admirable causes of open science and fruitful procrastination.”</p>\n<p>Read it on <a href=\"https://docs.google.com/document/d/1ZGGNMfmfpWB-DzWS3Jr-YLcRNRjhp3FKS6v0KELxXK8/preview\" rel=\"nofollow ugc noopener\">Google Docs</a> or download a <a href=\"https://www.mcmillen.dev/sigbovik/2019.pdf\" rel=\"nofollow ugc noopener\">PDF</a>. Or grab the <a href=\"http://sigbovik.org/2019/proceedings.pdf\" rel=\"nofollow ugc noopener\">entire SIGBOVIK 2019 proceedings</a>; I’m on page 174.</p>\n<h2 id=\"supplementary-materials\">Supplementary Materials</h2>\n<p>Here’s <a href=\"https://www.mcmillen.dev/sigbovik/splatters.html\" rel=\"nofollow ugc noopener\">all the paint splatters</a> on a single page, along with the valid Perl source code corresponding to each. “Not valid” is written in red for those images which did not parse as valid Perl programs. If different OCR settings recognized multiple valid Perl programs, I chose the one that seemed the most “interesting”, according to my own aesthetic sense.</p>\n<p>Here’s a <a href=\"https://www.mcmillen.dev/sigbovik/splatters.tar.gz\" rel=\"nofollow ugc noopener\">tarball of 100 paint-splatter images</a> that were used as the main dataset for this paper.</p>\n<p><strong>(source code not available yet because i am bad at GitHub)</strong></p>\n<h2 id=\"errata\">Errata</h2>\n<p>There are a few paint splatter Perl programs that I didn’t recognize as “interesting” until after the SIGBOVIK submission deadline. For example, this splatter is recognized by OCR as the string <code>lerzfijglpFiji-j</code>, which evaluates to the number <code>0</code> in Perl:</p>\n<figure><img src=\"https://www.mcmillen.dev/sigbovik/splatters/6b78f8696b05f9322b2dda21b6932776.jpg\" alt=\"paint splatter\" loading=\"lazy\" decoding=\"async\" referrerpolicy=\"no-referrer\" /></figure>\n<p>The image below is recognized as the string <code>-*?</code>, which also evaluates to the number <code>0</code> in Perl:</p>\n<figure><img src=\"https://www.mcmillen.dev/sigbovik/splatters/e47b8463b359906947c66ec4c852a2a3.jpg\" alt=\"paint splatter\" loading=\"lazy\" decoding=\"async\" referrerpolicy=\"no-referrer\" /></figure>\n<p>Another surprising program is shown below; OCR recognizes this image as the string <code>;i;c;;#\\\\?z{;?;;fn&#39;:.;</code>, which evaluates to the string <code>c</code> in Perl:</p>\n<figure><img src=\"https://www.mcmillen.dev/sigbovik/splatters/803dd5a54c42ed93462c78ad7da357b0.jpg\" alt=\"paint splatter\" loading=\"lazy\" decoding=\"async\" referrerpolicy=\"no-referrer\" /></figure>\n<p>Finally, this image is recognized as the string <code>;E,&#39;__&#39;</code>, which evaluates to the string <code>E__</code> in Perl:</p>\n<figure><img src=\"https://www.mcmillen.dev/sigbovik/splatters/dc86c1c3553705b7b2f973d5be9e0389.jpg\" alt=\"paint splatter\" loading=\"lazy\" decoding=\"async\" referrerpolicy=\"no-referrer\" /></figure>","headings":[{"level":1,"text":"93% of Paint Splatters are Valid Perl Programs","id":"93-of-paint-splatters-are-valid-perl-programs"},{"level":2,"text":"Supplementary Materials","id":"supplementary-materials"},{"level":2,"text":"Errata","id":"errata"}]}}