24 comments

[ 2.9 ms ] story [ 46.8 ms ] thread
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

Ugh, deep links should be part of the path, and anchor should be where on the page to scroll. Very annoying slide software. If the content weren't so good I simply wouldn't bother.
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.
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...

> and ended up reimplementing Perl with AI.

Man, I would have just learned Ruby.....

(comment deleted)
I'm too scared to check how good llms are in writing perl.
[flagged]
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

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.

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.

Code is hidden so far. He ships only binaries.

The autoffi thing is nothing new, I did that with cperl a decade ago. Added native types also, which he doesnt have yet.

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.
This looks like a huge project, even with AI help... I have a sweet spot for perl but I'm honestly not sure if the current community has the bandwidth and interest to sustain an alternative implementation. At the very least it should be ported to MacOS too. Breaking with XS is a bold decision. Best of luck though!!
"Auto-Parallelization - Automatic parallel map, grep, for, while loops via Rayon work-stealing"

Given any kind of "for" loop, how can it know that there is no synchronization required ? That no mutual exclusion is required ? No concurrent access of some kind ? Offloading some work to another process/thread is expensive, too

If the inner body of the loop is a pure-function, then that's easy (except for the performance part, which may require heuristics or something). But if the body is not pure .. ? I cannot see how this can work reliably with any random code

Why can't I scroll on this website ;___; come on now please
Impressive, ambitious work.

I wonder how long he waited for the CPAN nologin case. I remember requesting a CPAN account 3 years back and it took ~2 months for someone to look at and accept.

The guy here.

Project page is: https://perl.petamem.com/

Deep-linking into a reveal slideshow from the presentation - which is meant to be navigated by keyboard arrows ONLY - is suboptimal.

Yes, standing in such a hole is normally not recommended without shoring - safety first - but you do not know the soil specifics. It's like concrete, the excavator digging that hole stood on its very edge after 2 days of rain no problem at all. Disadvantage of such soil is that the percolation rate goes against zero.

Yes, doing a "Perl Interpreter" (it's way more than that) even with the help of the most advanced AI on the planet is PITA. The coding agents do fake, lie or are way out of their depth, but when you are used to limited AI since the 90ies - like me - you know how to handle it. Good News is that in 2 years you will probably tell your AI to create you - just for the laughs - a Perl interpreter AND smarthome system before you go to bed. You will have them ready for breakfast.

As for the maturity of the project, it's really too soon. I thought the German Perl Workshop would be in May, but mixed that up with last years' date, so I presented what I had. In about two months this should be nice(r).

And one final remark: Everyone knows Torvalds for the Linux kernel. Most don't know or ignore he did git too. Here, I presented two things: WHIP and pperl. WHIP being a smarthome solution way above and beyond what is available on the market today, but that seems to somehow evade peoples minds when they see the slides.