93% of Paint Splatters Are Valid Perl Programs (2019) mcmillen.dev · 85 points ·...
HN Best 200 @best
93% of Paint Splatters Are Valid Perl Programs (2019) mcmillen.dev · 85 points · 17 comments · HN thread
TL;DR A 2019 SIGBOVIK paper by Ryan McMillen (mcmillen.dev) reports that about 93% of OCR-read paint splatters parse as valid Perl programs, and presents seven splatters that do not. The page links the paper, a gallery of splatters with their Perl source, and a 100-image dataset tarball. The thread is a light, joking appreciation of the paper and of Perl's quirks.
- The paper is a SIGBOVIK 2019 submission that uses OCR software to test whether paint splatters can be read as valid Perl.
- About 93% of the paint splatters parsed as valid Perl after OCR.
- Seven examples of splatters that do not parse as valid Perl are presented.
- Many valid results depend on Perl's 'unquoted strings' feature, where a bare alphanumeric sequence is treated as a string.
- Some splatters evaluate to surprising values, such as the number 0 or the string 'c'.
- The paper won an Unwitting Participation Ribbon, a joke award for papers that accidentally include a real artifact.
Discussion Commenters mostly enjoy the paper and treat it as a playful piece of absurdist computer science. Threads wander into Perl's unusual syntax, with people recalling its idioms fondly and joking about the splatters that parse as words or nonsense. Several commenters point out the paper's jokes, such as the 'gggijgziifiiffif' reserved-word warning, and tie the joke to modern neural nets. The mood is nostalgic and light, with little serious debate.
- Paper is funny and worth reading (many): Commenters praise SIGBOVIK papers in general and this one in particular, pointing to the gallery and PDF as entertaining. One shares the paper's later edition notice with a joke about permissions.
- Perl's unquoted strings explain most valid results (some): One commenter explains that most of the valid programs rely on Perl's unquoted strings feature, which would be a syntax error in most languages. Another notes that Perl's -w flag warns about a future reserved word.
- Nostalgia for Perl's quirks (some): Several commenters say they loved programming in Perl and miss its mix of unceremonious and ceremonious idioms, such as 'my $self = shift;'.
- Jokes about the splatters' meaning (a few): Commenters joke that some splatters spell out the authors' reaction to Perl, or that Jackson Pollock was writing Perl all along. These are playful rather than substantive.
- Java properties files are similarly permissive (a few): One commenter notes that a Java properties file is only invalid with a bad Unicode escape, so any character sequence is otherwise valid.
- Neural nets as the modern version of Anything Goes (a few): A commenter links the splatter results to the idea that neural nets accept anything, calling it quite a foresight.
Links from the comments