Live data from Hacker News

Larry Wall has approved renaming Perl 6 to Raku

github.com

441–450 of 463 posts

Re: Larry Wall has approved renaming Perl 6 to Raku

#441

Earlier quoted context omitted.

I understand that impression but I think it requires a different point of view. They are highly adapted in multiple quite complex ways. It's possible we're using divergent definitions of "sophisticated". I was using the one that means complex, developed, and refined for an environment rather than the definition of being tasteful, intellectually pleasing, and socially experienced.

That applies to every living thing ever, though. You're not focusing on the camel at all, or elevating it, unlike joshred's formulation.

Not everything that ever lived is as adapted as the camel and not in as many ways. it has huge fat stores so it can go a long time between meals. It can go a long time without even drinking. It has for thick enough it won't sunburn but thin enough it won't overheat easily. They have a third, translucent eyelid that opens to the side like something you might see on a reptile, but they still have the two main lashed eyelids like most mammals. They have a long, strong swatting tail. Their feet, unlike a horse or goat, are not hooved. They have a split foot with webbing in the middle that resists sinking in sand or soft soil. They're able to drink brackish or even salt water. They can eat stone fruits like dates with the stone. They'll eat cactus with the spines because their mouths are so tough. They eat fish, seeds, grains, and all sorts of things. They can eat foods far too salty for other animals and will even eat bones. Arabian camels will travel tens of kilometers a day in the wild to forage, in conditions many animals couldn't even survive, but can go two weeks between meals when they must.

Saying they are no more complex and adapted than any other organism sells them far short. Yet they're more stubborn than a mule, somewhat slower than a horse, they smell worse than either, and they'll spit on a person like a llama. They've been known to bite. Their shape is not is amenable to riding although they are used as mounts. So there are things one might really want to change before spending a lot of time with one.

Re: Larry Wall has approved renaming Perl 6 to Raku

#442

Earlier quoted context omitted.

That applies to every living thing ever, though. You're not focusing on the camel at all, or elevating it, unlike joshred's formulation.

Not everything that ever lived is as adapted as the camel and not in as many ways. it has huge fat stores so it can go a long time between meals. It can go a long time without even drinking. It has for thick enough it won't sunburn but thin enough it won't overheat easily. They have a third, translucent eyelid that opens to the side like something you might see on a reptile, but they still have the two main lashed ey…

I'll agree that comparing to any other organism is going too far.

But if we focus on vertebrates, they are all so very very complex and adapted. Everything you've listed for a camel is at best a cherry on top. All other vertebrates are within a couple percent, and many of them have feature lists just as long.

Re: Larry Wall has approved renaming Perl 6 to Raku

#443
post #390

Earlier quoted context omitted.

I'm curious, how do you learn languages now?

I read a blog post with the basics, then Google everything else as I need it.

I think explains a lot of the polarised reactions people have towards Perl. It's trivial to understand the difference between the scalar var $foo and the array var $foo[0] if someone explains it to you or you read it; but if you're trying to Google-as-you-go, you don't even know what to search for. Those in the former group are more likely to find Perl delightful, while to the latter it's just frustrating.

Re: Larry Wall has approved renaming Perl 6 to Raku

#444

Earlier quoted context omitted.

I read a blog post with the basics, then Google everything else as I need it.

I think explains a lot of the polarised reactions people have towards Perl. It's trivial to understand the difference between the scalar var $foo and the array var $foo[0] if someone explains it to you or you read it; but if you're trying to Google-as-you-go, you don't even know what to search for. Those in the former group are more likely to find Perl delightful, while to the latter it's just frustrating.

> It's trivial to understand the difference between the scalar var $foo and the array var $foo[0] if someone explains it to you or you read it;

I don't Perl much, but aren't those both scalars and @foo is an array variable. $foo[0] would be a scalar that is the first element of @foo, right?

Re: Larry Wall has approved renaming Perl 6 to Raku

#445
post #280

Earlier quoted context omitted.

There was an ECMAScript 4, it just wasn't adopted by browsers. (It was semi-adopted for ActionScript 3.)

I thought the relationship went the other way, that AS 3 was going to be standardised as ECMAScript 4? Not that it matters, I’m likely remembering incorrectly!

Standards are a two-way street, and we're probably both right from different points of view. (Especially, because AS 2 also had a number of the features proposed for ES 4, so even if AS 3 was "solely" inspired to be an implementation of the ES 4 standard, ES 4 itself took inspiration from AS 2.)

Re: Larry Wall has approved renaming Perl 6 to Raku

#446
post #414
post #359

Earlier quoted context omitted.

I get hired all the time to fix legacy systems in Perl or to build new systems in Perl. We're still out there, but it's not "cool" to talk about.

I hope you are not working on my old sins. But if you are, can I watch? :-)

I'm pretty sure Ovid's hair would turn grey if he did! ;-)

Re: Larry Wall has approved renaming Perl 6 to Raku

#447

Earlier quoted context omitted.

I think explains a lot of the polarised reactions people have towards Perl. It's trivial to understand the difference between the scalar var $foo and the array var $foo[0] if someone explains it to you or you read it; but if you're trying to Google-as-you-go, you don't even know what to search for. Those in the former group are more likely to find Perl delightful, while to the latter it's just frustrating.

> It's trivial to understand the difference between the scalar var $foo and the array var $foo[0] if someone explains it to you or you read it; I don't Perl much, but aren't those both scalars and @foo is an array variable. $foo[0] would be a scalar that is the first element of @foo, right?

Yes, indeed — I should have said "scalar element of the array var..." or something.

Re: Larry Wall has approved renaming Perl 6 to Raku

#448
post #44

Earlier quoted context omitted.

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.

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…

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

#450
post #361

Earlier quoted context omitted.

For concurrency I think Raku has slightly more developed async support than Python, but the bigger advantage, I think, is in parallelism where, aside from the CPython GIL limiting practical parallelism in the main implementation (which is a big deal), Python as a language lacks the parallel iterables produced by the hyper (parallel but constrained to return in order) and race (parallel and not constrained in order) m…

Sounds like multiprocessing.Pool.imap and imap_unordered? When dealing with io you also have async/await equivalent iterators like asyncio.as_completed().

Raku has `await` but it doesn't need `async`.

    sub foo ( Int \n where 1..100 ) {
      #  ___ start is a prefix operator that creates a Promise
      # V
      start { sleep n.rand; (1..n).pick }
    }

    my $result = foo(10);

    say $result.status; # Planned

    say await $result; # 6 (after a delay)



    # this is nearly identical to foo above
    sub bar ( Int \n where 1..100 ) {
      Promise.in( n.rand ).then({ (1..n).pick })
    }
(Note that `start` does not need a block unless you are grouping more than one statement as I have above.)

There are combinators like `Promise.allof` and `Promise.anyof`.

You usually don't need to use `Promise.allof`, because you can use `await` on a list.

    my @promises = Promise.in(1.rand) xx 10;

    my @results = await @promises;
(Note that the left side of `xx` is _thunky_ so there are ten different Promises with ten different random wait times.)

---

You should see the `react`/`supply` and `whenever` feature.

Post reply on HN