Live data from Hacker News

Larry Wall Unveils Perl 6.0.0

pigdog.org

101–110 of 336 posts

Re: Larry Wall Unveils Perl 6.0.0

#102
post #89

I'm really surprised this site is the source y'all chose to upvote. Not only was the second-newest article published in 2012, they also have an assortment of other questionable content[0][1]. Advertising from rotten.com and a category named "Jonny Jihad" are also professional touches. I mean, whatever floats your boat, but HN, is this really one of your go-to trusted news sources? [0] http://www.pigdog.org/in_the_pin…

If you doubt the legitimacy of the post, I can confirm there was an event[0]. I was also there, and the blog post syncs up to what I remember from the event. I am surprised there isn't some official post event write up from the event organizers, though.

http://perl6releasetalk.ticketleap.com/perl-tech-talk/detail...

Re: Larry Wall Unveils Perl 6.0.0

#103
post #75

Earlier quoted context omitted.

Also: react { whenever } # Code runs when a condition is met. I can only think this must be a generic https://en.wikipedia.org/wiki/COMEFROM . It is sure going to create some viciously subtle bugs.

INTERCAL finally weeps for joy at being able to claim Perl 6 as a spiritual descendant.

Nice to know I'm not the only one who thought that. Now they just need the PLEASE keyword.

Re: Larry Wall Unveils Perl 6.0.0

#104
post #37

Earlier quoted context omitted.

Also: react { whenever } # Code runs when a condition is met. I can only think this must be a generic https://en.wikipedia.org/wiki/COMEFROM . It is sure going to create some viciously subtle bugs.

Cf http://www.jnthn.net/papers/2015-spw-concurrency.pdf

From pages 56 and 57:

> Perl 6 has an asynchronous looping construct called whenever ... runs whenever a value arrives ... can live in a ... react block (works like entering an event loop)

  my $code = supply {
    whenever IO::Notification.watch-path($src-dir) {
      emit .path if .path ~~ / $/;
    }
  }
So now, whenever something in $src-dir changes and its path ends with '.pm' or '.p6' that path will be emitted -- which in this case means it'll be pushed to any construct pulling from $code. Such as:

  react {
    whenever $code -> $path {
      say "Code file $path changed!";
    }
  }

Re: Larry Wall Unveils Perl 6.0.0

#105
post #72

Earlier quoted context omitted.

> it is practically always trivial for a Python2 programmer to write new code in Python3. Until you need to use some library that doesn't support python3. I think I've made the transition from python3 to python2 more than I have the other way around.

Or until you trip over the API differences between str and bytes in Python 3 that do not exist in Python 2 (because str == bytes in Python 2). Chiefly, printf-style formatting... >>> b"%u" % 5 Traceback (most recent call last): File " ", line 1, in TypeError: unsupported operand type(s) for %: 'bytes' and 'int'

Why are you using % at all? It should have been deprecated years ago.

Re: Larry Wall Unveils Perl 6.0.0

#106
post #72

Earlier quoted context omitted.

> it is practically always trivial for a Python2 programmer to write new code in Python3. Until you need to use some library that doesn't support python3. I think I've made the transition from python3 to python2 more than I have the other way around.

Or until you trip over the API differences between str and bytes in Python 3 that do not exist in Python 2 (because str == bytes in Python 2). Chiefly, printf-style formatting... >>> b"%u" % 5 Traceback (most recent call last): File " ", line 1, in TypeError: unsupported operand type(s) for %: 'bytes' and 'int'

Fixed as of a month ago.

https://www.python.org/dev/peps/pep-0461/

Re: Larry Wall Unveils Perl 6.0.0

#107

> One of the most impressive things Larry demonstrated was the sequence operator, and Perl 6's ability to intuit sequences. say 1, 2, 4 ... 2**32 > This correctly produced a nice tidy list of just 32 values -- rather than the 4,294,967,296 you might expect. Someone with more time than me needs to find an IQ test that is based around sequence questions like this and plug them all into Perl 6. So we can find out what P…

This is cool but I still don't get how it is able to distinguish between linear, power, exponential, etc. sequences so easily. Would be incredibly interested in reading about the technology they're using for this and how complex it can get.

Re: Larry Wall Unveils Perl 6.0.0

#108
post #24

Seems too little too late. Is Perl still relevant in 2015? What would you build in Perl today that you wouldn't build in another language instead? I used to be a big fan of Perl but it seems to have fallen behind the times, I doubt Perl 6 is enough to catch up.

Here's something that's normally not too fun to deal with in Python and Ruby: asynchronous operations. Perl 6 has promises, C#-style async/await, Go-style channels, and Reactive Extensions-style Supplies built in as first-class ways to deal with asynchrony, concurrency, and parallelism. It can also take advantage of as many threads as you'll give it. Since I deal with web services a lot, this is a huge boon for me. B…

The latest version of Python (3.5) has both async/await syntax (albeit still tied to a single core) and type hinting.

Re: Larry Wall Unveils Perl 6.0.0

#109
quetion for the early adopters: if i develop an end-user app in perl6 on linux, how easy is it for me to deliver it to a non-technical windows and/or mac osx user?

Re: Larry Wall Unveils Perl 6.0.0

#110
post #89

I'm really surprised this site is the source y'all chose to upvote. Not only was the second-newest article published in 2012, they also have an assortment of other questionable content[0][1]. Advertising from rotten.com and a category named "Jonny Jihad" are also professional touches. I mean, whatever floats your boat, but HN, is this really one of your go-to trusted news sources? [0] http://www.pigdog.org/in_the_pin…

When I first started reading this I thought the site was satire, though the article itself (ignoring the site) certainly didn't feel that way.
Post reply on HN