Re: Help with promises, supplies and channels.

2022-04-08 Thread William Michels via perl6-users
Wow that was fast! Thanks Liz! On Thu, Apr 7, 2022 at 3:25 AM Elizabeth Mattijsen wrote: > Fixed with > https://github.com/rakudo/rakudo/commit/5658f4da07b44d492a3d35d57fa76939822d2c66 > > Thanks for the report! > > > On 7 Apr 2022, at 11:28, David Emanuel da Costa Santiago < >

Re: Help with promises, supplies and channels.

2022-04-07 Thread Elizabeth Mattijsen
Fixed with https://github.com/rakudo/rakudo/commit/5658f4da07b44d492a3d35d57fa76939822d2c66 Thanks for the report! > On 7 Apr 2022, at 11:28, David Emanuel da Costa Santiago > wrote: > > > Thanks for the information! > > I opened a bug in rakudo: > >

Re: Help with promises, supplies and channels.

2022-04-07 Thread David Emanuel da Costa Santiago
Thanks for the information! I opened a bug in rakudo: https://github.com/rakudo/rakudo/issues/4853 Regards, David Santiago Às 05:27 de 07/04/22, yary escreveu: For what it's worth, I'm on a mac, promise_test.raku hangs for me once in a while also. Welcome to Rakudo(tm) v2021.04.

Re: Help with promises, supplies and channels.

2022-04-06 Thread yary
For what it's worth, I'm on a mac, promise_test.raku hangs for me once in a while also. Welcome to Rakudo(tm) v2021.04. Implementing the Raku(tm) programming language v6.d. Built on MoarVM version 2021.04. Trying to reduce it, I would like to find a program that reliably tickles this bug and

Re: Help with promises, supplies and channels.

2022-04-05 Thread William Michels via perl6-users
Thanks for the bash loop. I'm seeing a few hangs, also some errors returned saying: "Unhandled exception in code scheduled on thread 4" (MacOS 11.11) On Tue, Apr 5, 2022 at 12:47 PM David Emanuel da Costa Santiago < deman...@gmail.com> wrote: > > Hi William, > > when it fails or hangs it

Re: Help with promises, supplies and channels.

2022-04-05 Thread David Emanuel da Costa Santiago
Hi William, when it fails or hangs it doesn't print the last line. Please check attached file for output of the stack. Since the failures are random, it's easier to invoke it in a loop: bash$ for i in $(seq 100); do raku test.raku; done If nothing is wrong with the code, i'll open a bug in

Re: Help with promises, supplies and channels.

2022-04-05 Thread William Michels via perl6-users
No problems so far. say $*VM; #add as last line, returns: moar (2021.06) On Tue, Apr 5, 2022 at 11:06 AM David Emanuel da Costa Santiago < deman...@gmail.com> wrote: > Hi, > > > > I'm trying to learn about promises, supplies and channels. So i made > this code: > > """ > > my $p1 =

Help with promises, supplies and channels.

2022-04-05 Thread David Emanuel da Costa Santiago
Hi, I'm trying to learn about promises, supplies and channels. So i made this code: """ my $p1 = Supply.interval(5); my $p2 = Supply.interval(2); my Channel $ch = Channel.new; my $prom = start react { whenever $p1 -> $interval { say "5"; } whenever $p2 -> $interval {