NewsCrawler.org

93% of paint splatters are valid Perl programs (2019)

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?"
paint splatter
paint splatter
paint splatter
Image: mcmillen.dev

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.

Sources

  • mcmillen.dev

    93% of paint splatters are valid Perl programs (2019)

    79 comments

  • KRGeekNews KO

    페인트 얼룩의 93%는 유효한 Perl 프로그램이다 (2019)

    3 points1 comment

Published: First seen: Читать по-русски

Open as a page