Re: Observations from a C++/Python developer that never used Perl5

2016-09-07 Thread Kaare Rasmussen
Hi Joseph Welcome, and I hope you'll stick around. Now, I haven't had the time to dig into Perl 6 myself, only to poke at it from time to time. But, while waiting for people who know something to respond, I'll ask you to be a little concise in certain areas. * I can find no concise easy-to-und

Observations from a C++/Python developer that never used Perl5

2016-09-07 Thread Joseph Garvin
For the last couple weeks I've been experimenting with Perl6 because I finally became sufficiently annoyed with Python's lack of real (No GIL) threading and a quick inspection of the Perl6 feature list looked promising. I'm trying to keep an open mind because Perl is pretty culturally different tha

Re: Justification for the "reversed" instruction format

2016-09-07 Thread Parrot Raiser
There is a "flip" in P6, to reverse the characters in a string, and a "reverse", to return the elements of a list. Would either of those be an equivalent? On 9/6/16, Trey Harris wrote: > There’s a very common functional programming pattern, usually called flip; > its implementation in Haskell is

Re: Justification for the "reversed" instruction format

2016-09-07 Thread Brandon Allbery
On Wed, Sep 7, 2016 at 6:08 PM, Parrot Raiser <1parr...@gmail.com> wrote: > There is a "flip" in P6, to reverse the characters in a string, and a > "reverse", to return the elements of a list. Would either of those be > an equivalent? > Not without an "apply" mechanism used for function / method

[perl #129080] [LTA] Missing bit in error message about R?? in Rakudo

2016-09-07 Thread Zoffix Znet via RT
Fixed in https://github.com/rakudo/rakudo/commit/c98ab93552 Tests needed

Help mechanism in REPL?

2016-09-07 Thread Parrot Raiser
This isn't a request for a feature, merely a thought experiment. We're still in the phase where it's more important to ensure that existing features work properly than add new ones. How difficult would it be to include a mechanism within the REPL to select either documentation or an example, (poss

Re: [perl #129221] [BUG][UNI] Combinators get matched by regex even when no ignoremark is set

2016-09-07 Thread Brandon Allbery
On Wed, Sep 7, 2016 at 5:12 PM, jn...@jnthn.net via RT < perl6-bugs-follo...@perl.org> wrote: > Actually, this is intended behavior. NFG synthetics take on the character > properties of their base character. How do you match any base Unicode digit (i.e. not just the ASCII 0-9) without any marks?

[perl #129221] [BUG][UNI] Combinators get matched by regex even when no ignoremark is set

2016-09-07 Thread jn...@jnthn.net via RT
On Wed Sep 07 10:35:51 2016, c...@zoffix.com wrote: > The expectation is this would fail to match, because I'm only asking > for digits: > > m: say "7\x[308]" ~~ /^ \d+ $/ > <+camelia> rakudo-moar f0bb58: OUTPUT«「7̈」␤» > Actually, this is intended behavior. NFG synthetics take on the character

[perl #128469] [BUG] done() on first entry to whenever block does not exit react {}

2016-09-07 Thread Zoffix Znet via RT
This now appears to have been fixed by some of the recent async fixes. Tests now pass and have been unfudged in https://github.com/perl6/roast/commit/92951b39ee

[perl #128469] [BUG] done() on first entry to whenever block does not exit react {}

2016-09-07 Thread Zoffix Znet via RT
This now appears to have been fixed by some of the recent async fixes. Tests now pass and have been unfudged in https://github.com/perl6/roast/commit/92951b39ee

[perl #129221] [BUG][UNI] Combinators get matched by regex even when no ignoremark is set

2016-09-07 Thread via RT
# New Ticket Created by Zoffix Znet # Please include the string: [perl #129221] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=129221 > The expectation is this would fail to match, because I'm only asking for digits: m: s

Re: [perl #129220] [BUG] .list,.List, (Real,) inconsistencies

2016-09-07 Thread Lloyd Fournier
I Realised what's happening. Real is a role so calling .list on it puns it. so the phenomenon can be boiled down to: Real ~~ Real.^pun # False I'm not sure if it should be that way. I will accept notabug though :) On Thu, Sep 8, 2016 at 12:33 AM Lloyd Fournier wrote: > # New Ticket Created b

[perl #129220] [BUG] .list,.List, (Real,) inconsistencies

2016-09-07 Thread via RT
# New Ticket Created by Lloyd Fournier # Please include the string: [perl #129220] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=129220 > say (Real,) ~~ Real.list; # False say (Real,) ~~ Real.List; # False say Real.list ~

[perl #129214] Initialization of variables explicitly declared as Hash[...]

2016-09-07 Thread via RT
# New Ticket Created by Peter Pentchev # Please include the string: [perl #129214] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=129214 > Hi, While trying to write a function returning Hash[Array[Str]], I came up against wh

Re: Justification for the "reversed" instruction format

2016-09-07 Thread Trey Harris
There’s a very common functional programming pattern, usually called flip; its implementation in Haskell is simply: flip :: (a -> b -> c) -> b -> a -> cflip f x y = f y x Getting the same behavior out of a bespoke function in Perl 6 would be easy for any particular case, but writing a gene

[perl #129215] Passing a Hash[...] as a parameter to an imported sub

2016-09-07 Thread via RT
# New Ticket Created by Peter Pentchev # Please include the string: [perl #129215] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=129215 > Hi, So here's the main program: #!/usr/bin/perl6 use v6.c; use lib '.'; use trap;

[perl #129219] [LTA] PERL6_TEST_DIE_ON_FAIL doesn't die in non-TODOed subtests

2016-09-07 Thread via RT
# New Ticket Created by Zoffix Znet # Please include the string: [perl #129219] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=129219 > Opening this mostly to serve as a reminder for myself. Currently, when PERL6_TEST_DIE_ON_

[perl #129213] [CONC] Bailador + start + IO hangs

2016-09-07 Thread jn...@jnthn.net via RT
On Tue Sep 06 08:58:37 2016, coke wrote: > See attached files. > > I have seen variations of this problem in 2016.07, .08, and just today > with f648d3b / 67b6836 / 5108035 - however the issues with the most > recent version seem to happen even sooner. (2016.08, for example, It > looked like even