Re: A new problem.

2015-08-14 Thread Lyle
Hi, It sounds like the file is non UTF-8, in a French locale (probably ISO-885901, Windows-1252, or the mac equivalent) but you are trying to load it as UTF-8 (which may well be the default). I suspect if you save the text file as UTF-8 and try again it'll work. Lyle On 12/08/2015 16:32,

Coroutines

2015-08-14 Thread Matija Papec
Hi, I'm looking for single threaded coroutines in perl6. Will hyper/race make them possible? Will 2015 production Rakudo include async IO? Right now I'm considering golang for scalable websocket service, but also wonder if perl6 would (and how) make such thing possible. ps. I would very much

[perl #125808] [BUG] GLOBAL is NQPMu in sub EXPORT which breaks indirect calls

2015-08-14 Thread via RT
# New Ticket Created by Lloyd Fournier # Please include the string: [perl #125808] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125808 > # lib/Foo.pm use Test; sub EXPORT { say GLOBAL.^name; #-> NQPMu say Test; #

Proposed new string methods: trim-rw, trim-leading-rw, trim-trailing-rw

2015-08-14 Thread Tom Browder
In an earlier thread of mine on this list seeking help, Liz mentioned one string method that has now been dcoumented, 'substr-rw', which allows in-place modification of a string variable. In my journey with Perl 6 I have enjoyed the string 'trim' method so I can do this: my $s = ' blah '; $

Re: Proposed new string methods: trim-rw, trim-leading-rw, trim-trailing-rw

2015-08-14 Thread Philip Hazelden
Correct me if I'm wrong, can't you do $s .= trim ? On 12:45pm, Fri, 14 Aug 2015 Tom Browder wrote: > In an earlier thread of mine on this list seeking help, Liz mentioned > one string method that has now been dcoumented, 'substr-rw', which > allows in-place modification of a string variable. >

Re: Proposed new string methods: trim-rw, trim-leading-rw, trim-trailing-rw

2015-08-14 Thread Tom Browder
On Fri, Aug 14, 2015 at 6:48 AM, Philip Hazelden wrote: > Correct me if I'm wrong, can't you do > > $s .= trim Um, I saw that usage in an earlier thread but didn't try it because it didn't "look right" given my experience with the ".=" operator as I'm used to it. (Note I have now seen that behavi

Re: Proposed new string methods: trim-rw, trim-leading-rw, trim-trailing-rw

2015-08-14 Thread Brandon Allbery
On Fri, Aug 14, 2015 at 8:07 AM, Tom Browder wrote: > But I've tried it and it works (but the syntax still bothers me for > now). Note that the same behavior applies to the 'substr' string > method so that begs the question of why is the 'substr-rw' method > justified and 'trim-rw' not? It seem

Re: Proposed new string methods: trim-rw, trim-leading-rw, trim-trailing-rw

2015-08-14 Thread Tom Browder
On Aug 14, 2015 8:46 AM, "Brandon Allbery" wrote: > On Fri, Aug 14, 2015 at 8:07 AM, Tom Browder wrote: ... >> now). Note that the same behavior applies to the 'substr' string >> method so that begs the question of why is the 'substr-rw' method >> justified and 'trim-rw' not? It seems at first

Re: Coroutines

2015-08-14 Thread Timo Paulssen
On 08/14/2015 12:04 PM, Matija Papec wrote: > Hi, > > I'm looking for single threaded coroutines in perl6. Will hyper/race make > them possible? > Will 2015 production Rakudo include async IO? > > Right now I'm considering golang for scalable websocket service, but also > wonder if perl6 would >

[perl #125745] Custom infix:<~~> multi not used by rakudo

2015-08-14 Thread Christian Bartolomaeus via RT
I added a test with commit d2d4f7a9. In comments to PR 487 it was suggested to make the error message even better by mentioning .ACCEPTS (https://github.com/rakudo/rakudo/pull/487#issuecomment-127776087). Should we leave the ticket open until someone does that or is the ticket closeable?

[perl #125811] 2 ** 99999999999999999999999999999999999 = 0

2015-08-14 Thread via RT
# New Ticket Created by Alex Jakimenko # Please include the string: [perl #125811] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125811 > m: say 2 ** 999 rakudo-moar ab73b0: OUTPUT«0␤» That'

[perl #125812] LTA error message when doing with() { } with no whitespace before ()

2015-08-14 Thread via RT
# New Ticket Created by Alex Jakimenko # Please include the string: [perl #125812] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125812 > Code: with(1) { } Result: ===SORRY!=== Error while compiling ./test.pl Unexpected bloc

[perl #125813] Malformed UTF-8 (string out of bounds) with “say ('a' x 10000).IO.open”

2015-08-14 Thread via RT
# New Ticket Created by Alex Jakimenko # Please include the string: [perl #125813] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125813 > Code: say ('a' x 970).IO.open; Result: Failed to open file /home/alex/perl6test/aa

[perl #125814] .chop(9999999999999999999999999999999999999999999999999) does not chop

2015-08-14 Thread via RT
# New Ticket Created by Alex Jakimenko # Please include the string: [perl #125814] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125814 > Code: say 'xx'.chop().perl; say 'xx'.ch

[perl #125815] :nth(-666) is intended to die, but it does not

2015-08-14 Thread via RT
# New Ticket Created by Alex Jakimenko # Please include the string: [perl #125815] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125815 > You can put any negative number (even -Inf) and it will not die: m: say 'foo foo foo'

[perl #125816] "x".indent(9999999999999999999999999999999999999999999999999)

2015-08-14 Thread via RT
# New Ticket Created by Alex Jakimenko # Please include the string: [perl #125816] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125816 > First part is OK, but once we start increasing the number it falls apart. say "x".inde

[perl #125817] chr(999999999999999999999999999) – chr codepoint cannot be negative (LTA)

2015-08-14 Thread via RT
# New Ticket Created by Alex Jakimenko # Please include the string: [perl #125817] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125817 > Code: say chr 999; Result: chr codepoint cannot be negative

[perl #125818] LTA error message: Inf.base(16)

2015-08-14 Thread via RT
# New Ticket Created by Alex Jakimenko # Please include the string: [perl #125818] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125818 > Code: say Inf.base(16) Result: Type check failed in assignment to '$int_part'; expecte

[perl #125819] 255.base(16, -666) and friends

2015-08-14 Thread via RT
# New Ticket Created by Alex Jakimenko # Please include the string: [perl #125819] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125819 > Code: say 255.base(16, -100); Result: FF. Docs say (http://doc.perl6.org/routine/base

[perl #125820] .roll(-9999999999999999999999999999999999999999999999999)

2015-08-14 Thread via RT
# New Ticket Created by Alex Jakimenko # Please include the string: [perl #125820] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125820 > Code: say .roll(-9).perl; Result: it h

[perl #125821] LTA error message when doing .rotate(Inf)

2015-08-14 Thread via RT
# New Ticket Created by Alex Jakimenko # Please include the string: [perl #125821] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125821 > Code: say .rotate(Inf); Result: Earlier failures: No zero-arg meaning for infix:<%>