Hacker News new | past | comments | ask | show | jobs | submit login

> Audrey's busy being a minister in Taiwan's government so generally not easy for me to consult these days.

That must be quite a timesink lol :)

> Ok, I do actually have a hilariously awful trick that manages to wrap DynaLoader to read from a Base64 encoded .so that's inlined into the fatpack but that was more a "wondering if I could" thing than something I've ever felt the urge to actually use in anger so I've (so far) resisted the siren song of CPANing it anyway because people have an unfortunate tendency to forget that I, too, release things that are terrible ideas sometimes.

Actually, I think that could be a great idea for cosmopolitan binaries!

Right now, you have to recompile perl to add the XS you want, and some don't work yet: it all depends on the build tool for the XS module being supported

So could you please tell me more about your trick? (or just link to it, I kinda get the idea but an actual example might help)

> APPerl sounds like it could be awesome

It already is: the perl.com binary is a polyglot zip file, where you can fatpack perl scripts by appending them to the zip file

If you've got 5 min, run perlplebean.com: just be careful, as by default I expose your filesystem for http requests. Just comment out that part if you don't like it (it's meant to make people check and tweak the source)

> APPerl definitely wants to write to a non-noexec filesystem

Yes, perl.com has to be executable :)

But on Linux, you may be able to use ld-loader to run it (like how a .sh script on a nonexec fs can be run as `sh -c file.sh`)

> Either way, thank you very much for pointing out APPerl's existence to me. Even if I don't end up using it myself, having it in my mental index of available crazy things will almost certainly eventually result in my suggesting it to somebody else who'll find it the least insane way of getting the results they need :D

Sure, feel free to get in touch at my nick at outlook.com!

It's a bit strange for me to dig into perl now, while it was "current" more like 20 years ago, but I just love it!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: