Live data from Hacker News

Raku: A language for gremlins

buttondown.email

221–230 of 257 posts

Re: Raku: A language for gremlins

#221

Earlier quoted context omitted.

There is no reason why it could not continue to use the exact representation and operations if it wished (and that's what FatRat does). It's just an ill-conceived concession to performance.

and yet, raku is the first serious attempt to unify Int-Rat-Num-Complex types into a cooperative Numeric space --- which I think is a good design given its untyped default approach

Common lisp and scheme have had proper numeric towers without this problem for decades.

Re: Raku: A language for gremlins

#222

I am definitely a gremlin, in a specific sense: I love tools that are quirky and complicated in a way that makes me more productive. But this idea of programming in The Large vs The Small: I disagree with that comparison. A less wise person might assume that means it makes a bad language for The Large work. On the contrary, it's probably just as good as any other language at it, maybe better. The problem, as it was w…

The notion/mindset that "This tool can only be used if you are good enough" is an enormous design smell in my opinion. Tooling exist to help you and your team do the required work as good or fast as possible. If you are using tools to gate keep juniors in your field, or that are unnecessary complex in order to stroke your own ego. Then the tool is more of a weapon against the rest of your organisation instead of some…

Tools aren't all made the same. Some are made equally well for novices and experts, and some require expertise. It's not a "design smell". Haven't you ever used a tool that wasn't made for toddlers?

Re: Raku: A language for gremlins

#223
post #210

There were so many claims in the first couple of years after Perl6/Raku's initial release in December 2015 about how it had the potential to be optimised due to its superior design but here we are nearly 8 years later and it's still takes 10 times as long as Perl 5 to parse a log file with a regex.

Yes, and those claims might have even been real (also, Perl still lags behind on Unicode stuff, or so I heard?)... the thing we like much less to talk about is that there just needs to be somebody to make those optimizations happen. Work on the actual bytecode VMs (or rather just MoarVM at this point) has been desperately lacking.

Is Jonathan Worthington still active within the project? He was the original force behing optimisation if I remember.

Re: Raku: A language for gremlins

#224
post #212

Earlier quoted context omitted.

The "Perl6/Raku is nothing like Perl 5" hype has been hugely overstated. It wasn't called Perl 6 for nothing and it was developed by the same Perl team more or less. For anyone who worked with Perl 5 significantly the legacy in Perl6/Raku is obvious. Raku's whole object model is a slightly more capable version of Moose.pm, a Perl 5 module on CPAN.

From what I heard, it half inspired Moose actually.

Are you sure it wasn't the Meta Object Protocol (MOP) rather than Moose? "A MOP for Perl" inspired endless debate but never amounted to much. In the end I think the Perl 5 community felt it was best left to Perl 6 but I could be wrong as this was all about 20 years ago.

Re: Raku: A language for gremlins

#225

I am definitely a gremlin, in a specific sense: I love tools that are quirky and complicated in a way that makes me more productive. But this idea of programming in The Large vs The Small: I disagree with that comparison. A less wise person might assume that means it makes a bad language for The Large work. On the contrary, it's probably just as good as any other language at it, maybe better. The problem, as it was w…

The notion/mindset that "This tool can only be used if you are good enough" is an enormous design smell in my opinion. Tooling exist to help you and your team do the required work as good or fast as possible. If you are using tools to gate keep juniors in your field, or that are unnecessary complex in order to stroke your own ego. Then the tool is more of a weapon against the rest of your organisation instead of some…

About that, I loved that perl could be learned in layers. You learned the basics while using the language, and could discover one layer after another and Perl, mostly, kept you going and behaved as you expected. (By contrast, as I see it, to C++).

Except that no: Many people were not even paying attention to that. And the perl sigil system - which was taught pretty much from the start - was still one of the top objections! It wasn't gatekeeping. It was people refusing to learn the tools they were meant to use.

Re: Raku: A language for gremlins

#226
post #79

Earlier quoted context omitted.

Raku’s new grammar syntax is much less awful and just as amazingly useful.

That's cool that's cool, but the problem is getting people to use Raku.

Or even just Raku’s grammars. Perhaps we need an RCRE library :)

Re: Raku: A language for gremlins

#227
post #226

Earlier quoted context omitted.

That's cool that's cool, but the problem is getting people to use Raku.

Or even just Raku’s grammars. Perhaps we need an RCRE library :)

Perhaps. But that will become very difficult indeed.

Because in Raku, grammars are just a different way to write code. Grammars are really just specialized classes. And tokens / rules / regexes are just specialized methods. It all compiles down to bytecode, rather than something you can feed a statemachine.

This has several advantages: if a grammar doesn't provide functionality you need, you can write it in Raku code as part of the grammar.

It also means that when you improve execution of the bytecode, you will also improve the performance of grammars and regexes.

Finally: Raku grammars are very powerful. They are used to parse the Raku language itself. Which is a testament to its power. But also brings a whole set of challenges for the core developers :-)

Re: Raku: A language for gremlins

#228

> Formerly known as Perl 6. ↩ I’m in a desparate need of a message from Captain Obvious right now. I know nothing about perl

Perl was published by Larry Wall in 1987; Perl 5 appeared in 1994 and has been remarkably stable since then -- I have code from 1998 that still works great. It feels like a more powerful sed or awk, and has an enormous available online library at cpan.org. There are many books describing it; start with "Programming Perl" by Larry Wall; get advice on elegance from "Modern Perl" by Chromatic; if you want to build an Internet component smaller than an available module (or get guidance on the implementation thereof), "Network Programming with Perl" by Lincoln Stein is superb.

Re: Raku: A language for gremlins

#229
post #223

Earlier quoted context omitted.

Yes, and those claims might have even been real (also, Perl still lags behind on Unicode stuff, or so I heard?)... the thing we like much less to talk about is that there just needs to be somebody to make those optimizations happen. Work on the actual bytecode VMs (or rather just MoarVM at this point) has been desperately lacking.

Is Jonathan Worthington still active within the project? He was the original force behing optimisation if I remember.

Jonathan Worthington has been much going on and off in the recent years. He still had one big optimization project that got completed in 2021 - the new dispatch mechanism - but I don't know about the benchmarks and I doubt it would help with the shear throughput of basic data processing.

Re: Raku: A language for gremlins

#230
post #224

Earlier quoted context omitted.

From what I heard, it half inspired Moose actually.

Are you sure it wasn't the Meta Object Protocol (MOP) rather than Moose? "A MOP for Perl" inspired endless debate but never amounted to much. In the end I think the Perl 5 community felt it was best left to Perl 6 but I could be wrong as this was all about 20 years ago.

I don't know, this is "second-hand intel" for me, pretty sure I read it in a very old article from someone of the likes of Carl Mäsak, Moritz Lenz or another early-day Rakudo contributor...
Post reply on HN