HNHacker News
TopNewBestAskShowJobs

lizmat

1,154 karma · joined January 23, 2018

submissionscomments
lizmat··on Python 2.7.18, the last release of Python 2
Some vocal members of the Perl community have not been into Perl 6. That didn't change with the name change. But if anything, the change in name should make clear that even though Raku is clearly a programming language in the Perl lineage, it is not aiming specifically for the Perl community. Anymore, at least.
lizmat··on Why my book can be downloaded for free (2014)
Would you care to elaborate why?
lizmat··on Ask HN: Which programming language has the best `number' implementation?
> I object to the logo because it looks like it's drawn by a five-year-old

And why should that affect your decision to use or not use Raku? Isn't that ageism in its purest form? :-)

lizmat··on Ask HN: Which programming language has the best `number' implementation?
It would seem that Larry's reasoning for Camelia is working:

"I also take it as a given that we want to discourage misogyny in our community. You of the masculine persuasion should consider it an opportunity to show off your sensitive side."

from: https://github.com/perl6/mu/blob/master/misc/camelia.txt

lizmat··on Python 2.7.18, the last release of Python 2
It's not too late to change the name of Python 3, just as Perl 6 has changed its name to Raku (https://raku.org using the #rakulang tag on social media). :-)
lizmat··on Python 2.7.18, the last release of Python 2
Those were the plans. In the meantime, Perl 6 has been renamed to Raku (https://raku.org using the #rakulang tag on social media).

Integrating Perl code in Raku can be done with the excellent Inline::Perl5 module (https://modules.raku.org/dist/Inline::Perl5:cpan:NINE). In fact, that efficiency of that module basically killed the "parse Perl code in Raku" project.

lizmat··on Python 2.7.18, the last release of Python 2
There is no migration from Perl 5 to Perl 6, but mainly because Perl 6 has been renamed to Raku (https://raku.org using the #rakulang tag on social media).

That being sad, you can integrate Perl code in Raku (using the Inline::Perl5 module), and vice-versa.

lizmat··on Raku vs. Perl
> something different came along and called itself "Perl 6"

You appear to forget that the "Perl 6" initiative originally came from the Perl 5 Porters. It did not just come along and called itself "Perl 6": the "Perl 6" name was used because originally it was intended as the successor of Perl 5.

That it didn't materialize in time, that it became something much different, is something that happened later. But even with Pugs around 2005, Perl 6 was still the successor to Perl 5. Only around 2010, when the sister language concept was introduced, was Perl 6 considered to be a different language.

lizmat··on Raku vs. Perl
On the #raku channel on Freenode, several users are using Raku in production.
lizmat··on Raku vs. Perl
In Raku, grammars are an integral part of the language. This is necessary, as the language itself uses a grammar to compile Raku code.
lizmat··on Raku vs. Perl
This is not true in Raku: whichever way you leave a subroutine, the returned value will be checked against the return constraint. And throw if that fails.

More generally, you can specify KEEP and UNDO phasers in a block, that will fire whether the block is left successfully or not. So a typical usage would be `UNDO $dbh.rollback`.

lizmat··on Raku vs. Perl
Unfortunately, "Perl 7" was a "thing" in the discussions before the name change. IMO, going to "Perl 32" makes more sense, as it actually reflects the current version numbering scheme. Or refer to the year: Perl 2020.
lizmat··on Raku vs. Perl
Good question. I has been suggested to use the major version number in the future. Which would mean in May we would see the release of Perl 32.
lizmat··on Raku vs. Perl
Indeed, everybody got used to the idea that "Perl 6" was a different language. But a vocal part of prominent Perl community members, preferred for "Perl 6" not to be named "Perl" anymore. As well as a part of the "Perl 6" community.

In the end it felt better to stop wasting all those emocycles and suggest a rename.

lizmat··on Take-home vs. whiteboard coding: The problem is bad interviews
> For me, a quality developer is someone who achieves the goals of the company in understandable, maintainable, testable, and documented code.

Agree. But it should be noted that the needs of a startup may not always make that easy. I'm personally responsible for transmogrifying an existing Perl ORM for a company, because it only supported a single database handle / class. Which is a pain when you're in a master / slave environment. This hack allowed the company to meet the performance challenges that came along each year by summer. It also allowed growing the company from ~35 people in 2004 to about 5000 people in 2012 (when I left).

It also froze the version of the ORM in question, until it got rewritten from scratch at great expense. But that expense could now be easily carried by the company.

lizmat··on It's not what programming languages do, it's what they shepherd you to
Perhaps Raku (https://raku.org) could hit your sweet spot?
lizmat··on Most(ly dead) Influential Programming Languages
FWIW, one of the reasons Perl 6 (now Raku) was started, was to fix the errors made in Perl, to be able to get an even more natural language. Even for difficult things:

  react {
    whenever signal(SIGINT) {
      say "Aborted";
      done;
    }
    whenever Promise.in(3) {
      say "Timed Out"
      done;
    }
  }
  say "Goodbye";
This little program will wait for you to press Control-C or 3 seconds, whichever comes first. And say "Goodbye" on the way out.
lizmat··on A Defer Statement for C
Indeed. The LEAVE phaser, and its cousins the KEEP and UNDO phasers: https://docs.raku.org/language/phasers#index-entry-Phasers__...
lizmat··on Rust 1.42
Perl smart match was a disaster because it was symmetric.

Historically, smart match in Perl was "stolen" from the ideas of Perl 6. Perl 6 (now named Raku https://raku.org using the #rakulang tag on social media) learned from the problems found in Perl, and changed its smart-matching model from symmetric to asymmetric. Basically, `a ~~ b` is syntactic sugar for `b.ACCEPTS(a)`. By transferring the responsibility for what smart matching means to an object of a given class, made it possible to make much more sane default behaviour, as well as allowing authors to define their own smart-matching behaviour for custom classes.

lizmat··on I Don't Use Classes
Please note that Perl 6 has been renamed to Raku (https://raku.org using the #rakulang tag on social media). If you want to stay up-to-date with events in the Raku world, check out the Rakudo Weekly News: https://rakudoweekly.blog
lizmat··on CLUI: Building a Graphical Command Line
It appears to me that both Perl 6, as well as Raku, are NOT supported at repl.it (anymore)
lizmat··on DuckDuckGo is good enough for regular use
Which recently became even shorter:

    raku -e 'say "2019-03-12".Date + 366'
    2020-03-12
lizmat··on Was Knuth Really Framed?
The bet is for 2030. Let's be clear about that then :-)
lizmat··on I Want Off Mr. Golang's Wild Ride
Note that Perl 6 has been very much a thing since December 2015 (first official release). However, last October it got renamed to Raku (https://raku.org using the #rakulang tag on social media). And it is still very much a thing. If you want to keep up to date, you should check the Rakudo Weekly News (https://rakudoweekly.blog).
lizmat··on Was Knuth Really Framed?
Then you definitely did not grok it. What I gather from https://en.wikipedia.org/wiki/Icon_(programming_language)#Go... is that Icon's goal directed execution is more like `react whenever` in Raku (https://docs.raku.org/language/concurrency#whenever)

Junctions autothread. What does that mean? Using a Junction as an ordinary value, will cause execution for each of the eigenstates, and result in another Junction with the result of each of the executions. An example:

    # a simple sub showing its arg, returning twice the value
    sub foo($bar) { say $bar; 2 * $bar }

    # a simple "or" junction
    my $a = 1 | 2 | 3;
    say foo($a);  # executes for each of eigenstates
    # 1
    # 2
    # 3
    # any(2, 4, 6)
Documentation: https://docs.raku.org/type/Junction
lizmat··on Was Knuth Really Framed?
> I am willing to bet you $1000 that in 2030 there are more jobs on general $job_board of your choice that mention Perl than Raku.

Bet taken. With the current rate of Perl's decline, I think that's a very safe bet to take.

> I'll be 70, I think you'll be in your 80s.

I know I'm an old hack, but not that old: I'll be 73 for 98% of 2030.

lizmat··on Was Knuth Really Framed?
Depends on what you want to achieve: do you want to be where the puck has been, or where the puck will be? Both approaches have their pros and cons.
lizmat··on Was Knuth Really Framed?
Perl 6 was indeed an interesting research project. Raku is much more than that.

BTW, now that Perl 6 has been renamed to Raku, you can drop the "5" from "Perl 5", and just call it "Perl". Saves on typing!

Re: learning Perl: by all means, but don't let that stop you from learning Raku as well.

lizmat··on Why operators are useful (2019)
Please note that Perl 6 has been renamed to Raku (https://raku.org using the #rakulang tag on social media). With regards to using ~ , nothing has changed :-)
lizmat··on The Bash Hackers Wiki
Unicode support of Raku is grapheme based (NFG or Normalization Form Grapheme). The unicode theory: https://unicode.org/reports/tr29/#Grapheme_Cluster_Boundarie... , about the implementation: https://6guts.wordpress.com/2015/04/12/this-week-unicode-nor...
← PreviousPage 9 of 16Next →