News for hackers. Stuff that matters.
Re:Larry Wall has approved renaming Perl 6 to Raku by sys_64738 on Friday October 11, 2019 @03:40PM (#21227712)
What utility does Perl provide in a world dominated by python?
Re:Larry Wall has approved renaming Perl 6 to Raku by ttkciar on Friday October 11, 2019 @04:17PM (#21228058)
Its runtime is quite a bit faster and enjoys a smaller memory footprint. It is also more amenable to "bash on steroids" scripting, and has a quarter-million canned solutions in CPAN.

PyPi has caught up with CPAN in terms of sheer number of packages, but there are still a lot of differences in what those packages cover. You might find solutions in CPAN without a counterpart in PyPi.

More narrowly, every time I deal with databases in python, I find myself missing perl's DBI, which provides the same API for all databases with a corresponding DBD. Python should get a similar universal database interface someday.

Re:Larry Wall has approved renaming Perl 6 to Raku by wumpus on Friday October 11, 2019 @04:13PM (#21228021)
One thing perl provides is a few examples of how to handle utf-8 better than Python does.

To put this another way, my 10-year-old perl-based web crawler did not have a problem crawling websites with umlauts in the hostname. Python is fixing supporting that new 2008 standard next year.

Re:Larry Wall has approved renaming Perl 6 to Raku by eddyg on Friday October 11, 2019 @04:13PM (#21228022)
Plenty.

Read https://www.evanmiller.org/why-im-learning-perl-6.html or the follow-up https://www.evanmiller.org/a-review-of-perl-6.html

Or, Why Perl 6 is the "Game of Thrones" of programming languages: https://techbeacon.com/app-dev-testing/why-perl-6-game-thron...

Lots more where those came from...

Re:Larry Wall has approved renaming Perl 6 to Raku by emptybits on Saturday October 12, 2019 @01:16AM (#21230833)
I love Python and I don't see the subset of the world dominated by Python changing to Raku any time soon. But there are some things that made me smile and nod and want to read more about the language. Two, off the top of my head.

1. Raku treats math in a manner that wouldn't surprise a mathematician. Or grade school student, for that matter. Witness:

    $ python3 -c 'print(0.3 == 0.1 + 0.2)'
    False
    $ ruby -e 'puts 0.3 == 0.1 + 0.2'
    false
    $ perl6 -e 'say 0.3 == 0.1 + 0.2'
    True
(Raku prefers rational to floating point math when possible, but of course you can force floating point if you prefer that behaviour.)

2. Concurrency is a language goal in Raku and I think that's notable, compared to Python. Parallelism, concurrency, and asynchrony including multi-core support.[1]

[1] https://docs.perl6.org/language/concurrency

Re:Larry Wall has approved renaming Perl 6 to Raku by Grinnz on Saturday October 12, 2019 @09:52PM (#21237751)
As a Perl programmer, this is basically a post I might have written (aside from knowing it's not dominant anymore :) One more really cool aspect is the first class Unicode support, which Perl can do but you have to work at it.
Re:Larry Wall has approved renaming Perl 6 to Raku by mhd on Friday October 11, 2019 @04:59PM (#21228418)
The inverse could've been asked about Python ages ago.
Re:Larry Wall has approved renaming Perl 6 to Raku by pvaldes on Saturday October 12, 2019 @05:11AM (#21231649)
Maybe creativity. Perl world has always been proud to be able to solve the same thing in twenty different, often arcane, ways. Sometimes this is a good trait, other not so.

And Perl programs do not spontaneously decompose when copypasted also.

And CPAN is still a very profitable gold mine to explore.

Re:Larry Wall has approved renaming Perl 6 to Raku by ncmncm on Friday October 11, 2019 @03:54PM (#21227832)
Legit question.

Movable Type is about the only blog framework not written in PHP. If you thought Perl was a bad language, PHP is way, way worse. And Movable Type is also the only one that can use Postgres for storage.

I could not find any blog engine in Python.

Re:Larry Wall has approved renaming Perl 6 to Raku by smacktoward on Friday October 11, 2019 @04:02PM (#21227899)
There are static site generators written in Python you could use to publish a blog, like Pelican (https://blog.getpelican.com/) and Lektor (https://www.getlektor.com/). But yeah, if you want software that works like WordPress and generates pages dynamically on the fly, I'm not sure there's any good Python-based alternatives.

> If you thought Perl was a bad language, PHP is way, way worse

In fairness to PHP, it's a lot better today than it used to be. (Though modern PHP would probably strike a Pythonista as too Java-ish.) And WordPress has had tons of engineering resources poured into it for a decade-plus now, whereas Movable Type has been maintained on a relative shoestring due to its fall from popularity.

Re:Larry Wall has approved renaming Perl 6 to Raku by ncmncm on Tuesday October 15, 2019 @07:21AM (#21257382)
It is hard to imagine why anyone would want to generate blog pages on the fly, but somehow it is what everyone does.
Re:Larry Wall has approved renaming Perl 6 to Raku by matthewowen on Friday October 11, 2019 @03:59PM (#21227873)