»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'p6: say 3;' or rakudo:, or /msg camelia p6: ... | irclog: irc.perl6.org or colabti.org/irclogger/irclogger_logs/perl6 | UTF-8 is our friend!
Set by moritz on 22 December 2015.
00:00 pharv left 00:04 cdg joined 00:06 w_richard_w joined 00:07 cdg left 00:08 cdg_ left 00:10 comborico1611 left 00:14 pharv joined 00:17 |oLa| left 00:18 pharv left 00:20 cdg joined 00:21 bwisti left 00:23 |oLa| joined 00:24 mcmillhj joined 00:25 cdg left 00:26 pierre joined 00:29 mcmillhj left 00:31 markong left 00:32 bwisti joined 00:38 mcmillhj joined 00:42 mcmillhj left 00:52 skids joined 00:54 mcmillhj joined 00:58 mcmillhj left 01:03 noganex left 01:06 mcmillhj joined 01:10 mcmillhj left 01:12 athenot left 01:13 athenot joined 01:14 Kaiepi left 01:17 Zoffix joined 01:18 mcmillhj joined
Zoffix FWIW: my vacation at $work started and I'm gonna go into isolation until Apr. 6, to enjoy it. I might make some commits to repos, but I'll be ignoring all notifications. If I break something, just revert or fix the commit, as I won't see the notification about breakage. If pmichaud comes around; rakudo.org domain is ready for move, per github.com/perl6/perl6.org/issues/...-373971373 01:21
01:22 Zoffix left 01:23 mcmillhj left 01:27 wamba left 01:35 cdg joined 01:38 mcmillhj joined 01:42 mcmillhj left 01:45 itaipu joined, TreyHarris left 01:57 mcmillhj joined 02:01 cdg left 02:02 mcmillhj left
Herby_ exit 02:05
...
02:08 Kaiepi joined 02:09 mcmillhj joined 02:10 Herby_ left, herby_ joined 02:13 lichtkind left 02:14 mcmillhj left
Kaiepi m: sub foo(--> Callable[Int]) { sub (Int $_ --> Int) { $_ + 1 } }; say foo()(1) 02:15
camelia 2
Kaiepi oh
02:18 aindilis left, aindilis joined 02:19 aindilis left 02:20 aindilis joined, aindilis left 02:23 mcmillhj joined 02:26 cdg joined 02:28 mcmillhj left 02:30 cdg left 02:41 pierre left 02:42 mcmillhj joined 02:46 ilbot3 left 02:47 mcmillhj left 02:50 pierre joined 02:54 pierre left 02:55 ilbot3 joined, ChanServ sets mode: +v ilbot3 02:57 mcmillhj joined 02:58 herby_ left 03:01 pharv joined 03:02 TreyHarris joined, mcmillhj left 03:04 enheh left 03:05 pierre joined, pharv left 03:16 eliasr left 03:17 mcmillhj joined 03:22 mcmillhj left 03:24 AlexDaniel left 03:25 lichtkind joined 03:29 mcmillhj joined 03:33 mcmillhj left 03:35 itaipu left 03:40 ufobat_ joined 03:44 mcmillhj joined, ufobat___ left, kini joined 03:48 mcmillhj left 03:50 kini left, skids left 03:54 mtj_ joined 04:00 aindilis joined 04:02 mcmillhj joined 04:04 kini joined 04:07 mcmillhj left 04:13 khw left 04:18 mcmillhj joined 04:21 eckhardt joined 04:23 mcmillhj left 04:31 mcmillhj joined 04:36 mcmillhj left, pierre left 04:44 pierre joined 04:45 mcmillhj joined 04:48 TreyHarris left, pierre left 04:50 mcmillhj left 04:56 wamba joined 05:02 pharv joined, cdg joined 05:03 pierre joined, mcmillhj joined 05:06 cdg left, pharv left 05:07 pierre left 05:08 mcmillhj left 05:12 eckhardt left 05:21 pierre joined 05:23 mcmillhj joined 05:25 pierre left 05:28 mcmillhj left 05:34 donpdonp joined
donpdonp ive got $socket.Supply(:bin).tap(receive); which works with a -> $buf {} but if I use sub receive($buf) {} 05:34
I get Calling receive() will never work with declared signature
i would have thought the lambda and the receive sub would be equivalent. 05:35
05:36 vike left 05:38 mcmillhj joined 05:43 mcmillhj left 05:45 sauvin_ joined 05:52 mcmillhj joined 05:57 mcmillhj left 06:00 pierre joined 06:04 mcmillhj joined 06:09 mcmillhj left 06:17 dalek left, dalek joined, ChanServ sets mode: +v dalek 06:20 JMERELO joined
JMERELO Hi 06:21
06:23 mcmillhj joined 06:28 mcmillhj left 06:31 rindolf joined 06:32 wamba left 06:33 pierre left
JMERELO I've created a repo for my activity during the Perl6/doc grant github.com/JJ/TPF-Grant/ 06:41
I'll be obviusly looking at the issues in perl6/doc, but if you want me to do something specific, or check out the progress report, or whatever, just set a watch there 06:42
06:44 lowbro joined, lowbro left, lowbro joined 06:45 sauvin_ is now known as bocaneri 06:46 pmurias joined 06:53 darutoko joined 06:54 mcmillhj joined 06:56 domidumont joined 06:58 mcmillhj left 07:04 domidumont left, domidumont joined, parv joined 07:05 pierre joined, thgilfodrol joined, mcmillhj joined
Kaiepi m: my Int @a = [1,2,3] 07:07
camelia ( no output )
Kaiepi m: my Int @a = [1,2,3]; say @a
camelia [1 2 3]
Kaiepi m: my Int @a := [1,2,3]; say @a
camelia Type check failed in binding; expected Positional[Int] but got Array ($[1, 2, 3])
in block <unit> at <tmp> line 1
Kaiepi is this supposed to happen? 07:08
JMERELO m: my Array[Int] @a = [1,2,3] 07:09
camelia Type check failed in assignment to @a; expected Array[Int] but got Int (1)
in block <unit> at <tmp> line 1
JMERELO @Kaiepi yep, @a is supposed to be an Int, and you're assigning it to an array instead 07:10
07:10 mcmillhj left
donpdonp Kaiepi: this might be helpful docs.perl6.org/language/operators#infix_:= 07:14
Kaiepi ah ok 07:17
m: my Int @a = [1,2,3]; my Int @b := @a 07:18
camelia ( no output )
07:21 mcmillhj joined 07:22 darutoko left 07:26 hoelzro_ joined, mcmillhj left, dalek left, athenot left, bwisti left, Possum left, joy left, synopsebot left, stux|RC left, SourceBaby left, jeek left, thowe left, khisanth__ left, aeruder left, committable6 left, jeek joined, yubimusubi joined, stux|RC-only joined, aeruder joined, khisanth__ joined, SmokeMachine joined 07:27 athenot joined, joy joined 07:28 dalek joined, ChanServ sets mode: +v dalek, kurahaupo_ left, yoleaux left, bwisti joined, thowe joined, synopsebot joined, ChanServ sets mode: +v synopsebot, SourceBaby joined, ChanServ sets mode: +v SourceBaby, S007 joined, bisectable6 left, squashable6 left 07:29 unicodable6 left, greppable6 left, reportable6 left, releasable6 left, evalable6 left, shareable6 left 07:30 shareable6 joined, bloatable6 joined, releasable6 joined, evalable6 joined, reportable6 joined, unicodable6 joined, greppable6 joined, statisfiable6 left, benchable6 left, benchable6 joined, statisfiable6 joined 07:33 eroux joined 07:34 dct joined 07:38 JMERELO left 07:45 dct left 07:50 noganex joined 07:51 lookatme left 07:52 lookatme joined, mcmillhj joined 07:53 leah2 left 07:56 ecocode joined 07:57 mcmillhj left, Grauwolf_ joined 07:59 leah2 joined 08:01 robertle joined, CIAvash[m] joined 08:05 mcmillhj joined
timotimo donpdonp: i think you wanted .tap(&receive) rather than .tap(receive) 08:08
the latter immediately calls receive and uses the return value of receive() as the function to tap with
08:09 mcmillhj left
donpdonp timotimo: ah yes, thx! 08:18
perl6 has everything :)
08:20 mniip joined 08:22 committable6 joined, pierre left 08:23 pierre joined, mcmillhj joined 08:26 bisectable6 joined, squashable6 joined, ChanServ sets mode: +v squashable6 08:27 lookatme left, pierre left 08:28 lookatme joined, mcmillhj left 08:29 mr_ron left 08:34 mcmillhj joined 08:39 mcmillhj left 08:40 dakkar joined 08:45 mcmillhj joined 08:50 mcmillhj left 08:53 coverable6 joined, quotable6 joined, ChanServ sets mode: +v coverable6, ChanServ sets mode: +v quotable6 08:55 mcmillhj joined 08:58 lookatme left 09:00 mcmillhj left 09:02 cdg joined 09:03 pharv joined 09:05 parv left 09:07 mcmillhj joined 09:08 pharv left, cdg left 09:09 Grauwolf_ is now known as Grauwolf 09:10 vike joined 09:11 w_richard_w left, mcmillhj left
robertle m: my $l = Lock.new; $l.protect({ say "woo"; }) 09:17
camelia woo
robertle m: my $l = Lock.new; $l.protect({});
camelia Attempt to unlock mutex by thread not holding it
in block <unit> at <tmp> line 1
robertle surprising!
lizmat indeed 09:21
but maybe not
m: dd {}
camelia Hash % = {}
lizmat m: my $l = Lock.new; $l.protect({ ... });
camelia Stub code executed
in block <unit> at <tmp> line 1
lizmat robertle: so you're feeding Lock.protect a Hash 09:22
09:23 pierre_ joined
lizmat It think this warrants a GH Issue :-) 09:23
that error is LTA 09:24
robertle ah! 09:25
hm, there isn't really any valid use case for feeding protect anything that isn't callable, right? 09:26
09:27 yoleaux joined, ChanServ sets mode: +v yoleaux
robertle it is a slightly misleading error message, but admittedly not a very useful thing to do anyway. but it can happen during development when you comment out code from the protected block 09:28
m: my &t = {}; 09:34
camelia Type check failed in assignment to &t; expected Callable but got Hash (${})
in block <unit> at <tmp> line 1
robertle isn't it also surprising that the &code in the protect() signature doesn't constrain it to a callable in a similar manner as tghe assignment does?
m: my sub dosth(&code) { ...}; dosth(1); 09:35
camelia Type check failed in binding to parameter '&code'; expected Callable but got Int (1)
in sub dosth at <tmp> line 1
in block <unit> at <tmp> line 1
robertle m: my sub dosth(&code) { ...}; dosth({});
camelia Type check failed in binding to parameter '&code'; expected Callable but got Hash (${})
in sub dosth at <tmp> line 1
in block <unit> at <tmp> line 1
pmichaud good evening, #perl6 09:36
yoleaux 10 Mar 2018 01:56Z <Zoffix> pmichaud: do you got Rakudo's logo in vector or at least high-res format? This one rakudo.org/wp/wp-content/uploads/20...o-1001.png
10 Mar 2018 02:25Z <Zoffix> pmichaud: Actually, I found a large one in our marketing repo, but if you have a vector version, wouldn't hurt to add it there too: github.com/perl6/marketing/blob/ma...x-3000.png
11 Mar 2018 17:23Z <Zoffix> pmichaud: timotimo I'm on it
12 Mar 2018 03:20Z <Zoffix> pmichaud: I think it's best to wait until your return on Apr 1 before moving the site, rather than rush everything for Mar 14—I'd like to take extra time to ensure all the old links still map to something sane on the new site. I already got majority of the content up (other than binaries and the new pages we're adding) and put up a demo for you, if you wanted to look at progress so far:
12 Mar 2018 03:20Z <Zoffix> pmichaud: hack.p6c.org:4242/
12 Mar 2018 10:23Z <Zoffix> pmichaud: also the Rakudo Star release manager decided to have a shit fit. Added this page hours after told him we were re-designing the site perl6.org/downloads/others.html and now that he's seen my demo hack.p6c.org:4242/files says he oposes it because it's "confusing" and will resign as release manager
12 Mar 2018 13:24Z <Zoffix> pmichaud: nevermind; there appears to have been confusion on what site is even changing: github.com/perl6/perl6.org/issues/96
18 Mar 2018 04:03Z <Zoffix> pmichaud: new rakudo.org is good to go. Just need to move the domain. More info: github.com/perl6/perl6.org/issues/...-373971373
09:37 scimon joined
pmichaud Coming to you tonight from the Hotel Chinzanso Tokyo :) 09:37
masak pmichaud! \o/
moritz \o pmichaud 09:38
pmichaud masak! o/ 09:39
moritz! o/
lizmat pmichaud o/ 09:40
masak just like old times :)
pmichaud except that at the moment I'm in a timezone that is ahead of most of you :) 09:41
lizmat o/
masak I thought "Hotel Chinzanso Tokyo" sounded vaguely Asian :P
pmichaud More than that, "chinzanso" seems to have a perl6-ish connection :) 09:42
masak "House of Camellia"! o.O 09:43
en.wikipedia.org/wiki/Chinzan-so
pmichaud Indeed. :) 09:44
El_Che pmichaud: log trip? 09:46
09:47 mr_ron joined
masak imagines pmichaud floating across the Pacific on a log 09:47
well, we all know the importance of logging, so...
pmichaud Anyway, I felt a desire to share this little connection to Perl 6 from the land of the Rising Sun. The garden (and hotel grounds) are very beautiful here. We should have a conference or event here some day. :) 09:50
masak +1
pmichaud I'll check back in a week or so, I think 09:56
happy spring equinox to all
masak likewise!
10:30 lowbro left 10:32 dogbert2 joined 10:33 dogbert2 left 10:37 dogbert2 joined 10:38 wamba joined 10:40 enheh joined 10:55 wamba left 11:03 pierre_ left 11:04 pharv joined 11:09 pharv left 11:26 S007 left 11:33 kurahaupo joined 11:38 Guest6 joined
tbrowder_ hi, #perl6 11:42
pmurias p6up.github.io/ - mockup p6up installer page 11:43
tbrowder_: \o/ 11:44
tbrowder_ continuing experimenting with toasting modules, i have found some that always hang and cannot (that i can find) be killed by toaster.
pmurias: \o/ 11:45
pmurias now we need an actuall p6up installer ;)
tbrowder_ toaster can ignore those for testing primarily, but not when testing other modules that depend on them. 11:46
so i’m still getting hangers. my next trials will be with using this zef command: zef —force install module; zef test module 11:49
11:49 S007 joined
tbrowder_ to try to decouple the dependency test failure from the primary installation during toasting. 11:50
11:50 abraxxa joined 11:51 abraxxa left
tbrowder_ eventually i would like toast results to show, for each module, its test results along with its dependencies and their test results. 11:53
pmurias: it looks inviting! how will it affect my existing rakudo setup if i try it? 11:56
11:58 Guest6 left 12:02 itaipu joined
pmurias tbrowder_: it's a pure mockup at this point so it doesn't work at all yet ;) 12:08
tbrowder_ gotcha! 12:09
12:14 eliasr joined
[Coke] Anyone here attending tpc us 2018? 12:15
lizmat 12:24
12:24 enheh left 12:25 enheh_ joined 12:30 wamba joined 12:40 mcmillhj joined 12:45 AlexDaniel joined 12:46 darutoko joined 12:50 pecastro left
DrForr [Coke]: Planning to, yes. 12:51
[Coke] is trying to determine if he's coming for anything other than the main event.
12:52 eroux left
DrForr Well, I'm doing a tutorial, but I suspect that most of the peeps here don't need it. 12:53
12:55 cdg joined
DrForr And I'm setting up an Origami BOF, though I don't know what day they'll block out. That does make the whole thing a bit logistically awkward, because though I'm going to be there all week, others may not, and if their BOF gets arranged for a day they're not planning to be there (I'm thinking the last 3 days) they won't be there for tehir own BOF. 12:59
Geth marketing: 79aed7ba58 | (Zoffix Znet)++ | 6 files
Update "Introducing Perl 6" Brochure to rev2

  - Add revision marker on last page
  - Make all links proper HyperLink objects to prevent issues with readers
   auto-guessing URLs wrong. Fixes github.com/perl6/marketing/issues/6
  - Fix typos and minor font weight/color issues.
   Fixes github.com/perl6/marketing/issues/4
