Hacker News

70

Parallel Perl – autoparallelizing interpreter with JIT

by bmn__177383514527 comments
I'm interested, but can't navigate the website. The down-arrow in the lower-right is unclickable, maybe covered by some semi-transparent chrome of my browser, not sure. And no idea why there need to be 4 directional arrows.
by quantummagic1774025615
Awesome to see a perl JIT. I love perl, and it's exciting to see something that tries to offer good-enough compatibility to run most perl code.
by joosters1774037389
WHOA. Talk about burying the lede... Look from the beginning of the slide show, he made a super cool geothermal project! Look at the size of this hole!! https://perl.petamem.com/gpw2026/perl-mit-ai-gpw2026.html#/1... His cad drawings are great too!

Basically he wanted home automation in Perl to control his geothermal/solar house, and ended up reimplementing Perl with AI. That's some yak shaving...

by 0xbadcafebee1774025952
by rurban1774034217
The project relies on Rayon [1] for scheduling parallel tasks and Cranelift [2] to JIT the hot loops.

There are plenty of other interesting features like auto-FFI, bytecode caching (similar to Python's .pyc files), and "daemonize" mode (similar to mod_perl or FastCGI).

[1] https://docs.rs/rayon/latest/rayon/

[2] https://cranelift.dev

by chrisaycock1774029106
The slides got stuck at https://perl.petamem.com/gpw2026/perl-mit-ai-gpw2026.html#/6. The right arrow disappeared. The down arrow was flashing, but did not respond to any clicks. I tried different browsers on my mac. None worked.
by hintymad1774029572
Homepage: https://perl.petamem.com

In case HN shows its user hostility again by cutting off the URI fragment, the intended deep-link was presentation slide #/4/1/1

by bmn__1773835145
The down arrow doesn't respond because of the overlay page number. Only when clicking a little bit left of the overlay, it will work.

I can't help but giggle at the fact that AI written project doesn't seem to get its home page right.

by bheadmaster1774030071
I'm too scared to check how good llms are in writing perl.
by postepowanieadm1774026831
Not to be confused with GNU parallel[1], written in Perl.

[1]: https://en.wikipedia.org/wiki/GNU_parallel

by genpfault1774033977
Where's the codebase?

I had to build a Perl implementation of the Chaskey mac algorithm. ChatGPT spat out a working Perl prototype based on a C file for Arduino. It quite slow with not very much to optimize, so I made it write it with XS. A hour later I have a working XS implementation that compiles and tests cleanly.

So the AutoFFI thing is super interesting. The .plc also.

by petre1774033205
by 1774026009
When will perl 7 be released?
by shevy-java1774029725
[flagged]
by gjvc1774027004