Skip to main content




Dear all,

given the versatility of generative AI, I want to test it at home. And I would prefer being able to do this in Perl instead of having to master Python.

But: Are there any non-obsolete Perl packages that allow local LLM access? For example, the scripts on [the MiniCPM-V-2_6 page](https://huggingface.co/openbmb/MiniCPM-V-2\_6) don't look frightening, but how would those be translated into Perl?

Basically, my main interests are:

  • multilingual text embedding (yes, I am dreaming of a Perl-powered RAG)
  • access to an instruct model, e.g. for content augmentation
  • if possible, OCR with higher accuracy than tesseract

Thank you very much.

submitted by /u/Patentsmatter
[link] [comments]



Is it possible in Perl to { = BEGIN } = END

so

sub some sub BEGING ...code... END

Having a non English keyboard makes the various []{}|\ more complex to enter:

\ is "7 + option + shift" on a MAC whereas on US keyboard most have their own key and it is pretty straightforward.

I try to experiment with various ways to to make this easier. Still haven't found my. sweet spot. This is just another attempt.

submitted by /u/NoeticIntelligence
[link] [comments]







The Perl Data Language (PDL) has its own Advent Calendar apart from the Perl Advent Calendar.

PDL Advent site (calendar view)

RSS feed

submitted by /u/briandfoy
[link] [comments]




There are a lot of ::Tiny distributions on CPAN that implement the most needed features of whatever (e.g. YAML::Tiny and Module::Build::Tiny) in much smaller and faster to run-time compile modules. It seems that most of the time, accepting the reduced feature set is a good tradeoff for the reduced runtime bloat.

This got me thinking, with how massive CPAN is, containing tons of distributions that implement the same thing in different ways, often resulting in code bloat where Distribution A has dependence B that does Fubar API one way, and Distribution A also has depencency C that doesn't do Fubar API but has a test that needs Dependency D that does Fubar API another way, and so on.

Could we maybe get a "CPAN Tiny" that is a subset of CPAN without all of the massive redundancy bloat? Distributions that go into it can only use Core and/or other "CPAN Tiny" distributions and can not have redundancy. The dependency bloat is major drawback of Perl.

Sometimes to meet one dependency (especially if running tests), well over 20 dependencies with a lot of them having redundant purposes are needed. It's madness. Especially since packagers don't always properly specify runtime dependencies meaning after that big mess is installed, you find you need even more because some dependencies were left out. It's a mess that makes me want to just look for Python solutions.

submitted by /u/AnymooseProphet
[link] [comments]



Mo utilities for email.

Changes for 0.02 - 2024-04-26T23:02:53+02:00

  • Add tests for error parameters.
  • Rewrite the tests so that the functional tests are first and then the errors.