Re: poll (3) (WAS select (3))

2016-04-30 Thread Kaare Rasmussen
Den 01-05-2016 kl. 01:54 skrev Brandon Allbery: In fact, this is currently being discussed in IRC: OK; seems there's a way out. Thanks for the info; I'll look into it the next time I have a spare moment. /kaare

[perl #128042] [BUG] multi infix fails to respect precedence trait when exported

2016-04-30 Thread via RT
# New Ticket Created by grond...@yahoo.fr # Please include the string: [perl #128042] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=128042 > See IRC log for this day : 02:16 < grondilu> m: module A { multi infix:<§>($,$) is

Re: poll (3) (WAS select (3))

2016-04-30 Thread Brandon Allbery
On Sat, Apr 30, 2016 at 7:49 PM, Brandon Allbery wrote: > On Sat, Apr 30, 2016 at 3:05 PM, Kaare Rasmussen wrote: > >> sub poll(CArray[Pollfd], uint64, uint32) returns int32 is native { * } > > > This, unfortunately, means an array of pointers to Pollfd

Re: poll (3) (WAS select (3))

2016-04-30 Thread Brandon Allbery
On Sat, Apr 30, 2016 at 3:05 PM, Kaare Rasmussen wrote: > sub poll(CArray[Pollfd], uint64, uint32) returns int32 is native { * } This, unfortunately, means an array of pointers to Pollfd structs, not an array of Pollfd structs. NativeCall doesn't support the latter currently,

Re: Difficulty Installing Module on Latest Rakudo Star

2016-04-30 Thread Steve Mynott
Joe, You don't need to specify the --prefix in the panda line just ensure that panda and perl6 are both in the shell path and type "panda install Bailador" I tried this on the Mac with the most recent Rakudo Star and both dependencies Digest and Digest::HMAC installed fine. You may need to

poll (3) (WAS select (3))

2016-04-30 Thread Kaare Rasmussen
Den 30-04-2016 kl. 19:14 skrev Kaare Rasmussen: select(3) is an abysmal API. There's a reason most OSes replaced select(2) with a backward compatibility select(3) and moved on to something poll-like (look for poll(2) or epoll(2)). Well, it's not that I fare better with poll. This

[perl #128041] [JVM] Failing tests for equivalence of Buf objects

2016-04-30 Thread via RT
# New Ticket Created by Christian Bartolomaeus # Please include the string: [perl #128041] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=128041 > Starting with rakudo commit fe2be65806 two tests in S16-io/supply.t start to

Re: select (3)

2016-04-30 Thread Kaare Rasmussen
Den 30-04-2016 kl. 17:20 skrev Brandon Allbery: I'm not sure; it's not documented :/ Also not sure offhand how endianness plays in to select()'s bit vectors if you build them by hand. Which leads to... One shouldn't probably be surprised to see endianness involved in what is described as a

Re: [perl #128038] [BUG] Something is handling the Failure from a .substr in Rakudo

2016-04-30 Thread Elizabeth Mattijsen
> On 30 Apr 2016, at 17:00, Carl Mäsak (via RT) > wrote: > > # New Ticket Created by "Carl Mäsak" > # Please include the string: [perl #128038] > # in the subject line of all future correspondence about this issue. > #

Re: testing with a "warn"

2016-04-30 Thread Elizabeth Mattijsen
> On 29 Apr 2016, at 21:50, Brandon Allbery wrote: > > On Fri, Apr 29, 2016 at 3:47 PM, Brandon Allbery wrote: > Oh, they are resumable exceptions? Useful but rather high cost I'd think. > (Granting that perl6 isn't one of those languages that think

Re: [perl #128039] [BUG] Misleading suggestion in .substr error message for positive index values in Rakudo

2016-04-30 Thread Elizabeth Mattijsen
Fixed with d7698f3de2eb3c326aa , tests needed. > On 30 Apr 2016, at 17:02, Carl Mäsak (via RT) > wrote: > > # New Ticket Created by "Carl Mäsak" > # Please include the string: [perl #128039] > # in the subject line of all future correspondence about this

Re: select (3)

2016-04-30 Thread Brandon Allbery
On Sat, Apr 30, 2016 at 11:06 AM, Kaare Rasmussen wrote: > Shouldn't this be a C style array with two bytes, 0 and 2, or > 0010 ? I'm not sure; it's not documented :/ Also not sure offhand how endianness plays in to select()'s bit vectors if you build them by

Re: select (3)

2016-04-30 Thread Kaare Rasmussen
Den 30-04-2016 kl. 15:57 skrev Brandon Allbery: Note that "nfds" is the highest fd number to check for, plus one. For the naïve implementation, you need to add one here. Right, it wasn't in this example, but it doesn't matter much. my $readfds = CArray[uint8].new(0, 2); What is this

[perl #128039] [BUG] Misleading suggestion in .substr error message for positive index values in Rakudo

2016-04-30 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #128039] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=128039 > m: ''.substr(5).say rakudo-moar 1acf80: OUTPUT«(HANDLED) Start argument to substr out

[perl #128038] [BUG] Something is handling the Failure from a .substr in Rakudo

2016-04-30 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #128038] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=128038 > m: ''.substr(5).handled.say rakudo-moar 1acf80: OUTPUT«True␤» that's one bug * masak

Re: select (3)

2016-04-30 Thread Brandon Allbery
On Sat, Apr 30, 2016 at 4:35 AM, Kaare Rasmussen wrote: > my $nfds = dup(0); > Note that "nfds" is the highest fd number to check for, plus one. For the naïve implementation, you need to add one here. my $readfds = CArray[uint8].new(0, 2); > What is this initialized to? The

Re: [perl #128036] Bug filling hash using $_

2016-04-30 Thread mt1957
More simplified code producing the same error; $_ = 'some message'; my Hash $h = { f1 => $_, } greetings Marcel # New Ticket Created by mt1957 # Please include the string: [perl #128036] # in the subject line of all future correspondence about this issue. #

[perl #128036] Bug filling hash using $_

2016-04-30 Thread via RT
# New Ticket Created by mt1957 # Please include the string: [perl #128036] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=128036 > Hi, Had some strange problem to solve... Could golf it down to the following; *class A {**

[perl #124628] [JVM] doesn't know about signals

2016-04-30 Thread Pepe Schwarz via RT
NQP commit d54d719311 and Rakudo commit 1acf805b6 add a workaround for the lack of actual signal handling on the JVM. Note this is for now limited to SIGINT and SIGKILL, and cannot work for any signal that doesn't want the receiving process to exit.

[perl #128035] Huge repeat counts are considered as negative numbers (‘a’ x 9999999999999999999)

2016-04-30 Thread via RT
# New Ticket Created by Alex Jakimenko # Please include the string: [perl #128035] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=128035 > Code: say ‘a’ x 999 Result: repeat count (-8446744073709551617)

Re: select (3)

2016-04-30 Thread Kaare Rasmussen
Den 30-04-2016 kl. 10:35 skrev Kaare Rasmussen: Variations over [2] give inconclusive results, so I know I'm doing something (probably very basic) wrong. But what? The current incancation tries to dup the STDIN fd to 14, which should be the second last bit in the 2nd uint8. But I've tried

[perl #128034] [LTA] split() wants something unboxable to a native int but not quite (split ‘b’, ‘aba’, NaN)

2016-04-30 Thread via RT
# New Ticket Created by Alex Jakimenko # Please include the string: [perl #128034] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=128034 > Code: say split ‘b’, ‘aba’, NaN Result: This type cannot unbox to a native integer

select (3)

2016-04-30 Thread Kaare Rasmussen
Hi I've been playing on and off with the system call select (3) (http://linux.die.net/man/3/select) in order to learn a bit Perl 6 and NativeCall. But I get no traction, so I'd like to know what I'm doing wrong. Before I start I'd like to wonder a little about the fd usage of moar. Perl 5

Re: testing with a "warn"

2016-04-30 Thread Siavash
http://doc.perl6.org/routine/warn "To simply print to $*ERR, please use note instead. warn should be reserved for use in threatening situations when you don't quite want to throw an exception." And for testing, maybe something like this: use Test; my $warning; { warn 'some

[perl #128031] [JVM] Failing tests for type smileys

2016-04-30 Thread via RT
# New Ticket Created by Christian Bartolomaeus # Please include the string: [perl #128031] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=128031 > Since rakudo commit fe2be65806 there are 5 failing test on rakudo-j in