veganism.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Veganism Social is a welcoming space on the internet for vegans to connect and engage with the broader decentralized social media community.

Administered by:

Server stats:

214
active users

#perl

25 posts13 participants1 post today

I was looking for an alternative to classic shell scripts, so I timed a Hello World program in different languages for fun. I thought you might want to know:

1 ms - #Bash
1 ms - #Perl
12 ms - #Python
33 ms - #Go (shebang calling `go run`)
38 ms - #C (shebang compiling to temporary file)
61 ms - #Rust (shebang compiling to temporary file)

Needless to say that this is a highly unfair and silly comparison. It's still interesting, though.

#TIL: using a version number of '0' in a #Perl dependency version spec means that *any* version is sufficient.

Oops! I always thought that this gave the most recent version, but that's only true if the module hasn't already been installed.

What's best practice to specify the "latest version" in CPAN::Meta::Spec? Is it better to use e.g. '>=X.Y.Z', where X.Y.Z is a known good minimum version number?

Whew. Finally got this sorted. Here's a screenshot of a basic VCV Rack 2 patch controlled by the IAC virtual driver on my Mac. It shows the MIDI-CC > CV module connecting CC 1 (mod-wheel) with the pulse width modulation CV of the VCO.

The control-change is automated by this ultra simple code: github.com/ology/MIDI-RtContro with the command

`perl eg/control-change.pl pad iac scatter`

#Perl real-time #MIDI #vcvRack

Replied in thread

@paoloredaelli @wollman @rubenerd @dexter Reading the original post, it kind of alienated me, but the reason wasn't #perl but #CGI. There's nothing wrong with #perl at all (although now I wonder, I didn't see it used on the #web #backend for quite a while, is there actually a *SANE* integration with web servers available, that doesn't require forking a process for each and every request?)

I'll never get how people come to think #python could be the "modern replacement". A language that makes whitespace syntactically relevant already failed every sanity check. And it kind of proves that by incorporating exceptions in normal control flow. screw that nonsense.

Yesterday in WTF #Perl:
DB<1> use Event::Scraper::Website::SwindonFestLiterature;
double free or corruption (fasttop)
Aborted
This is perl 5, version 32, subversion 1 (v5.32.1) built for x86_64-linux-gnu-thread-multi

Whaaat?

Ich habe eine neue Artikel-Reihe gestartet: #Wissensmanagement in der #Architektur

Wie wir mit #AsciiDoc, #Git, #BibTeX und etwas #Perl komplexe Dokumente in der Architektur erstellen und vor allem wiederfinden und #Revisionen tracken.
Außerdem ein paar Punkte warum #MarkDown saugt und #kroki fetzt

kaishakunin.com/posts/architek

www.kaishakunin.comStefan Schumachers persönliche WebseitePersönliche Web-Seite von Stefan Schumacher

Continuing our deep-dive HOWTO about building Map::Tube maps, we describe the structure of a Map::Tube map file, extend the map for the first tram line, and use a plugin to graph the network.

This is the second post in a five-post series about creating Map::Tube maps. Have fun!

peateasea.de/building-map-tube

P.T.C. · Building Map::Tube::<*> maps, a HOWTO: extending the networkContinuing our deep-dive HOWTO about building Map::Tube maps, we describe the structure of a Map::Tube map file, extend the map for the first tram line, and use a plugin to graph the network.

Nah Bitch, now you're on *My Family's Turf*.

I asked Google for an #ASCII ART generator (because this isn't my machine, I have two bookmarked) so and "AI" was all up in my space "Let Meeee do your ASCII Art!!!

Fucker, I'mma go find some site that looks like it's from 1998, probably using #Apache and #CGI to rattle less than a hundred lines of stale, crufty, #PERL code, if ... *IF* someone didn't #monster_bash it out.

Logging into my #NextCloud to get my fucking #bookmarks because fuck this.

The try/catch feature in #Perl is weird.

Not in any functional way, mind, it's great that we don't have to eval anymore, and so on.

But the lack of `my` when spawning the error variable grinds my strict gears real bad.

```perl
try {
die "sutin";
} catch (my $err) {
say "died of $err";
}
```

is a grave error and the compiler complains:

> Can't redeclare "my" in "our" at -e line 1, near "(my"
> syntax error at -e line 1, near "(my "

It sticks out like a sore thumb.

I can't remember if I asked this already, but I'm not seeing any search results...

Any #Perl #PerlDev folks able to shed some light on my issue installing Alt::Devel::CallParser::ButWorking ? I get an error but it's unclear how to remediate.

I'm trying to install it in an #AlpineLinux 3.19 Docker image -- it installs fine on Alpine 3.14. In 3.19, I get:

error building lib/Devel/CallParser.o from 'lib/Devel/CallParser.c' at /usr/share/perl5/core_perl/ExtUtils/CBuilder/Base.pm line 185.

Continued thread

Different languages are good at different things.

People have mocked #Perl for being a "write only" language, but I feel like the Perl community should take pride and own that slur - you don't need to constantly read and re-read and re-re-read (and edit) the Perl code, because it just keeps working.

Not so with #Python. Python will deprecate your shit and you will NEED to re-read that code so you can make pointless edits to keep it working.