Search
Items tagged with: Perl
Y’all know I’m the first to crow about unique #Perl features, but #RegularExpressions’ syntax of ^ for the start of a line or string and $ for the end dates back at least to #Unix co-author Ken Thompson’s rewrite of the `qed` text editor for the #CTSS operating system on the IBM 7090 #mainframe at #BellLabs around 1970. (Perl creator Larry Wall was a teenager at the time.)
How to start with #Perl’s #CPAN via #PAUSE:
1) Read https://www.cpan.org/modules/04pause.html
2) Visit https://pause.perl.org
#JavaScript #Node #NodeJs #NpmJs #Yarn #MetaCPAN
One In Two New Npm Packages Is SEO Spam Right Now
More than half of all new packages that are currently (29 Mar 2023) being submitted to npm are SEO spam. That is - empty packages, with just a single README file that contains links to various malicious websites. https://datawrapper.dwcdn.Gabi Dobocan (Sandworm)
Encontrar enlaces rotos en sitio web
«Página no encontrada», «error 404», etc.: es molesto. Debes buscar y arreglar los enlaces rotos de vez en cuando. Encontrarlos Existen muchas herramientas web, mi preferida…Freak Spot
The Future of Perl
With the new Corinna object system coming to Perl, many people are wondering what the future looks like for the language.ovid.github.io
This has been around for a while, but it is very high quality and I am not sure how many people are aware of it. It is definitely something that is in my @Perl toolbox.
Exploring Programming Language Architecture in Perl
an online book using the Perl programming language to explore various aspects of programming language architecturewww.billhails.net
In #Perl I used the FSA::Rules module. https://metacpan.org/pod/FSA::Rules
A nice touch is that you can export the states as a graph, which looks quite nice when drawn via GraphViz.
That "move" state could be called something like "initialize", but otherwise you can get a sense of the moves up and down "slopes" to detect the "valley".
Oh, and yes, that example shows perfectly how easy it is to read well-written #perl code.
When #ChatGPT can be fed an entire codebase, *that's* when we should be worried.
https://www.redhat.com/sysadmin/perl-scripts
#perl
5 great Perl scripts to keep in your sysadmin toolbox
Check out five Perl gems that help you work better, faster.Seth Kenlon (Enable Sysadmin)
This makes it *much* easier to follow the order in which changes happened in your database.
#perl
https://gist.github.com/Ovid/fd8ba5b758f86b02f1c5f2a0a75c88f4
A small hack to add a 'sqitch grep ...' command that sorts things in the order of the sqitch plan
A small hack to add a 'sqitch grep ...' command that sorts things in the order of the sqitch plan - grep.pmGist
https://ovid.github.io/articles/converting-object-oriented-code-to-corinna.html
#perl #corinna
Converting Object-Oriented Code to Corinna
I was recently humbled when I converted some code to Corinna and Corinna's constraints showed the design flaws in my code.ovid.github.io
This is more of a tip for automated systems, e.g. using DateTime, which is why I sent it to the @Perl group and tagged it #Perl.
#Perl’s popular DateTime module defaults to floating and warns against comparison or math with real times: https://metacpan.org/pod/DateTime#Floating-DateTimes
https://thenewstack.io/a-conversation-with-the-creators-behind-python-java-typescript-and-perl/
Discussions: https://discu.eu/q/https://thenewstack.io/a-conversation-with-the-creators-behind-python-java-typescript-and-perl/
#compsci #java #perl #programming #python #typescript #webdev
A Conversation with the Creators Behind Python, Java, TypeScript, and Perl - The New Stack
On April 2, the Puget Sound Programming Python (PuPPy) users group in Seattle brought together a historic panel of softwareDavid Cassel (The New Stack)
https://github.com/Ovid/Cor/blob/master/pod/perlclasstut.pod
I ported two-decade old code to use the new syntax and learned the Corinna spec is flawed because I couldn't port it cleanly! Oh shit!
After a couple of hours of writing and rewriting the explanation, I discovered Corinna is not flawed. It was my original OO design that was broken.
Many Perl developers are going to discover they don't actually understand class-based OOP.
Cor/perlclasstut.pod at master · Ovid/Cor
Corinna - Bring Modern OO to the Core of Perl. Contribute to Ovid/Cor development by creating an account on GitHub.GitHub
With @PerlFFI's ability to build Perl extensions in C, C++, #Rust, #GoLang, #Pascal (!), #Fortran (!!), and even #assembly (!!!), you can plug just about any high-performance code into Perl.
#programming #coding #SoftwareDevelopment
My work for the last two years has been with one of the world's largest companies cleaning up their #perl code to handle #gdpr, #sox, #pii, and #authorization. I designed and built a system that replaced almost 70 different #oop classes with a single config file.
Please boost for visibility.
You can read a case study of one project at https://ovid.github.io/articles/project-500.html
Case study: 500 TPS
We had 14 days to increase a client's performance from 39 transactions per second, to 500. This is how we did it.ovid.github.io
* Posted the smartmatch deprecation message to p5p@
* Sent off a reminder that we're looking for help on getting SSL support out of the box.
* Reviewed the RFC tracker and found some that nobody has started implementing; they are nearing their expiry time.
https://blogs.perl.org/users/psc/2022/12/this-week-in-psc-089.html
Raku's design all came from the question "What could I build if I could basically start again from scratch? What ideas might I have? How do I build a coherent whole from this blank canvas?"
Perl's ongoing design is all rooted in "What would I use right now in this real code I am writing today? What features would I like to have that I currently do not?"
https://fosstodon.org/@leonerd/109417700811336648
Paul Evans (@leonerd@fosstodon.org)
@parvXm@mastodon.social I know I'd use `//=` a lot of time, because right now it turns out a lot of code I write does things like sub f($z = undef) { $z //= 3; ... } to work around that behaviour.Fosstodon
Also, the List::Util module that comes with #Perl gives you the sum0 function to sum a list but using 0 if given an empty list, so you don't need your bespoke total function.
You can just do this:
use List::Util 1.26 'sum0';
sub above_average {
return grep {$_ > sum0(@_) / @_} @_;
}
- https://gitlab.gnome.org/ebassi/perl-gtk4
- https://gitlab.gnome.org/ebassi/perl-adwaita
They are barebones, but they work, so I'll finish the docs and publish them on CPAN—if I can find my old PAUSE credentials.
-- I have been looking for something like that for going from #Perl|#Python. I think I did go through some (one?) "Python to #Rust" articles but felt somewhat superficial.
From Perl to Rust
#Rust #Perl #Blog
https://randomgeekery.org/post/2022/10/from-perl-to-rust/
From Perl to Rust
In Tim Heaney’s introduction to From Perl to Rust: Having to know everything at once makes it hard to teach Rust as well. It seems like no matter where we start, we are always touching on concepts that we haven’t covered yet.randomgeekery.org
https://dzone.com/articles/building-a-microservice-in-perl-part-2-up-and-running
#Perl
Building a Microservice in Perl (Part 2): Up and Running
In part 1 we designed our API using OpenAPI/Swagger. Now it's time to write some tests and wire it up using Perl and Mojolicious::Plugin::OpenAPI.Mark Gardner (DZone)
https://dzone.com/articles/building-a-microservice-in-perl-part-1-designing-the-api
#Perl
Building a Microservice in Perl (Part 1): Designing the API
A brief description of microservices, then jumping into defining one with OpenAPI for building with Perl and Mojolicious.Mark Gardner (DZone)