HNHacker News
TopNewBestAskShowJobs

lizmat

1,154 karma · joined January 23, 2018

submissionscomments
lizmat··on The Joy of Perl (1998)
Did Duke Nukem Forever change its name? Perl 6 has. It's called Raku now (https://raku.org using the #rakulang tag on social media). And it is very much alive and ready for production.
lizmat··on The Joy of Perl (1998)
Then perhaps Raku is a thing for you, with its Metaobject Protocol: https://docs.raku.org/language/mop
lizmat··on Killersheep – Silly game to show off the new features of Vim 8.2
Please note that there is no longer a Perl 5 / Perl 6 thing, as Perl 6 has been renamed to Raku (https://raku.org using the #rakulang tag on social media). How this would apply to the Vim / Neovim situation, I'm not sure. With regards to slowness: over the past years, Raku has gained orders of magnitude in speed in almost all areas of the system.
lizmat··on Larry has approved renaming Perl 6 to raku
Please note that https://raku.org is now the main landing page for Raku, and that #rakulang is the tag to be used in social media.
lizmat··on Password Generator
Or Raku https://raku.org:

raku -e 'say lines.pick(4).join' < /usr/share/dict/words

lizmat··on Ask HN: Freelancer? Seeking Freelancer? (December 2019)
Re "Perl (5 & 5)": if you really want to be buzzword compliant, that should read "Perl, Raku", as Perl 6 has been renamed to Raku (https://raku.org) using the #rakulang tag for social media.
lizmat··on 0.30000000000000004
Please note that Perl 6 has been renamed to "Raku" (https://raku.org using #rakulang as a tag for social media).

In Raku, the comparison operator is basically a subroutine that uses multiple dispatch to select the correct candidate for handling comparisons between Rat's and other numeric objects.

lizmat··on Unicode Is Awesome
Thank you for your reference to Perl 6. Please note that Perl 6 has been renamed to "Raku" (https://raku.org) using #rakulang as a tag for social media.

Please also not that all string handling in Raku (the `Str` class) is based on graphemes, not just some added functions. This e.g. means that a newline is always 1 grapheme (regardless of whether it was a CR or LF or CRLF). And that for é there is no difference between é (LATIN SMALL LETTER E WITH ACUTE aka 0x00E9) and (LATIN SMALL LETTER E, COMBINING ACUTE ACCENT aka 0x0065, 0x0301).

Please note that for any combination between characters and combiners for which there does not exist a composed version in Unicode, Raku will create synthetic codepoints on the fly. This ensures that you can consider your texts as graphemes, but still be able to roundtrip strange combinations.

lizmat··on Ask HN: Why there are no new symbols being created, like one for concatenation
Please note that Perl 6 has been renamed to Raku: https://raku.org #rakulang on social media
lizmat··on Garbage Collection
Raku (née Perl 6) has phasers that will be called when exiting a scope. One such idiom is:

    {
        # do stuff
        my $dbh = DB.connect(...);
        # do stuff
        LEAVE .disconnect with $dbh;
        # do stuff
    }
Whenever the scope is left (this could be because of an execution error, or a `return`), the code of the LEAVE phaser will be executed. The `with $dbh` checks whether the $dbh variable contains an instantiated object. If so, it topicalizes (set $_ to it) and calls the disconnect method (`.disconnect` being short for `$_.disconnect`).

For more complex uses, and more tuneable finalizing, there is the `FINALIZER` module in the ecosystem: https://modules.raku.org/dist/FINALIZER

lizmat··on Garbage Collection
Just for the record: Raku (née Perl 6) most definitely does not do refcounting. If you want to do serious async programming, refcounting becomes a nightmare to get right and/or a source of potential deadlocks.
lizmat··on On Troll Hugging, Hole Digging, and Improving Open Source Communities (2017)
Some additional info on this excellent article: Zoffix worked very hard on giving Perl 6 a different name. At that time however, the Perl 6 community was not ready for that yet. Which resulted in Zoffix leaving the Perl 6 community.

In October 2019, the Perl 6 community decided that a rename of the language would be in the best interest of everybody involved. Since then, the language is called "Raku" (https://raku.org).

Zoffix is still sorely missed.

lizmat··on Julia v1.3
Thank you for these goals :-)

Just for the record: yes, there are faster ways of finding the 10000th prime, but I use this example often as an example of a CPU-intensive task that can be spread over multiple threads easily.

Also, please note that all features of the example are built-in into Raku: no external module loading needed.

lizmat··on Advent of Code 2019
Maybe Raku would also be a nice language to try things out :-) https://raku.org
lizmat··on Julia v1.3
The Raku runtime is still improving, and several object creation benchmarks now outrun Perl. A low bar, some might argue. But still.

Threading can make a difference on non-IO bound tasks if you're interested in wallclock rather than CPU: for instance, `say (1..Inf).grep( { .is-prime } )[9999]` (showing the 10000th prime number) runs 22 seconds on my machine, but the threaded version of that: `say (1..Inf).hyper.grep( *.is-prime )[9999]` runs in 8 seconds. That's just by adding the `.hyper` method to the chain!

lizmat··on Julia v1.3
> And my impression is that Raku doesn’t get very high performance with its multithreading

Could you elaborate on how you got that impression? Do you have any benchmarks that the Raku core developers could look at?

lizmat··on The Disaster of Python 3
In the end, there was no transition of Perl 5 to Perl 6. Recently it was decided to rename Perl 6 to Raku, freeing up both languages from decades long entanglement. https://raku.org

Not sure what this would imply for a future Python 3 -> Python 4 transition.

lizmat··on Pika – A JavaScript package registry for the modern web
Perhaps you'd be pleasantly surprised the Raku IDE (Comma) has a free community edition, with excellent debugging capabilities: https://commaide.com
lizmat··on Tesla PowerWall 2 Hack
This is not a bug. This is irresponsible behaviour on the side of Tesla, providing hardware that is so open to abuse. With potential effects to the grid as well.
lizmat··on The Floating-Point Guide (2010)
> totally irrational idea

Could you expand on why it is a totally irrational idea? Seems pretty rational to me. But then I'm not really a mathematician.

> autoconversion to floating point when you hit a 2^64 denominator

Please note that this is after normalization. And it has come from practicality: having the denominator also be an BigInt, slows down the use of the Rational number significantly. However, if you do need that type of precision, then you can by using infectious FatRats: any expression with a FatRat, will result in a FatRat (unless explicitly coerced to something else, of course).

With regards to the Zero-denominator Rats: they are just special cases just as IEEE has special cases for -Inf, Inf and NaN. So what's the problem there?

lizmat··on The Floating-Point Guide (2010)
FWIW, Perl 6 prefers to be called Raku now.
lizmat··on Prefer Rust to C/C++ for new code
Perhaps what you're looking for is Raku: https://raku.org :-)
lizmat··on Perl Master Plan
Indeed. Especially when you realize this is only the first of many sites Will Brasswell wants other people to make:

perlpackages.com perlcontainers.com perlvm.com perlclouds.com perlaccessibility.com perlinstall.com perlgames.com perloffice.com perlapps.com perlservers.com perlgrandchallenges.com perlhackathons.com spacescouting.org perlscouts.com certifiedyouthprogrammer.com programmingmeritbadge.com mlperl.com scienceperl.com perldemos.com perljobs.work perllegacy.com perlpodcasts.com perlvideos.com perlbrochures.com perlflyers.com perlmerchandise.com perlpapers.com perlnewsroom.com perlblogs.com perlinfographics.com perlbeer.com perlparties.com perlconferences.com perlmulticore.com perlsupercomputers.com perlspeed.com perlfamily.org

lizmat··on Perl Master Plan
Amateur job is the right description. No, alas, it is not satire, far from it. :-(
lizmat··on Perl Master Plan
This push did not involve any consultation with any community. He has never contributed anything to Perl 6, let alone Raku. He continues to use Larry's image and calling him a "saint", without his consent. He does not listen to other people.

In other words: he's doing Perl the worst possibly favour.

lizmat··on Perl Master Plan
> They have a good relationship with Perl 6 devs/maintainers

This is untrue.

> and even incorporate some of 6 in their work (that's where 11 comes from 5+6=11)

None of this EVER materialized.

Let it be noted that I have defended Will Braswell publicly and privately many times in the past, most recently in https://liztormato.wordpress.com/2019/07/13/on-crime-and-pun...

But since the stunts he has pulled after the rename of Perl 6 to Raku became official (both public as well as in private messages), I have decided he has migrated to the plonk category of people in my life (the sound of garbage hitting the bottom of the bin).

lizmat··on Perl Master Plan
Will Brasswell has a long history of appropriating other peoples images / volunteering other people, even to the point of submitting talk proposals for people at conferences without their knowledge or consent.

I've asked him to remove all mentions of Raku on his site (as Raku is no longer part of the Perl future), but he has refused to do so.

It's http://perl11.org all over again, but with improved graphics and UI. But it's still the same sour wine.

lizmat··on Multiple ways to compute e in Raku
So, what would you consider useful?
lizmat··on Multiple ways to compute e in Raku
Then you should maybe have a look at MoarVM (https://moarvm.org). It is now the main backend for Raku (née Perl 6) and is all that Parrot was intended to be, and then some. If you want to get into it, you might want to have a look at https://github.com/edumentab/rakudo-and-nqp-internals-course (course materials that implemented a Ruby and a PHP on MoarVM).
lizmat··on Multiple ways to compute e in Raku
Yes, the Parrot project is in deep, very deep hibernation.
← PreviousPage 11 of 16Next →