A couple of data/compute intensive examples using Perl Data Language (#PDL), #OpenMP, #Perl, Inline and #Python (base, #numpy, #numba). Kind of interesting to see Python eat Perl's dust and PDL being equal to numpy.
OpenMP and Perl's multithreaded #PDL array language were the clear winners here.
submitted by /u/ReplacementSlight413
[link] [comments]
The Quest for Performance Part I : Inline C, OpenMP and PDL
Sometimes, one’s code must simply perform and principles, such as aeasthetics, “cleverness” or commitment to a single language solution simply go out of the window.Killing-It-with-PERL
Hello all. I installed Perlbrew to try it out using Perl modules without admin rights. My machine is Linux EOS. When I run a simple perl script it gives error Cant locate Modern/Perl.pm in \@INC. How do I make Emacs know that I am using perlbrew and not system Perl? Or how do add the perlbrew PATH to global \@INC? I also have setup Devel::PerlySense inside Emacs following the module documentation. I installed some modules using cpanm client. I'm new to Perl and Emacs and sometimes I'm lost n doesnt know what I'm doing lol 😀 Appreciate your pointing me to the right direction. Below are some log details:
Can't locate Modern/Perl.pm in u/INC (you may need to install the Modern::Perl module) (@INC entries checked: /usr/lib/perl5/5.38/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/5.38/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/5.38/core_perl /usr/share/perl5/core_perl) at ./read_input_stdin line 4.
BEGIN failed--compilation aborted at ./read_input_stdin line 4.
❯ perlbrew info
Current perl:
Name: perl-blead
Path: /home/user/perl5/perlbrew/perls/perl-blead/bin/perl
Config: -de -Dprefix=/home/user/perl5/perlbrew/perls/perl-blead -Dusedevel -Aeval:scriptdir=/home/user/perl5/perlbrew/perls/perl-blead/bin
Compiled at: Jul 6 2024 10:50:31
perlbrew:
version: 0.98
ENV:
PERLBREW_ROOT: /home/user/perl5/perlbrew
PERLBREW_HOME: /home/user/.perlbrew
PERLBREW_PATH: /home/user/perl5/perlbrew/bin:/home/user/perl5/perlbrew/perls/perl-blead/bin
PERLBREW_MANPATH: /home/user/perl5/perlbrew/perls/perl-blead/man
❯ perl --version
This is perl 5, version 41, subversion 2 (v5.41.2 (c5df4fd1012cc64d1b3e19c87bf8c51d4f3f90d6)) built for x86_64-linux
❯ perlbrew list-modules | grep modern
Modern::Perl
submitted by /u/Ill-Dependent2628
[link] [comments]
[link] [comments]
Combining calendars - Perl Hacks
One of the most popular posts I've written in recent months was the one where I talked about all the pointless personal projects I have. The consensus in the many comments I received was that anything you find useful isn't pointless.Dave Cross (Perl Hacks)
Anyone have any insight? https://www.perlmonks.org/r/perl/.rss
submitted by /u/saltyreddrum
[link] [comments]
submitted by /u/OvidPerl [link] [comments] |
An OpenAI Chatbot in Perl
The OpenAPI::Client::OpenAI module is very low-level. We show how to write a wrapper around it for a clean interface with production code.curtispoe.org