12:59 cdg left 13:00 cdg joined
DrForr plugs some more edge cases. 13:00
Geth marketing: 71691dc489 | (Zoffix Znet)++ | 3 files
Update pub "Introducing Perl 6" Brochure PDFs to rev 2
13:01
13:03 wamba left 13:04 vcv joined 13:14 pierre__ joined
Geth marketing: 3b351b9616 | (Zoffix Znet)++ | 5 files
Fix inconsistent time on "Rakudo Concise" poster

Fixes github.com/perl6/marketing/issues/5
13:17
13:20 mcmillhj left, scimon left, mcmillhj joined 13:24 scimon joined, yubimusubi left 13:28 SourceBaby left, SourceBaby joined, ChanServ sets mode: +v SourceBaby 13:29 vcv left 13:30 vcv joined 13:31 SourceBaby left 13:32 scimon left, SourceBaby joined, ChanServ sets mode: +v SourceBaby 13:33 SourceBaby left, enheh_ left 13:35 SourceBaby joined, ChanServ sets mode: +v SourceBaby 13:36 scimon joined 13:39 abraxxa joined 13:42 skids joined 13:56 Possum joined 14:01 vcv left 14:03 vcv joined 14:09 khw joined 14:16 darutoko- joined 14:18 telnet joined 14:19 darutoko left
tbrowder_ ref hanging modules: i have found the following modules hang during toasting and cannot be killed by the job: 14:22
AlexDaniel please file a ticket for every module that does that 14:24
(there are some tickets already, by the way) 14:25
tbrowder_ OO::Actors, Test::Scheduler, IO::Socket::Async::SSL, and Event::Emitter::Inter-Process
AlexDaniel: WILCO
AlexDaniel yeah, first two already have a ticket 14:27
tbrowder_ ticket at each url, roger, anywhere else?
14:32 scimon left, scimon joined 14:36 athenot left 14:37 athenot joined 14:47 mr_ron left, pierre__ left 14:48 markong joined 14:56 unicodable6 left 14:57 unicodable6 joined, ChanServ sets mode: +v unicodable6 14:59 mr_ron joined 15:08 juih joined
tbrowder_ AlexDaniel: all the modules i lsted have an issue filed about tests hanging 15:11
AlexDaniel cool
15:17 juih left 15:28 vcv left 15:29 vcv joined 15:37 comborico1611 joined, thundergnat joined 15:38 athenot left
thundergnat Heya perl6. 15:38
15:40 athenot joined
lizmat thundergnat o/ 15:41
thundergnat Sometime in the past year, it seems that the bigInt, bigInt candidate for %% got changed so it no longer handles them. It _used_ to. I know it worked in 2016.10
m: say 23067200747291880127814827277075079921671259751791 %% 100000000000000000000000000000000000000000000000577;
camelia Cannot unbox 164 bit wide bigint into native integer
in block <unit> at <tmp> line 1
thundergnat That _used_ to work... 15:42
lizmat thundergnat: please make a GH issue :-) 15:44
thundergnat Ok.
15:44 troys joined
MasterDuke bisectable6: say 23067200747291880127814827277075079921671259751791 %% 100000000000000000000000000000000000000000000000577 15:47
bisectable6 MasterDuke, Bisecting by exit code (old=2015.12 new=f4255d5). Old exit code: 0
MasterDuke, bisect log: gist.github.com/0c0a04c16226bb8117...dee18ad4b8
MasterDuke, (2017-02-22) github.com/rakudo/rakudo/commit/75...7f93def3d3
MasterDuke thundergnat, lizmat: ^^^ 15:48
thundergnat MasterDuke: Thanks, I'll include that in the ticket.
15:48 darutoko- left 15:53 domidumont left 16:01 Voldenet joined, Voldenet left, Voldenet joined 16:05 JMERELO joined
thundergnat Issue submitted: R#1640 16:06
synopsebot R#1640 [open]: github.com/rakudo/rakudo/issues/1640 %% fails with bigInt, bigInt arguments
16:11 athenot left 16:14 robertle left
lizmat thundergnat++ # close to a fix :-) 16:14
16:15 comborico1611 left
thundergnat lizmat: woot! 16:15
lizmat m: use nqp; say nqp::not_i(23067200747291880127814827277075079921671259751791) 16:16
camelia Cannot unbox 164 bit wide bigint into native integer
in block <unit> at <tmp> line 1
lizmat was the underlying issue
m: use nqp; say !23067200747291880127814827277075079921671259751791
camelia False
lizmat the fix
16:18 bdmatatu joined
bdmatatu p6: say (^40).grep( / (.)'4' / ).map({ $/[0] }) 16:23
camelia (Nil Nil Nil)
bdmatatu Hi folks, what's a good way to do something like the above? (since the match object doesn't seem to be available)
timotimo bdmatatu: use -> $/ { $/[0] } or just { .[0] } 16:24
or *[0]
AlexDaniel m: say (^40).map({/ (.)'4' / ?? $0 !! Empty}) 16:25
camelia (「1」 「2」 「3」)
moritz or
say (^40).grep( / . )> '4' / )
evalable6 (14 24 34)
JMERELO Hi, @timotimo. Can you help with this concurrent thingie I'm trying to build? I replied to your comment in StackOverflow here stackoverflow.com/questions/493698...8_49369853 pointing to this code github.com/JJ/my-perl6-examples/bl...current.p6
moritz erm
say (^40).grep( / . <( '4' / )
evalable6 (14 24 34) 16:26
moritz why doesn't )> work here?
AlexDaniel because it only checks, it doesn't map
moritz ah, right
say (^40).grep( / . <( '4' / ).map({$_})
evalable6 (14 24 34)
moritz say (^40).grep( / . )> '4' / ).map({$_})
evalable6 (14 24 34)
moritz meh
moritz not thinking straight 16:27
AlexDaniel bdmatatu: so, is my solution good enough? 16:29
bdmatatu I think that's the only one of the above that works 16:30
moritz say (^40).grep( * % 10 == 4 ).map( (*/10).Int) 16:31
evalable6 (0 1 2 3)
moritz say (^40).grep(*>10).grep( * % 10 == 4 ).map( (*/10).Int)
evalable6 (1 2 3)
JMERELO @moritz nice trick :-)
16:32 darutoko joined
bdmatatu I have some files with names including foo-001.json, foo-002.json (among others) and was trying to a grep + map to get 001, 002,... 16:34
But I suppose I could just do the map with a ternary and skip the grep 16:36
jnthn m: say <foo-001.json foo-002.json foo-042.json>.map(*.comb(/'-' <( \d+ )> '.'/)).flat
camelia (001 002 042)
jnthn m: say <foo-001.json foo-002.json foo-042.json nonum.json>.map(*.comb(/'-' <( \d+ )> '.'/)).flat
camelia (001 002 042)
moritz m: <bla foo-001.json foo-002.json bar>.map({/'-'<(\d+)>'.json'/}).grep(?*)
camelia Invocant of method 'match' must be a type object of type 'Any', not an object instance of type 'Regex'. Did you forget a 'multi'?
in block <unit> at <tmp> line 1
moritz m: <bla foo-001.json foo-002.json bar>.map({m/'-'<(\d+)>'.json'/}).grep(?*) 16:37
camelia ( no output )
moritz m: say <bla foo-001.json foo-002.json bar>.map({m/'-'<(\d+)>'.json'/}).grep(?*)
camelia (「001」 「002」)
moritz m: say <bla foo-001.json foo-002.json bar>.map({m/'-'<(\d+)>'.json'/}).grep(?*).map(~*)
camelia (001 002)
moritz a bit weird, but *finally* I got to use <( and )> in a regex :-)
jnthn Think I prefer my flat comb solution ;) 16:39
But yeah, that also works :) 16:40
bdmatatu <( and )> look pretty useful, thanks 16:41
16:41 cog_ left
moritz m: say gather for <bla foo-001.json foo-002.json bar> { take ~$/[0] if m/'-' (\d+) '.json'/ } 16:43
camelia (001 002)
moritz simple to reason about :-)
16:43 cfa joined
JMERELO So I want to create a new Channel that groups elements in a base Channel. I'm using this my $c2 = $c.Supply.batch( elems => 2).Channel; 16:43
moritz JMERELO: I've already seen similar things on stackoverflow; why are you so eager to turn Supplies into Channels? 16:44
JMERELO It simply hangs up. I initially tried to use Supplies, but you can't run them concurrently
@moritz not really. I tried @timotimo answer, but the problem is that turning a channel into a list blocks it if there's no supply available. 16:45
OK, back to basics. I want to do this. I have a channel and I want to do stuff to individual elements in a channel, but concurrently I want to do stuff to couples of elements in the channel. 16:46
moritz JMERELO: why not work with the supplies directly?
16:46 robertle joined
JMERELO @moritz they are supposed to not be concurrent, I guess. 16:46
moritz channels are also for serializing things 16:47
JMERELO This is the code with supplies
my $length = 32;
my $supplier = Supplier.new; 16:48
my $supply = $supplier.Supply;
my $pairs = $supply.batch( elems => 2 );
$supply.tap( -> $v { say "First : ", $v });
$supply.tap( -> $χ { say max-ones( $χ ) } );
$pairs.tap( -> @pair { say crossover( @pair[0], @pair[1] )} );
moritz you can do something like while my $elem = $channel.receive() { start { do something with $elem } }
JMERELO for 1 .. 10 {
timotimo please don't paste code directly into irc, thanks
JMERELO $supplier.emit( random-chromosome($length) );
}
mst JMERELO: pasting directly into an IRC channel creates an unreadable mess
JMERELO @timotimo OK. What's the best way to do it?
mst please consider using e.g. github's gist or fpaste.scsys.co.uk/
JMERELO @mst will do. Thanks.
mst also note that on IRC you address people with 'mst:', twitter-style is weird 16:49
timotimo not only does it allow others to write in between your lines, but also - in order for the server to not kick you for spam - your client spreads it out at about 1 line per second
JMERELO You have probably noticed I'm not too familiar with IRC. Sorry. mst: timotimo:
Anyway, here's the code github.com/JJ/p6-algorithm-evoluti.../supply.p6 16:50
16:51 TreyHarris joined
timotimo JMERELO: do you realize you've closed the $c channel that $more-work is supposed to send stuff to in line 5? 16:51
JMERELO Works pretty well, but I would like the two taps to run concurrently. That's why I tried channels, but then I realized it's not easy to do that with channels.
timotimo: no. So stupid. 16:52
timotimo that doesn't fix it, though
JMERELO timotimo: does not make it any less stupid. 16:53
Took it down to this gist.github.com/JJ/47c5988e661291c...9262992c17 It simply hangs up. 16:55
16:55 abraxxa left
moritz maybe you really want to something with .hyper.map with two parallel jobs or so? 16:55
thundergnat Is there any way to modify the .pos of a match from inside a Grammar? I'm trying to update this code: rosettacode.org/wiki/Names_to_numbers#Perl_6 to work with modern Rakudo and this is a major stumbling block. See the .trimspace method, last line.
JMERELO moritz: maybe. Tell me more...
moritz JMERELO: 6guts.wordpress.com/2017/03/16/con...semantics/ 16:56
JMERELO moritz: Not sure. It's nice, but I would need the left hand side of the .hyper to be generated dynamically. 16:59
moritz: that is, to be a channel or supply
17:00 pharv joined 17:01 darutoko left, darutoko joined
JMERELO This one works a tiny bit better: gist.github.com/JJ/47c5988e661291c...9262992c17 Spits numbers for a while, then hangs. 17:03
If I stop re-sending what's been read to the channel, it spits _less_ numbers and then hangs.
17:06 athenot joined
jnthn my $work = start react whenever $c -> $item { $c.send( $item ); 17:08
...is that meant to be sending to itself forever?
JMERELO jnthm: there's a counter to make it stop after some time. But in a first approximation, yes.
jnthn Well, until somebody closes it, and then it will potentially die on the .send
El_Che JMERELO: /nick jmerelo 17:09
JMERELO: it seems you're screaming :)
17:09 JMERELO is now known as jmerelo
jmerelo El_Che: Thanks 17:09
El_Che way beter :)
who said the Spanish always yell ;) 17:10
17:10 athenot left
jmerelo El_Che: and wave hands \o/ 17:10
El_Che that's the Italian :) 17:11
jmerelo: who's your grant manager, by the way?
jmerelo El_Che: :-)
El_Che: Mark Jensen 17:12
I kinda got this concurrent Fibonacci to work github.com/JJ/my-perl6-examples/bl...current.p6
El_Che jmerelo: I don't know him personally 17:13
jmerelo: I love channels as well
nice
jmerelo El_Che: Likewise.
El_Che: the thing is to keep the stuff moving as long as you take only one element from the channel. 17:14
El_Che I find them easy to conceptualize in my head
the other stuff less so
:)
17:15 athenot joined
jnthn uses Channel much less than Promise and Supply, but that's probably a reflection of the problems he works on 17:18
jmerelo :jnthn I couldn't figure out how to that with Promises.
El_Che jnthn: I know you are a promise guy
:)
timotimo well, promises are for single values, and you really want multiple values over time 17:19
17:20 comborico1611 joined
jmerelo It hangs now after the last sentence... github.com/JJ/my-perl6-examples/bl...current.p6 17:24
17:25 scimon left
jnthn jmerelo: I didn't say they are the right tool for your task :) 17:25
I think Channel may actually be the right thing here
jmerelo: $output is never closed 17:30
jmerelo jnthm: Do I need to close it before reading it?
jnthn No, but you need to close it for a .list loop over it to terminate
for $channel.list { } means read from the channel, blocking until there's values, until the channel is closed
jmerelo jnthn: right. So I guess I would need to use poll instead, and close if there's nothing there waiting. 17:31
jnthn Maybe but beware race conditions
I don't know what problem this is abstracted from so it's hard to suggest a better solution without risking factoring out the actual problem :) 17:32
jmerelo jnthn: an evolutionary algorithm 17:33
jnthn Ah, sadly I know nothing much about those. 17:35
17:35 mr_ron left
jmerelo Well, there's this nice (and rather recent) Perl 6 Module... modules.perl6.org/dist/Algorithm::...an:JMERELO 17:35
17:36 vike left
jnthn Is the re-sending of items significant or just because channels are a one-to-one mechanism, not a broadcast one? 17:37
jmerelo jnthn: it rather is. My idea is to evolve populations concurrently, and have a "mixer" mixing populations coming from a particular channel. 17:38
17:38 cdg_ joined
jmerelo jnthn: so basically yes. 17:38
I guess this is it, channel mixing achieved, output channel printed at the end using poll github.com/JJ/my-perl6-examples/bl...current.p6 17:40
17:41 cdg left
jnthn :) 17:42
jnthn bbl
17:43 pharv left, cdg_ left 17:44 dakkar left, cdg joined, pharv joined 17:46 vike joined
jmerelo So, next question. Can anyone give me the docs.perl6.org server logs? Or a few of them anyway? I'd like to analyze them basically for search engine terms, landing pages and leaving pages. 17:50
IPs are not so important, so they can be anonymized if needed.
El_Che jmerelo: probably a question for moritz 17:52
17:52 khisanth__ left 17:53 thundergnat left 17:54 |oLa|1 joined
jmerelo moritz: can you help with the p6doc server logs? 17:54
17:54 |oLa|1 left, |oLa|1 joined 17:57 Kaiepi left, |oLa| left 17:58 Kaiepi joined, epony left 17:59 jmerelo left 18:00 epony joined 18:01 tst133 joined 18:02 pharv left, tst133 left 18:05 committable6 left, committable6 joined, khisanth__ joined 18:08 pharv joined 18:11 darutoko- joined, bisectable6 left, bisectable6 joined, ChanServ sets mode: +v bisectable6 18:14 darutoko left 18:15 darutoko- left 18:16 domidumont joined 18:21 kaare_ left 18:22 kaare_ joined 18:24 bocaneri left, mr_ron joined, domidumont left 18:25 Kaiepi left, domidumont joined 18:26 Kaiepi joined 18:29 wamba joined 18:31 domidumont left, domidumont joined 18:32 domidumont left 18:33 domidumont joined 18:37 mcmillhj left, mcmillhj joined 18:38 amalia___ left 18:46 cdg left 18:47 cdg joined 18:48 cdg_ joined, domidumont left 18:52 cdg left 18:53 cdg_ left 19:01 comborico1611 left 19:04 domidumont joined 19:10 pharv left 19:11 pharv joined 19:13 mcmillhj left 19:14 mcmillhj joined 19:21 comborico1611 joined 19:27 natrys joined 19:41 jimav joined 19:42 athenot left
jimav I'm wondering why atomic operators are not restricted to "atomicint", which is portable... 19:42
19:43 athenot joined
jimav In other words, is it helpful to allow the non-portable "my int64 $i; cas $i,0,1" without a warning? 19:43
Relatedly, why throw an exception if the result from atomic ops won't fit in 64 bits, rather than won't fit in atomicint (which could be 32 bits)? 19:45
19:45 Kaiepi left, Kaiepi joined 19:52 domidumont left
jimav Are the various is repr('...') documented anywhere? 19:52
20:06 pharv left, pharv joined 20:15 bdmatatu left 20:16 lelf joined
lelf p6: sub foo ($x? where Int) { }; foo() 20:17
camelia Constraint type check failed in binding to parameter '$x'; expected anonymous constraint to be met but got Any (Any)
in sub foo at <tmp> line 1
in block <unit> at <tmp> line 1
lelf unconfuse me please
jnthn p6: sub foo (Int $x?) { }; foo() # why not this? 20:20
camelia ( no output )
20:21 Kaiepi left
jnthn jimav: Native types are don't carry type information at runtime, so we can't tell the difference. We could try and do static analysis and catch some cases. 20:23
20:23 Kaiepi joined
lelf p6: subset Even of Int where * %% 2; sub foo (Even $x?) { }; foo() # jnthn: 20:24
camelia Use of uninitialized value of type Int in numeric context
in whatevercode at <tmp> line 1
[Coke] r: subset Even of Int:D where * %% 2; sub foo (Even $x?) { }; foo() # jnthn: 20:25
camelia Constraint type check failed in binding to parameter '$x'; expected Even but got Int (Int)
in sub foo at <tmp> line 1
in block <unit> at <tmp> line 1
( no output )
[Coke] (oops, meant m)
jnthn Interesting that r-j things differently though 20:27
But yeah, it enforces the constraint even on an optional. 20:28
20:29 pharv left 20:30 pharv joined 20:33 vcv left 20:40 pharv left 20:41 pharv joined, wamba left 20:44 mr_ron left 20:45 pharv left, pharv_ joined 20:49 wamba joined 20:50 stmuk_ joined 20:52 stmuk left 20:59 mcmillhj left, comborico1611 left 21:04 cdg joined 21:06 Kaiepi left 21:07 Kaiepi joined, pharv_ left 21:10 pharv joined 21:13 cdg_ joined 21:15 cdg left 21:17 skids left 21:20 mr_ron joined 21:26 espadrine joined 21:34 pharv left, pharv joined 21:36 mcmillhj joined 21:37 kurahaupo_ joined 21:38 kurahaupo_ is now known as kurahaupo__ 21:40 kurahaupo left, mcmillhj left 21:42 kurahaupo__ is now known as kurahaupo
AlexDaniel bisectable6: uptime 21:47
bisectable6 AlexDaniel, 3 hours, 36 minutes, and 5 seconds, 208.800781MiB maxrss. This is Rakudo version 2018.02.1-166-g51c4d4d89 built on MoarVM version 2018.02-171-geee5be412 implementing Perl 6.c.
AlexDaniel committable6: uptime 21:48
committable6 AlexDaniel, 3 hours, 42 minutes, and 41 seconds, 203.855469MiB maxrss. This is Rakudo version 2018.02.1-166-g51c4d4d89 built on MoarVM version 2018.02-171-geee5be412 implementing Perl 6.c.
AlexDaniel notable6: uptime
notable6 AlexDaniel, 2 days, 23 hours, and 57 seconds, 239.210938MiB maxrss. This is Rakudo version 2018.02.1-166-g51c4d4d89 built on MoarVM version 2018.02-171-geee5be412 implementing Perl 6.c.
21:49 wamba left 21:51 mcmillhj joined
AlexDaniel # license ‘GPL-3.0-or-later’ is not one of the standardized SPDX license identifiers. 21:55
what the
ah… it's outdated
21:56 mcmillhj left 22:03 athenot left 22:04 athenot joined 22:07 athenot left 22:08 mcmillhj joined
Geth ecosystem: c05cbfdb8d | (Aleks-Daniel Jakimenko-Aleksejev)++ | META.list
Add App::OrgSleep
22:09
AlexDaniel heh… first module… 22:10
22:11 mr_ron left 22:12 mcmillhj left 22:25 rindolf left 22:26 mcmillhj joined 22:31 mcmillhj left 22:33 pmurias left 22:36 comborico1611 joined 22:38 mcmillhj joined 22:42 mcmillhj left 22:54 mcmillhj joined 22:59 mcmillhj left 23:01 vike1 joined, vike left, mr_ron joined 23:05 robertle left, dct joined 23:09 mcmillhj joined, itaipu left 23:11 natrys left 23:13 mcmillhj left 23:17 pharv left 23:18 pharv joined 23:21 skids joined, mcmillhj joined 23:22 kaare__ joined 23:23 pharv left 23:24 kaare_ left 23:26 mcmillhj left 23:27 lelf left 23:34 dct left 23:35 enheh_ joined 23:36 athenot joined 23:41 mcmillhj joined 23:42 cdg joined 23:45 mcmillhj left 23:46 cdg_ left, khw left 23:47 cdg left 23:51 jimav left 23:52 mcmillhj joined 23:58 mcmillhj left