Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2017-04-04

Perl 6 | Reference Documentation | Rakudo

| Channels | #perl6 index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:07 Cabanossi joined #perl6
00:20 _28_ria joined #perl6
00:21 mcmillhj joined #perl6
00:49 sufrostico joined #perl6
00:52 Cabanossi joined #perl6
00:55 cyphase joined #perl6
01:02 sufrostico joined #perl6
01:04 mcmillhj joined #perl6
01:24 samcv woo. my perl 6 grant proposal has been published http://news.perlfoundation.org/2017/04/grant-proposal.html :-)
01:28 astj_ joined #perl6
01:32 mcmillhj joined #perl6
01:32 AlexDaniel samcv: blah xD
01:34 samcv blah!
01:34 [Coke] blah?
01:34 AlexDaniel [Coke]: blah. https://github.com/perl6/nqp/commit/097acbfe7764af616e3edb78c7f35068d3d7ca08#commitcomment-21613087
01:35 raiph joined #perl6
01:37 [Coke] ahh
01:37 Cabanossi joined #perl6
01:37 gdonald joined #perl6
01:37 [Coke] thought you were blah'ing the GCP
01:39 AlexDaniel the proposal is great. I blah-ed a comment already :)
01:51 mcmillhj joined #perl6
02:00 MilkmanDan joined #perl6
02:07 bolangi joined #perl6
02:07 bolangi join #perl
02:08 perigrin I already have?
02:19 geekosaur joined #perl6
02:26 evalable6_ joined #perl6
02:29 mcmillhj joined #perl6
02:32 noganex joined #perl6
02:46 mcmillhj joined #perl6
02:52 Cabanossi joined #perl6
02:59 evalable6 joined #perl6
03:09 BenGoldberg joined #perl6
03:13 xtreak joined #perl6
03:16 mcmillhj joined #perl6
03:43 mcmillhj joined #perl6
03:49 miatomi joined #perl6
03:51 Cabanossi joined #perl6
04:03 mcmillhj joined #perl6
04:14 Guest2048 joined #perl6
04:14 evalable6 joined #perl6
04:26 mcmillhj joined #perl6
04:27 gdonald joined #perl6
04:36 Cabanossi joined #perl6
04:40 u-ou hello
04:45 nightfrog joined #perl6
04:48 curan joined #perl6
04:57 ufobat joined #perl6
05:00 cpage_ joined #perl6
05:05 sQuEE` joined #perl6
05:06 Grauwolf_ joined #perl6
05:07 peteretep_ joined #perl6
05:07 ggherdov_ joined #perl6
05:07 Dunearhp joined #perl6
05:08 Cabanossi joined #perl6
05:09 profan_ joined #perl6
05:09 hahainte1net joined #perl6
05:09 ambs_ joined #perl6
05:09 rmusial_ joined #perl6
05:09 tharkun_ joined #perl6
05:09 ilbelkyr_ joined #perl6
05:09 hcit_ joined #perl6
05:12 hobbified joined #perl6
05:13 Mithaldu` joined #perl6
05:16 mcmillhj joined #perl6
05:21 stmuk joined #perl6
05:21 k-man joined #perl6
05:21 M-Illandan joined #perl6
05:21 TBSliver joined #perl6
05:22 unclechu joined #perl6
05:24 zoosha joined #perl6
05:25 mcmillhj joined #perl6
05:25 lowbro joined #perl6
05:25 lowbro joined #perl6
05:29 cyphase joined #perl6
05:37 madgoat joined #perl6
05:37 madgoat left #perl6
05:42 Grauwolf joined #perl6
05:48 samcv working on getting MoarVM coverage from roast now
05:48 samcv :-) yay
05:49 u-ou :>
05:50 RabidGravy joined #perl6
05:51 xtreak joined #perl6
05:53 domidumont joined #perl6
05:53 xtreak joined #perl6
05:56 cyphase joined #perl6
05:58 dct joined #perl6
05:59 domidumont joined #perl6
06:02 xinming joined #perl6
06:03 [ptc] samcv++ !
06:03 samcv here's by file https://cry.nu/coverage/roast.html
06:04 samcv about to generate line by line coverage in a bit
06:04 samcv hopefully can get both of them automated since i have nqp testset coverage script to do it all for me
06:07 Cabanossi joined #perl6
06:09 samcv line by line here https://cry.nu/coverage/roast/
06:15 _28_ria joined #perl6
06:15 mcmillhj joined #perl6
06:25 ChoHag joined #perl6
06:31 samcv this is really cool. heh. been browsing some of the code i've worked on before, and cool to see either where we don't test for or maybe conditions which end up not being reached in practice either or i guess
06:33 samcv wow even shows #define that are never actually used in code that gets hit. that's pretty amazing
06:40 mcmillhj joined #perl6
06:56 astj joined #perl6
07:00 abraxxa joined #perl6
07:01 darutoko joined #perl6
07:05 xtreak joined #perl6
07:07 xtreak joined #perl6
07:16 timeless joined #perl6
07:21 mcmillhj joined #perl6
07:29 ufobat joined #perl6
07:30 dakkar joined #perl6
07:33 r3m joined #perl6
07:33 jonas1 joined #perl6
07:36 pmurias joined #perl6
07:37 pmurias samcv: it might make sense to also add the coverage from running the nqp test suite
07:37 mcmillhj joined #perl6
07:43 * lizmat clickbaits: https://p6weekly.wordpress.com/2017/04/03/2017-14-the-io-front-advances/
07:45 samcv oh pmurias that's here https://cry.nu/coverage/
07:46 samcv that's what i did the last few days, got that all automated. still have to automate the roast testing though and generation, but that shouldn't be too hard since i've already done it for the nqp test suite
07:50 movl joined #perl6
07:50 r3m joined #perl6
07:51 rindolf joined #perl6
07:54 zakharyas joined #perl6
08:04 mcmillhj joined #perl6
08:05 daxim samcv, I'm doing customised collation with perl5: <http://paste.debian.net/925841/>  you can translate it into a test case for your grant
08:07 samcv daxim, what is your planned supporting of codepoint that have multiple arrays?
08:07 samcv err multiple collation arrays
08:08 samcv and series of codeponits that have one or more arrays that are distinct from when the codepoints appear individually or next to other characters?
08:08 daxim it appears I don't have those
08:08 samcv kk
08:08 samcv my moarvm collation does not have those yet eater
08:08 samcv eather
08:09 samcv you can read about the collation functions of perl 6 here https://docs.perl6.org/language/experimental#Collation
08:09 samcv currently rethinking the collation levels interface, because i want you to be able to reverse things
08:09 daxim nice, the foundation is laid
08:09 samcv so capital letters before lowercase would be the most common example i can think of
08:09 samcv yep :)
08:12 mr-foobar joined #perl6
08:13 eater samcv: ?
08:13 daxim you've been typoed
08:20 movl joined #perl6
08:21 samcv what?
08:22 samcv m: <a A b B>.collate.say
08:22 camelia rakudo-moar 067208: OUTPUT: «Use of the 'coll' operator is experimental; please 'use experimental :collation'␤  in block <unit> at <tmp> line 1␤␤»
08:22 samcv m: use experimental :collation; <a A b B>.collate.say
08:22 camelia rakudo-moar 067208: OUTPUT: «(a A b B)␤»
08:22 samcv atm can only turn on or off the collation levels. so will hopefully be do that as part of the grant too
08:22 samcv hi eater
08:23 mr-foobar joined #perl6
08:26 eater samcv: y u mention me
08:26 samcv you said my name
08:27 moritz now you can start talking :-)
08:27 yoleaux 3 Apr 2017 23:46Z <AlexDaniel> moritz: https://irclog.perlgeek.de/perl6/2017-04-03#i_14371056
08:29 samcv oh i see the typo now :) it highlighted you
08:37 movl joined #perl6
08:43 samcv daxim, i added a COLLATION_QC property for codepoints that are starters or have multiple collation element arrays so i could run it against the unicode collation test txt files
08:44 samcv have you done anything similar to check, not sure how your implementation is, that could be a pain. though you could always use perl 6 to process the collation list and then feed in to perl 5 and see how your collation algorithm is doing
08:45 El_Che samcv: good luck with the grant
08:45 samcv thanks El_Che :)
08:46 samcv daxim, this the file i tested our collation with https://github.com/samcv/UCD/blob/master/CollationTest.t#L42
08:49 daxim in my code, I'm just adding three new letters, and then the collation module knows how to treat them for the ->index method.  what you linked to looks like a different purpose or goal
08:50 samcv that code just tests perl 6 code against the unicode collation test files in CollationTests from the zip here ftp://ftp.unicode.org/Public/UCA/latest
08:50 samcv if you want me to write you a script that just filters out all the 'tricky' lines in the file i will do so
08:51 samcv would make it easy for you to test your collation on the unicode tests without getting failures from all these weird things
08:51 samcv like 'st' sorting with 'st'
08:51 daxim no, I showed you the perl5 code because I hoped with the result of your work I can do the same in perl6
08:51 mcmillhj joined #perl6
08:52 samcv oh sorry i thought you were the one who made the Unicode sort module in perl 5
08:52 samcv maybe i misunderstood.
08:53 Cabanossi joined #perl6
08:53 daxim that's sadahiro, I merely use his module
08:54 mr-foobar joined #perl6
08:54 samcv heh ok :)
08:57 cgfbee joined #perl6
08:57 labster joined #perl6
09:07 mcmillhj joined #perl6
09:09 xinming joined #perl6
09:11 robertle joined #perl6
09:15 gdonald joined #perl6
09:26 movl joined #perl6
09:27 mcmillhj joined #perl6
09:36 Cabanossi joined #perl6
09:43 dalek joined #perl6
09:56 movl joined #perl6
09:58 mcmillhj joined #perl6
10:11 zakharyas joined #perl6
10:18 ChoHag joined #perl6
10:18 mcmillhj joined #perl6
10:22 debugsectable6 joined #perl6
10:26 debugsectable6 joined #perl6
10:27 araujo joined #perl6
10:36 Cabanossi joined #perl6
10:44 cognominal joined #perl6
11:06 mcmillhj joined #perl6
11:14 xtreak joined #perl6
11:17 lucs joined #perl6
11:23 labster joined #perl6
11:24 labster joined #perl6
11:45 raschipi joined #perl6
12:01 xtreak joined #perl6
12:10 bjz joined #perl6
12:19 lizmat joined #perl6
12:21 sufrostico joined #perl6
12:51 mcmillhj joined #perl6
12:59 Skarsnik joined #perl6
13:01 Skarsnik Hello
13:02 Sound joined #perl6
13:03 Skarsnik I am having a look at https://rt.perl.org/Public/Bug/Display.html?id=131003 I tried with rakudo 2016.11 (32 bits) and I don't have the issue. I tried with the latest but the exemel module now produce a signature error. "Calling from-xml-stream(IO::Handle) will never work with declared signature (IO $input)
13:03 Skarsnik " is that a bug or just something new in rakudo? x)
13:05 Sound_ joined #perl6
13:10 raschipi Skarsnik: There is changes related to that underway, have a look: http://rakudo.org/2017/04/02/upgrade-information-for-changes-due-to-io-grant-work/
13:10 raschipi http://rakudo.org/2017/04/03/part-2-upgrade-information-for-changes-due-to-io-grant-work/
13:12 dudz hi aussie homaphrodites
13:13 dudz oh, wrong chan
13:13 Skarsnik raschipi, Thanks :)
13:13 raschipi np
13:13 bjz_ joined #perl6
13:14 Skarsnik hm
13:15 cdg joined #perl6
13:16 Skarsnik damn, the doc is not up to date
13:18 raschipi Ther public docs don't really follow HEAD.
13:25 Zoffix joined #perl6
13:26 Zoffix Skarsnik: change `IO` to `IO::Handle` in signature. Using `IO` was an error that got caught by new improvements.
13:26 Sound_ joined #perl6
13:26 Skarsnik Hello Zoffix :) IO::Path is an IO::Handle too?
13:27 Skarsnik the XML module use IO to handle these 2 types
13:27 Zoffix :S
13:27 Zoffix Skarsnik: they're vastly different types :/
13:27 Zoffix And no, it isn't an IO::handle
13:28 Zoffix buggable: eco XML
13:28 buggable Zoffix, Found 12 results: XML, XML::Query, Flower, XML::Writer, XML::Canonical. See https://modules.perl6.org/#q=XML
13:28 Zoffix Skarsnik: XML module, as in XML.pm6?
13:28 Skarsnik https://github.com/supernovus/exemel/blob/master/lib/XML.pm6#L35
13:29 Skarsnik nvm IO::handle probably work as open method is used on the IO::Path
13:29 Zoffix Skarsnik: yes, IO::Path.open returns an IO::Handle.
13:30 Zoffix Skarsnik: and this is an error, as it [used to] accept IO::Path and IO::Socket* types, none of which have a .slurp-rest method: https://github.com/supernovus/exemel/blob/master/lib/XML.pm6#L12
13:32 Zoffix Sent a PR: https://github.com/supernovus/exemel/pull/43
13:32 Skarsnik I was going to do it x)
13:33 Zoffix Too slow :P
13:34 Skarsnik yeah, I was looking if I already still have a fork on it x)
13:35 Skarsnik it's me or the language did not grow much on popularity/use? I did not get some tickets on my modules. I was expecting to get some on like Discord/Gumbo x)
13:35 Zoffix Skarsnik: for which period?
13:35 Skarsnik a year?
13:36 Skarsnik I haven't much contributed since a while.
13:38 Zoffix Skarsnik: language definitely grew. New faces on IRC. 4 or 5 new books being published (some finished!). People outside the community no longer go "lulzwat Perl is dead" and mostly know Perl 6 is a new language. However, I did notice ecosystem growth slowed down quite a bit, which I suspect has a lot to do with Inline::Perl5 and Inline::Python being improved greatly. There's little reason for people to write
13:38 Zoffix new modules, when they can just use Perl 5's or Python's well-tested gems
13:38 Zoffix And I remembered what the web stats URL was, I'd even say by how much usage grew :)
13:38 Zoffix *and if I rememberd
13:39 Skarsnik Oh yeah, this page
13:39 Zoffix ah
13:39 kurahaupo__ joined #perl6
13:39 Zoffix huggable: stats
13:39 huggable Zoffix, http://www.p6c.org/stats/doc.perl6.org
13:40 vike joined #perl6
13:40 Skarsnik I was mostly hoping to get tickets on GPTrixie mostly, since writing binding in perl6 is rather quick
13:41 Skarsnik But it's good to see the language is alive :)
13:41 Zoffix Skarsnik: and another metric: we got 4 new core developers :)
13:42 Skarsnik that really good ^^ even if a growing ecosystem is healty
13:42 Zoffix Or 5 even, if you want to count me (joined around last July)
13:45 skids joined #perl6
13:46 Zoffix m: say "Based on docs.perl6.org stats, we're now {(36995/22481).round: .1}x larger"
13:46 camelia rakudo-moar 49807e: OUTPUT: «Based on docs.perl6.org stats, we're now 1.6x larger␤»
13:46 Zoffix Pretty damn good. Nice, non-hypey growth
13:47 gdonald joined #perl6
13:48 Skarsnik and now, I must get back to annoying SNES stuff :(
13:51 Skarsnik Maybe I should look at how to fix RT127345 one day
13:51 Skarsnik seems interesting
13:51 bjz joined #perl6
13:53 Zoffix left #perl6
14:02 dogbert17 joined #perl6
14:02 dogbert17 skarsnik: I believe that AlexDaniel was trying Gumbo and stumbled on a problem
14:03 Skarsnik Yes, I saw the issue and the RT. I was not able to reproduce it on my 32 bit VM
14:03 dogbert17 more specifically RT #131003
14:04 dogbert17 Skarsnik: I was and I'm on 32 bit as well. Strange
14:05 dogbert17 but when trying again the spectre of Zoffix appears :)
14:06 dogbert17 'Calling from-xml-stream(IO::Handle) will never work with declared signature (IO $input)'
14:06 dogbert17 I remember that if I ran the program with perl6-valgrind-m I got at least one invalid read
14:09 raschipi Zoffix has a bot that bridges this channel and his twitter, so he pops in when he wants to help.
14:10 Skarsnik lol
14:11 Skarsnik I could try on my 64 bits VPS
14:14 Zoffix joined #perl6
14:15 Zoffix raschipi: no, the bot only bridges messages that include my name. And I backlog the channel only if I get bored.
14:15 Skarsnik Maybe it's a bug in gumbo parser (the c lib), I did not update the lib
14:16 raschipi Right. I'll keep that in mind.
14:16 Zoffix So if there's some IO breakage that's not answered by the two upgrade notices, direct people to #perl6-dev as I don't monitor this channel 24/7.
14:17 bbkr joined #perl6
14:17 Zoffix The notices being http://rakudo.org/2017/04/03/part-2-upgrade-information-for-changes-due-to-io-grant-work/ and  http://rakudo.org/2017/04/02/upgrade-information-for-changes-due-to-io-grant-work/
14:17 Zoffix Also:
14:17 Zoffix huggable: known IO breakage killstreak
14:17 huggable Zoffix, 3 (doc test suite; Text::CSV; XML.pm6)
14:17 maasta joined #perl6
14:17 Skarsnik Zoffix, was it you that write a script that check the whole ecosystem? (running test of all of them)
14:18 Zoffix huggable: known IO breakage killstreak :is: (doc test suite[fixed]; Text::CSV[fixed]; XML.pm6[PR to fix https://github.com/supernovus/exemel/pull/43 ])
14:18 huggable Zoffix, Added known IO breakage killstreak as (doc test suite[fixed]; Text::CSV[fixed]; XML.pm6[PR to fix https://github.com/supernovus/exemel/pull/43 ])
14:18 maasta hi everyone! quick question, is there an easy way to XOR two hexstring?
14:19 Zoffix Skarsnik: I will write one. The first naive attempt to use `zef smoke` took ages and I killed it midway
14:19 moritz m: say (:16<DEAD> +^ :16<BEEF>).base(16) # for maasta
14:19 camelia rakudo-moar 75c3f2: OUTPUT: «6042␤»
14:19 moritz like that?
14:19 maasta yes, did not think to do it like that
14:20 maasta thanks moritz
14:20 moritz m: say (:16('DEAD') +^ :16<BEEF>).base(16)
14:20 camelia rakudo-moar 75c3f2: OUTPUT: «6042␤»
14:20 moritz if you don't have literals
14:20 Zoffix m: my $a = "DEAD"; my $b = "BEEF"; say ([+^] ($a, $b)».parse-base: 16).base(16)
14:20 camelia rakudo-moar 75c3f2: OUTPUT: «6042␤»
14:20 moritz maasta: you're welcome
14:21 Zoffix m: my $a = "-DEAD"; my $b = "-BEEF"; say ([+^] ($a, $b)».parse-base: 16).base(16)
14:21 camelia rakudo-moar 75c3f2: OUTPUT: «6042␤»
14:22 Skarsnik m: my $a = "DEAD"; my $b = "BEEF"; say :16($a) +^ :16($b)
14:22 camelia rakudo-moar 75c3f2: OUTPUT: «24642␤»
14:22 Zoffix m: :16<-DEAD>
14:22 camelia rakudo-moar 75c3f2: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Malformed radix number␤at <tmp>:1␤------> 3:16<7⏏5-DEAD>␤    expecting any of:␤        number in radix notation␤»
14:22 Zoffix left #perl6
14:22 curan joined #perl6
14:28 andrzejku joined #perl6
14:28 andrzejku hi
14:28 andrzejku :)
14:29 skycafemix joined #perl6
14:30 skycafemix y $a = gather { take 1; take 2;} my $x = $a[1]; say join ", ", $a;
14:30 skycafemix perl6: my $a = gather { take 1; take 2;} my $x = $a[1]; say join ", ", $a;
14:30 camelia rakudo-jvm fb4f16: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Strange text after block (missing semicolon or comma?)␤at <tmp>:1␤------> 3my $a = gather { take 1; take 2;}7⏏5 my $x = $a[1]; say join ", ", $a;␤    expecting any of:␤        infix␤        …»
14:30 camelia ..rakudo-moar 75c3f2: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Strange text after block (missing semicolon or comma?)␤at <tmp>:1␤------> 3my $a = gather { take 1; take 2;}7⏏5 my $x = $a[1]; say join ", ", $a;␤    expecting any of:␤        infix␤       …»
14:31 [Coke] skycafemix: use "m:" unless you really want to run jvm.
14:31 skycafemix m: my $a = gather { take 1; take 2;} my $x = $a[1]; say join ", ", $a;
14:31 camelia rakudo-moar 75c3f2: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Strange text after block (missing semicolon or comma?)␤at <tmp>:1␤------> 3my $a = gather { take 1; take 2;}7⏏5 my $x = $a[1]; say join ", ", $a;␤    expecting any of:␤        infix␤       …»
14:32 [Coke] } only autocloses a block if a newline follows it.
14:32 [Coke] er, a statement.
14:33 skycafemix Hi there, does anyone know why a semicolon is required after the right curly brace when executed with perl6 -e on command line or here with m: , but not when program is in a file of its own?
14:33 skycafemix oh okay Coke thanks!
14:34 skycafemix Sorry for newbie question, thanks.
14:34 raschipi #Perl6, where people answer so fast the answer comes before the questions.
14:36 Cabanossi joined #perl6
14:37 gdonald joined #perl6
14:43 ChoHag joined #perl6
14:44 [Coke] m: my $a = gather { take 1; take 2;}␤my $x = $a[1]; say join ", ", $a;
14:44 camelia rakudo-moar 75c3f2: OUTPUT: «1 2␤»
14:45 [Coke] ^^ you can pass newlines here, you just have to cheat.
14:46 timotimo unfortunately they already left :(
15:01 tokomer joined #perl6
15:02 mr-foobar joined #perl6
15:12 zakharyas joined #perl6
15:20 zakharyas joined #perl6
15:29 mr-foobar joined #perl6
15:29 Geth ¦ doc: b8fba97c5f | (Zoffix Znet)++ | doc/Type/IO.pod6
15:29 Geth ¦ doc: [io grant] Point out my $*CWD = chdir … is an error
15:29 Geth ¦ doc:
15:29 Geth ¦ doc: Will eventually write a separate paragraph on all the evils of $*CWD
15:29 Geth ¦ doc: and link to it from all the problematic areas.
15:29 Geth ¦ doc: review: https://github.com/perl6/doc/commit/b8fba97c5f
15:29 mcmillhj joined #perl6
15:31 llfourn joined #perl6
15:33 Geth ¦ doc: b81148c7fe | (Zoffix Znet)++ | doc/Type/IO.pod6
15:33 Geth ¦ doc: Make wrong code being wrong more obvious
15:33 Geth ¦ doc:
15:33 Geth ¦ doc: For those who read the code but not the prose
15:33 Geth ¦ doc: review: https://github.com/perl6/doc/commit/b81148c7fe
15:36 gregf_ joined #perl6
15:36 Cabanossi joined #perl6
15:47 tharkun_ joined #perl6
16:08 spebern joined #perl6
16:11 AlexDaniel joined #perl6
16:36 khw joined #perl6
16:46 sufrostico joined #perl6
16:48 wamba joined #perl6
16:49 espadrine joined #perl6
17:10 mcmillhj joined #perl6
17:24 Skarsnik_ joined #perl6
17:24 mcmillhj joined #perl6
17:29 vendethiel m: my %h = a => b => 2; say $h<a><b>; my @i = <a b>; say @h{||@i}
17:29 camelia rakudo-moar 87fe80: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Variable '$h' is not declared. Did you mean '%h'?␤at <tmp>:1␤------> 3my %h = a => b => 2; say 7⏏5$h<a><b>; my @i = <a b>; say @h{||@i}␤»
17:29 vendethiel ugh, 5os
17:29 vendethiel m: my %h = a => b => 2; say %h<a><b>; my @i = <a b>; say %h{||@i}
17:29 camelia rakudo-moar 87fe80: OUTPUT: «2␤(b => 2 (Any))␤»
17:30 Skarsnik__ joined #perl6
17:30 vendethiel m: my %h = a => b => 2; say %h<a><b>; my @i = <a b>; say %h{'a';'b'}; say %h{||@i};
17:30 camelia rakudo-moar 87fe80: OUTPUT: «2␤(2)␤(b => 2 (Any))␤»
17:37 jeek joined #perl6
17:38 mcmillhj joined #perl6
17:44 mcmillhj joined #perl6
17:52 Cabanossi joined #perl6
17:52 sufrostico joined #perl6
17:54 TeamBlast joined #perl6
17:57 gdonald joined #perl6
18:13 jeek joined #perl6
18:20 Geth ¦ ecosystem: 1c05cea280 | (Zoffix Znet)++ | META.list
18:20 Geth ¦ ecosystem: Add Failer to ecosystem
18:20 Geth ¦ ecosystem:
18:20 Geth ¦ ecosystem: Handle Failures like a Pro: https://github.com/zoffixznet/perl6-Failer
18:20 Geth ¦ ecosystem: review: https://github.com/perl6/ecosystem/commit/1c05cea280
18:29 nhywyll joined #perl6
18:41 TEttinger joined #perl6
18:41 pecastro joined #perl6
18:41 TeamBlast joined #perl6
18:41 mcmillhj joined #perl6
18:48 beginner joined #perl6
18:49 beginner hi
18:49 raschipi hello
18:49 eroux joined #perl6
18:49 beginner is there a way to suspend the current process and start another process in perl6
18:53 raschipi You want to execute something else and wait for it to finish?
18:53 beginner want to execute something
18:55 raschipi "run" https://docs.perl6.org/routine/run Executes something and waits for it to finish.
18:58 beginner i guess this will help...thanks...my scenario is i want to check a variable value(n = 5)...if it is not true then i want to suspend this process and do some other asynchronous call...and then after the asynchronous call is complete i want to come back and check the variable again(n =5 )
18:58 beginner any ideas for this?
19:00 labster joined #perl6
19:03 perlpilot beginner: I don't know about the "suspend this process" part, but calling something asynchronously doesn't seem too bad.
19:06 beginner if we take an producer consumer problem...instead of making it sleep i want it do some other process
19:08 raschipi When the process blocks, you want to do something else? You should just launch two threads and let the kernel sort it out.
19:10 vendethiel https://twitter.com/zoffix/status/847234269227253760 zoffix: this is the first instance I actually thought "hey, R=> would be useful here" :). nice snippets as always
19:11 Zoffix joined #perl6
19:12 Zoffix vendethiel: I don't get how R=> helps there. Unless you linked to the wrong tweet?
19:12 vendethiel well, `$text R=> do with`, I mean.
19:12 vendethiel (it took me some time to understand you mixed a postfix with with a do'ed statement with)
19:13 Zoffix m: my $n = 4; unless $n == 5 { $n = await start { sleep 2; 5 }; if $n == 5 { say "all good now" } }
19:13 camelia rakudo-moar 87fe80: OUTPUT: «all good now␤»
19:13 Zoffix beginner: ^ that does what you described.
19:14 Zoffix beginner: you can pop it into its own start {} and not care about `await` blocking this part of code. There are also Supplies
19:14 Zoffix huggable: Supplier
19:14 huggable Zoffix, Live: https://docs.perl6.org/type/Supplier
19:14 Zoffix vendethiel: oh! right :) Then I have two uses of R=> now :)
19:14 vendethiel \o/
19:15 Zoffix vendethiel: well, I guess just one, since it's the same usecase: https://twitter.com/zoffix/status/846449596649877504
19:15 Zoffix And that tweet is from earlier time, so I forgot my discovery doh :P
19:16 vendethiel XR=>, huh? What a mess it would be if we had to pronounce those ;-) *winks at Haskell lenses*
19:16 Zoffix Ah, slightly different 'cause of X there too :)
19:17 Zoffix "eks uhr fat arrow" not too bad
19:17 * Zoffix returns to hacking on Perl 6 bugs
19:17 Zoffix \o
19:17 Zoffix left #perl6
19:18 beginner @raschipi & @ Zoffix : Thanks, will try it and let u know
19:19 lizmat joined #perl6
19:22 lizmat .
19:28 samcv good *
19:29 moritz \o *
19:30 tbrowder hi, lizmat
19:31 lizmat tbrowder samcv moritz  o/
19:35 gfldex m: use MONKEY; class A::B {}; augment class Int { method B { A::B.new } }; sub s(B(Int)){ }; s 42;
19:35 camelia rakudo-moar 87fe80: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Invalid typename 'B' in parameter declaration.␤at <tmp>:1␤------> 3s Int { method B { A::B.new } }; sub s(B7⏏5(Int)){ }; s 42;␤»
19:36 gfldex m: use MONKEY; class A::B {}; augment class Int { method B { A::B.new } }; sub s(A::B(Int)){ }; s 42;
19:36 camelia rakudo-moar 87fe80: OUTPUT: «No such method 'A::B' for invocant of type 'Int'␤  in sub s at <tmp> line 1␤  in block <unit> at <tmp> line 1␤␤»
19:36 gfldex well,
19:37 agentzh joined #perl6
20:06 Cabanossi joined #perl6
20:11 ChristianS joined #perl6
20:14 cdg joined #perl6
20:25 sufrostico joined #perl6
20:34 agentzh joined #perl6
20:40 sufrostico joined #perl6
20:47 bjz joined #perl6
20:59 sftp joined #perl6
21:03 agentzh joined #perl6
21:06 Cabanossi joined #perl6
21:28 agentzh joined #perl6
21:44 agentzh joined #perl6
21:53 mcmillhj joined #perl6
21:53 ChristianS left #perl6
21:56 agentzh joined #perl6
22:04 agentzh joined #perl6
22:09 mcmillhj joined #perl6
22:14 agentzh joined #perl6
22:18 bjz joined #perl6
22:24 mcmillhj joined #perl6
22:27 agentzh joined #perl6
22:36 rpburkholder joined #perl6
22:38 miatomi joined #perl6
22:42 mr-foobar joined #perl6
22:45 mcmillhj joined #perl6
22:48 gdonald joined #perl6
22:49 nbrown joined #perl6
22:53 sufrostico joined #perl6
23:08 agentzh joined #perl6
23:24 lizmat joined #perl6
23:30 mcmillhj joined #perl6
23:35 mcmillhj joined #perl6
23:52 mcmillhj joined #perl6

| Channels | #perl6 index | Today | | Search | Google Search | Plain-Text | summary

Perl 6 | Reference Documentation | Rakudo