[perl #127580] [BUG] README/compiler_overview out of date

2016-04-11 Thread Christian Bartolomaeus via RT
The pull request was merged. I'm closing this ticket as 'resolved'.

Re: can a method name contain a funny character?

2016-04-11 Thread Parrot Raiser
I hope I never run across code written by someone who thinks this is a good idea. On 4/11/16, Theo van den Heuvel wrote: > Thanks Larry for the answer and the great language. > > It is quite ok for me to start alphabetically. I use the funny char to > indicate a particular

Re: can a method name contain a funny character?

2016-04-11 Thread Theo van den Heuvel
Thanks Larry for the answer and the great language. It is quite ok for me to start alphabetically. I use the funny char to indicate a particular aspect shared by a bunch of subs operators and methods. So I tried: method term: { "Mel G.".say } However, that gives me: Bogus postfix

[perl #126378] [BUG] "Useless use of variable" warning doesn't show up on -e in Rakudo

2016-04-11 Thread Christian Bartolomaeus via RT
I thought about adding a test for this ticket, but now wonder what the expected output for the evaluation is. As Moritz showed a current Rakudo complains about 'Useless use of "+" in expression "$a + $b" ...'. In masak's original example the warning was about "Useless use of variable $a ...".

Re: can a method name contain a funny character?

2016-04-11 Thread Larry Wall
You have to write it like this: class Foo { method ::('❤') { "mem heart".say } } my Foo $foo .= new; $foo.'❤'(); Other than that, only names beginning alphabetically are allowed. You could work around this on the caller end with a postfix:<❤>, but that would be an

Re: Union

2016-04-11 Thread David Warring
Hi Marcel, With regard to checking for endianess. I don't think there's anything built in NativeCall that directly determines this, but hopefuly the following should do it, without resorting to a C compiler. use NativeCall; sub little-endian returns Bool { my $i = CArray[uint32].new:

Re: Union

2016-04-11 Thread Marcel Timmerman
Hi Thanks for your answer. I was thinking in perl6, I should have been more  explicit. At the moment I am converting Num to a float representation in my  BSON module and was wondering if there where easier ways and maybe faster too. Regards, Marcel --- Forwarded message --- From: Marcel

[perl #127580] [BUG] README/compiler_overview out of date

2016-04-11 Thread Christian Bartolomaeus via RT
I opened a small PR for Rakudo (https://github.com/rakudo/rakudo/pull/740) to remove the relevant section from README.md and to add a warning that docs/compiler_overview.pod is not up to date.

[perl #127589] [META] Blockers for 2016.02 release

2016-04-11 Thread Christian Bartolomaeus via RT
All blockers have been dealt with and the release was done in time. I'm closing this ticket was 'resolved'.

[perl #127593] t/spec/S02-types/WHICH.t

2016-04-11 Thread Christian Bartolomaeus via RT
Both failing tests where removed with commit https://github.com/perl6/roast/commit/c73db6b5c1 (6.c-errata branch). I'm closing this ticket as 'resolved'.

[perl #127592] t/spec/integration/weird-errors.

2016-04-11 Thread Christian Bartolomaeus via RT
The test was relaxed with commit https://github.com/perl6/roast/commit/a069b922c9 (6.c-errata branch). I'm closing this ticket as 'resolved'.

[perl #127590] t/spec/S32-temporal/DateTime.t

2016-04-11 Thread Christian Bartolomaeus via RT
The faulty test was fixed in the 6.c-errata branch with commit 6af3c5b5de. I'm closing this ticket as 'resolved'.

Re: [perl #127878] UTF8-C8 + Str.subst either dumps core or corrupt memory

2016-04-11 Thread Moritz Lenz
On 04/11/2016 03:04 PM, Nicholas Clark wrote: On Mon, Apr 11, 2016 at 04:39:59AM -0700, H. Merijn Brand wrote: In a one-liner: $ p6 -e'my$b=Buf.new(61,^2048 .map({256.rand.Int}));my Str $u=$b.decode("utf8-c8");$u.=subst(/("a"|"b")/,{"c$0"},:g);' Segmentation fault or (same code) With

Union

2016-04-11 Thread Marcel Timmerman
Hi, While the perl language already offers so much I have a question not found in perl Is there anything like the C union to do an easy mapping from some native variable to a buf of the same number of bytes? This is a nice helper for pack/unpack for native values. It is important to know

[perl #127681] [OSX] Precomp hangs forever when something writes to $*ERR

2016-04-11 Thread Christian Bartolomaeus via RT
The author of this ticket reported a golfed version of this bug as https://rt.perl.org/Ticket/Display.html?id=127682 As requested in that new ticket, I'm closing (rejecting) this ticket.

[perl #127408] LTA error message “cannot find method CALL-ME” ( *(42) )

2016-04-11 Thread Christian Bartolomaeus via RT
This fails now with X::Method::NotFound and the error message has some more informations: $ perl6-m -e '*(42)' No such method 'CALL-ME' for invocant of type 'Whatever' in block at -e line 1 I added a simple test to S02-types/whatever.t with commit

Re: [perl #127878] UTF8-C8 + Str.subst either dumps core or corrupt memory

2016-04-11 Thread Nicholas Clark
On Mon, Apr 11, 2016 at 04:39:59AM -0700, H. Merijn Brand wrote: > In a one-liner: > > $ p6 -e'my$b=Buf.new(61,^2048 .map({256.rand.Int}));my Str > $u=$b.decode("utf8-c8");$u.=subst(/("a"|"b")/,{"c$0"},:g);' > Segmentation fault > > or (same code) With timotimo's commit from this afternoon:

[perl #127382] [PERF] memory leak slurp

2016-04-11 Thread Christian Bartolomaeus via RT
I was able to reproduce the problem with rakudo 2016.01.1 on Linux. It seems to be fixed now (maybe with rakudo commit 241e5e5847): $ ls -lh 126372.data -rw-r--r-- 2 christian christian 48M Apr 11 14:07 126372.data $ time ./perl6-m -e 'my $content = slurp "126372.data", :bin; say

[perl #127878] UTF8-C8 + Str.subst either dumps core or corrupt memory

2016-04-11 Thread via RT
# New Ticket Created by H. Merijn Brand # Please include the string: [perl #127878] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=127878 > The code I used to reproduce: --8<--- #!perl6 use v6; my Buf $b = Buf.new(61,

[perl #127779] Inconsistency with non-int $k in “combinations” (combinations 2, 0.5)

2016-04-11 Thread Christian Bartolomaeus via RT
The implementation has changed with rakudo commit f220a5ed so that Int() is called on $k (and $n). The examples work consistently now, but it looks like there are no tests for this in roast: $ perl6-m -e 'say combinations 2, 0.5' (()) $ perl6-m -e 'say combinations 2, 1.5' ((0) (1)) $

[perl #127778] negative $n in “combinations” (combinations -999999999999999999, 2)

2016-04-11 Thread Christian Bartolomaeus via RT
This works consistently now: $ perl6-m -e '.say for combinations -999, 2' () $ perl6-m -e '.say for combinations -99, 2' () Calling combinations with a negative $k gives an empty list: $ perl6-m -e 'say combinations 4, -2' () I added tests for this behaviour to

[perl #126800] Shaped arrays with negative sizes (my @a[-9999999999999999])

2016-04-11 Thread Christian Bartolomaeus via RT
I added the above examples as tests to S02-types/array-shapes.t with commit https://github.com/perl6/roast/commit/a2617480f4 I'm closing this ticket as 'resolved'.

[perl #127777] LTA error message when using permutations with negative parameter (permutations -1)

2016-04-11 Thread Christian Bartolomaeus via RT
I addes a test to S32-list/permutations.t with commit https://github.com/perl6/roast/commit/30db58671d I'm closing this ticket as 'resolved'.