93% of paint splatters are valid Perl programs (2019)
The page presents a 2019 paper that asks whether it is possible to smear paint on a wall without creating a valid Perl program. The author answers yes. Using optical character recognition (OCR[1]) software, the author found that only 93% of paint splatters parse[2] as valid Perl.
The paper analyzes the properties of these paint-splatter programs and presents seven examples of splatters that are not valid Perl. It was accepted for SIGBOVIK 2019, held on 1 April 2019 in Pittsburgh, and received an Unwitting Participation Ribbon, a mark given to papers found to contain a genuine artifact. The main dataset was 100 paint-splatter images. Where different OCR settings recognized several valid programs, the author chose the one that seemed most "interesting".
The author also reports splatters that OCR read as strings such as lerzfijglpFiji-j, which evaluates to the number 0 in Perl, and ;E,'__', which evaluates to the string E__.
Read the original mcmillen.devDiscussion
Discussion
Most commenters enjoy the paper. Several point out that the result depends on the OCR tool and its settings, and one says the 93% figure is meaningless without a baseline for random input. A commenter who builds a Perl backend says a PEG parser[3] would reject most of this noise, though it runs only 50% of Perl programs.
Links from the post and discussion
- PDF of the paper (linked in comments) mcmillen.dev
Sources
-
mcmillen.dev
93% of paint splatters are valid Perl programs (2019)
-
KRGeekNews KO
페인트 얼룩의 93%는 유효한 Perl 프로그램이다 (2019)






