189 points zenincognito 4 hours ago 26 comments

zenincognito 4 hours ago | parent

The actual paper is also highly entertaining - https://www.mcmillen.dev/sigbovik/2019.pdf

Amorymeltzer 3 hours ago | parent

In particular, I like "Figure − 3. − 3 ." as a good little easter egg.

0xbadcafebee 2 hours ago | parent

  The remainder of the valid Perl programs are mostly valid due to a Perl
  language feature that is not commonly present in most programming languages.
  Namely, Perl has a feature called “unquoted strings”, in which a sequence
  of alphanumeric characters by itself is parsed as though it were a quoted string.
  As an example, Figure 5 is read by OCR as the text ME, which evaluates to the
  string “ME” even though the ME isn’t quoted. This would result in a syntax
  error in most other programming languages.

  (To be fair to Perl, when perl is run with the -w flag to enable warnings, it does
  helpfully inform the user that at some point in the future, the Perl developers
  will most likely pick gggijgziifiiffif as a new reserved word:
      Unquoted string "gggijgziifiiffif" may clash
      with future reserved word at - line 1.)

xhrpost 1 hour ago | parent

So they might be valid older(<v5?) PHP scripts as well?

heresie-dabord 35 minutes ago | parent

From the paper:

"An interesting thing about these images is that they’re not particularly Perl-specific; for example, the program shown in Figure −3 also evaluates as the number −3 in Python (and presumably several other programming languages.)"

We live in the age of Python, which I use every day. But I still also use Perl when it's the better tool for the job. And it often is!

sadboi_fandango 3 hours ago | parent

Jackson Pollock was writing perl code all along

HeckFeck 3 hours ago | parent

My Stone Roses album cover is actually a bonus Perl program?

don-code 1 hour ago | parent

Full Fathom Five is my brain on Perl.

kmoser 50 minutes ago | parent

No, when Pollock spattered paint on a canvas, it was generally on the floor, not the Wall.

gnabgib 3 hours ago | parent

Popular in:

2024 (515 points, 125 comments) https://news.ycombinator.com/item?id=40197013

2021 (431 points, 165 comments) https://news.ycombinator.com/item?id=27929730

adamrezich 3 hours ago | parent

The reply near the top of the 2021 link with the Master Foo koan hits quite a bit differently in the age of vibecoding.

tomhow 2 hours ago | parent

And others! Here's the full list:

93% of paint splatters are valid Perl programs (2019) - https://news.ycombinator.com/item?id=40197013 - April 2024 (124 comments)

93% of Paint Splatters Are Valid Perl Programs (2019) - https://news.ycombinator.com/item?id=27929730 - July 2021 (163 comments)

93% of Paint Splatters Are Valid Perl Programs - https://news.ycombinator.com/item?id=20834351 - Aug 2019 (7 comments)

93% of Paint Splatters Are Valid Perl Programs - https://news.ycombinator.com/item?id=19576425 - April 2019 (132 comments)

layer8 3 hours ago | parent

Tangentially related, the only way for a Java properties file to be invalid is if it contains an invalid Unicode escape sequence (“\u” not followed by four digits, and not preceded by an odd number of “\”). After resolving Unicode escapes, any character sequence is a valid properties file.

snitty 3 hours ago | parent

SIGBOVIK papers are almost always a delight

EDIT: From their 2026 publication

>Permission to make digital or hard copies of portions of this work for personal use is granted; permission to make digital or hard copies of portions of this work for classroom use is also granted, but seems ill-advised

brisket_bronson 3 hours ago | parent

Figure 6 represents the string “gggijgziifiiffif”, which by pure coincidence happens to accurately represent the authors’ verbal reaction upon learning that “unquoted strings” were a feature intentionally included in the Perl language

lta 2 hours ago | parent

I'm afraid I have to tell you you lack the soul of a poet to truly appreciate the brilliant design . Perl is magic (like litteraly). I'm fairly sure it's one of the untold inspiration of the Harry Potter books

hluska 2 hours ago | parent

I really dig your whimsy.

bitwize 2 hours ago | parent

necronomicon, maybe

tomaskafka 2 hours ago | parent

This is also a valid Perl program (I bet)

criemen 2 hours ago | parent

> Apparently in the brave new world of neural nets, Anything Goes™

Quite some foresight indeed!

baron3dl 2 hours ago | parent

i loved programming perl. both the act, and the book. i long since gave it up, but i am still awed by how it could both be completely unceremonious and absurdly ceremonious. my $self = shift; for instance.

jacquesm 2 hours ago | parent

Someone should reverse that and see how many paintings can be made to execute as Perl and what those programs do when invoked.

kmoser 53 minutes ago | parent

You could kill two birds with one stone by entering them in the Obfuscated Perl Contest, were it still being held.

idlewords 1 hour ago | parent

A whole new twist on "Hackers and Painters"

polarsanel 1 hour ago | parent

93% of Perl Programs are valid Paint Spatters too.