lainchan / λ
(untitled)
Acid Burn · 2022-07-26 16:16
So whats going in with perl?
I heard it splintered iff into raku and that raku is missing 7zip, imagemagick, mysql, postgresql, etc...
Essential stuff really.
I dont see any alternative to perl that integrates regex seamlessly and focuses on string/file manipulation and such.
Terzibashjian · 2022-07-26 18:07
>>32029
Python happened.
Crash Override · 2022-07-26 18:55
Raku seems to have just dropped. Perl5 still alive though, still being used and mantained.
Ruby had some regex facilities though the perl model is tue best imo for plaintext documents.
Mitnick · 2022-07-27 07:14
Perl5 aka Perl7 is still around. Checkout PerlMonks and perldoc perltoc
Von Neumann · 2022-07-28 17:15
Raku I think is a relic of the functional programming craze; not really meant to be a clean successor to Perl 5 but a separate if related language in its own right. Perl 5 itself is a bit of a "if it ain't broke, don't fix it" type case.
XERXES · 2022-07-29 11:16
>>32034
Dot com bubble burst happened. Few dozens of publicly trade companies cased to exist. Many of them been using Perl at the time. Where did proggrammers go - I do not know. I was kiddo around that time.
Motoko Kusanagi · 2022-07-30 01:43
>So whats going in with perl?
Still up to Perl 7 weirdness I guess? The relationship betweeen Raku and Perl got kind of testy over time.
>I heard it splintered iff into raku and that raku is missing 7zip, imagemagick, mysql, postgresql, etc...
Raku's ecosystem is kinda bare, but there is at least some support for SQL:
https://raku.land/zef:raku-community-modules/DBIish
https://raku.land/zef:FCO/Red
Chan Siu Ming · 2022-07-31 06:51
>So whats going in with perl?
it has no uptake due to being a baroque, error prone, autistic piece of AIDS
just like I told you 20 years ago but you pulled the "if it's so bad then why do people use it"
Case · 2022-08-04 11:20
>>32029
People assume it is dead, therefore it is dead
Its main point (CLI swiss-army chainsaw) has been diminished by more comprehensive GUI tools, a lack of text-based APIs, and the death of CGI in favor of JavaScript
For what it's work, I still use it for CLI text mangling and web scraping, but its mostly legacy code now.
let · 2022-11-14 06:13
>>32029
A lot of big corpos still use it but its just not as popular as it once was. I think Raku has a chance to be a good niche language though.
quote · 2022-11-15 00:02
>>32089
They bought the dip and spent the next two decades posting on perlmonks and everything2.com while still wearing "Perl Is My Paycheck" T-shirts, but ironically now
Lain Iwakura · 2022-11-15 17:59
>>32029
Would perl be a good choice for writing a compiler? I would like to go from mylang -> nasm -> machine code if that makes sense.
() · 2022-12-28 11:57
>>32029
I absolutely hate the fact that Python beat Perl. Python reads like a kids book, Perl reads like an 80's 8 cylinder engine manual. Take me back please.
Eldon Tyrell · 2022-12-30 05:32
>>33807
I do think python has some serious shortcomings but surely you can't argue that ease of documentation is a bad thing...
Mitnick · 2022-12-31 11:58
>>33819
When I program I want to at least feel like I have the independence to make my own decisions. When you write Python, (just like Java, C#, other corpo langs) you give up on your own independence. You will now be TOLD how to write code and you will have ZERO input on how it works. Modern python is literally:
import solution
solution()
Python libraries are all written in C++, C or Fortran (not kidding look at SciPy). These projects are cool, but they turn the average python developers brain into some weird psychosis. They use Python to solve all of their problems but they know zero C, C++, Fortran whatever. So they can never actually understand what's going on. Hence childrens book. You're basically told just to trust the process, alternatives are not encouraged, innovation is not encouraged.
When you write Perl, you also Perl. Every Perl library, excluding a few oddities are written in Perl. It's fast enough to do whatever the fuarrrk you want. Plus it has an incredibly dedicated group of people working in its community (and I think we can all agree, smaller communities are typically more interesting). When I work on a Perl program, I feel like a mechanic. I need to understand the nuances of the problem I'm trying to solve, just like a mechanic diagnosing a motor. I can evaluate how many different ways I can solve it. That's the whole TMTOWTDI part. If I think I need a library to help me, it's not hard for me to read the source and extract what I need from it, assuming I don't want to pull it down.
Compiled regexes, one-liners, sigils, it's all stuff that the world wants to move away from simply because they see it as ugly. They would rather use a language that's more aesthetically pleasing but offers far less control, than something that gives them the power to solve their own problems.
In the end, when Python is dead because Gen-Z "programmers" are replaced by AI, us Perl Monks will continue to do what we do best.
This was sort of a schizo post, my bad, I just have some pent up rage against Python and it was unraveled here.
Six · 2022-12-31 13:49
>>33837
It's not entierly unreasonable to prefer Perl; Python has some pretty asinine limitations and strange design quirks (the latter mostly coming from its insistence on OO) that sometimes make it feel more like it's using you than you're using it. But at the end of the day, Python has a much better understanding of what it is, and what it is is a scripting language; a pragmatic tool used to automate high-level busywork and to glue together low-level components.
I get the urge to explore while coding; it's why I'm such a big fan of Lisp. But exploration usually isn't very practical, and unfortunately, that's the whole point of a scripting language; to be practical.
Guthrie · 2023-01-12 10:16
>>33837
Perl doesnt technically offer more control. It feels like the control it offers and allows is the linguistic aspect, which as shown by the curse of lisp makes it difficult to have standard coders create even seeming work units in large working groups.
And like lisp it seems to be designed for a type of solo Unix hacker, and for that it has a fondness, even if I would use Ruby instead any time I need to think-in-Perl for my problem.
The Oracle · 2023-01-12 13:30
>>33929
Exactly, it's completely devoid of any corporate soykaf. Thankfully Perl 6 aka Raku also manages to encapsulate this feeling, so hopefully there is a future for the solo Unix hacker feel!
Special Agent Bob · 2023-03-15 09:28
>>32099
DBIish supports Postgres, MySQL, Maria, etc, etc. Red is still big time WIP.