Live data from Hacker News

Larry Wall Unveils Perl 6.0.0

pigdog.org

31–40 of 336 posts

Re: Larry Wall Unveils Perl 6.0.0

#31
post #30

> Finally, there's a way to stop non-identical strings from matching just because they have the same numerical value. Um, this has been there for decades: $a = '123'; $b = '123.0'; print $a == $b ? 'y' : 'n'; # prints y print $a eq $b ? 'y' : 'n'; # prints n

I read it that way at first, and was going to comment on it, then I figured the point was smart match being able to distinguish, not being able to do your own test.

Re: Larry Wall Unveils Perl 6.0.0

#33
post #23

> ++; # An anonymous state variable, for very fast loops Perl, never stop being you

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.

Re: Larry Wall Unveils Perl 6.0.0

#34
Perl 6 appears to be the SNOBOL of our times, with grammars being a first-class lex, plenty of functional idioms, APL influences and a reasonable object system.

Given how much of contemporary programming is munging, I can see it really picking up steam.

Re: Larry Wall Unveils Perl 6.0.0

#37
post #23

> ++; # An anonymous state variable, for very fast loops Perl, never stop being you

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

Re: Larry Wall Unveils Perl 6.0.0

#38
post #23

> ++; # An anonymous state variable, for very fast loops Perl, never stop being you

One of my favorite new features is phasers[1] (loop flow control shortcuts), and as a subcomponent of that, how CATCH[2] is implemented as a phaser so it's within the block that had the error still has access to the variables in the same scope.

1: http://design.perl6.org/S04.html#Phasers

2: http://design.perl6.org/S04.html#Exception_handlers

Re: Larry Wall Unveils Perl 6.0.0

#39
post #26
post #9

Junctions and autothreading seem to be importing the core of APL/J: http://doc.perl6.org/type/Junction (I'm randomly scanning http://faq.perl6.org )

Perl 6 basically hoovered every good programming concept they could think of (and some that ended up being not so good, which have hopefully been shaken out over the last decade). If you want a small language, this is not it. If you want an amazingly powerful language that just allows you to do what you want with a minimum of fuss, pull up a seat.

Whereas Go has gone the other route and jettisoned everything. Not having a ternary operator is a real pain.

One thing Go does well is provide the gofmt tool. There is only one way to format code properly.

Does Perl 6 have something like this?

Re: Larry Wall Unveils Perl 6.0.0

#40

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.

"too late" for what? Perl 6 is a super modern programming language with all the flexibility and fun of Perl 5. If you are looking for a multi-paradigm scripting language with an hybrid typing system then it's very relevant, just go and read its specs: I think you will find tons of interesting features that will make you want to use it some day.
Post reply on HN