»ö« 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 cdg left 00:06 Cabanossi left 00:07 Cabanossi joined 00:18 dct left 00:20 _28_ria joined 00:21 mcmillhj joined 00:26 mcmillhj left 00:34 cyphase left 00:41 ufobat left 00:49 sufrostico joined 00:52 Cabanossi left, Cabanossi joined 00:55 cyphase joined 00:58 sufrostico left 01:02 sufrostico joined 01:04 mcmillhj joined 01:07 sufrostico left 01:09 mcmillhj left
samcv woo. my perl 6 grant proposal has been published news.perlfoundation.org/2017/04/gra...posal.html :-) 01:24
01:28 astj_ joined, astj left 01:32 mcmillhj joined
AlexDaniel samcv: blah xD 01:32
samcv blah! 01:34
[Coke] blah?
AlexDaniel [Coke]: blah. github.com/perl6/nqp/commit/097acb...t-21613087
01:35 raiph joined 01:36 Cabanossi left 01:37 mcmillhj left, gdonald left
[Coke] ahh 01:37
01:37 Cabanossi joined, gdonald joined
[Coke] thought you were blah'ing the GCP 01:37
AlexDaniel the proposal is great. I blah-ed a comment already :) 01:39
01:51 mcmillhj joined 01:56 mcmillhj left 01:59 MilkmanDan left 02:00 _28_ria left, MilkmanDan joined 02:07 bolangi joined
bolangi join #perl 02:07
perigrin I already have? 02:08
02:17 geekosaur left 02:19 geekosaur joined 02:26 evalable6_ joined, ChanServ sets mode: +v evalable6_ 02:27 evalable6_ left 02:29 mcmillhj joined 02:32 noganex joined 02:33 mcmillhj left 02:35 noganex_ left 02:46 mcmillhj joined 02:51 mcmillhj left, Cabanossi left 02:52 Cabanossi joined 02:59 evalable6 left, evalable6 joined, ChanServ sets mode: +v evalable6 03:09 BenGoldberg joined 03:13 xtreak joined 03:16 mcmillhj joined 03:21 mcmillhj left 03:43 mcmillhj joined 03:45 kyan left 03:48 mcmillhj left 03:49 miatomi joined 03:51 Cabanossi left, Cabanossi joined 04:03 mcmillhj joined 04:08 mcmillhj left 04:13 miatomi left 04:14 Guest2048 joined, evalable6 left, evalable6 joined, ChanServ sets mode: +v evalable6 04:22 cpage_ left 04:26 mcmillhj joined, AlexDaniel left 04:27 gdonald left, gdonald joined 04:30 mcmillhj left 04:31 Guest2048 left 04:35 Cabanossi left 04:36 nightfrog left, Cabanossi joined
u-ou hello 04:40
04:43 skids left 04:45 nightfrog joined 04:48 curan joined 04:57 ufobat joined 05:00 cpage_ joined 05:05 Cabanossi left, sQuEE` joined 05:06 Grauwolf_ joined 05:07 peteretep_ joined, ggherdov_ joined, Dunearhp joined 05:08 Cabanossi joined 05:09 profan_ joined, hahainte1net joined, ambs_ joined, rmusial_ joined, tharkun_ joined, ilbelkyr_ joined, hcit_ joined 05:12 hobbified joined 05:13 Mithaldu` joined 05:14 dalek left, hahainternet left, M-Illandan left, unclechu left, tharkun left, rmusial left, stmuk left, ggherdov left, peteretep left, timeless left, hobbs left, synopsebot6 left, k-man left, profan left, sQuEE left, ambs left, Dunearhp_ left, Mithaldu left, zoosha left, Mithaldu` is now known as Mithaldu 05:16 peteretep_ is now known as peteretep, mcmillhj joined 05:17 ggherdov_ is now known as ggherdov 05:20 mcmillhj left 05:21 stmuk joined, k-man joined, M-Illandan joined, TBSliver joined 05:22 unclechu joined 05:24 zoosha joined, cyphase left 05:25 mcmillhj joined, lowbro joined, lowbro left, lowbro joined 05:29 cyphase joined 05:37 madgoat joined, madgoat left 05:41 Grauwolf_ left 05:42 Grauwolf joined 05:43 BenGoldberg left
samcv working on getting MoarVM coverage from roast now 05:48
:-) yay
u-ou :> 05:49
05:50 RabidGravy joined 05:51 xtreak left, cyphase left, xtreak joined 05:53 xtreak left, domidumont joined, xtreak joined 05:56 cyphase joined 05:58 dct joined 05:59 domidumont left, domidumont joined 06:02 xinming joined
[ptc] samcv++ ! 06:03
samcv here's by file cry.nu/coverage/roast.html
about to generate line by line coverage in a bit 06:04
06:04 dct left
samcv hopefully can get both of them automated since i have nqp testset coverage script to do it all for me 06:04
06:05 xinming_ left 06:06 Cabanossi left 06:07 Cabanossi joined 06:08 mcmillhj left
samcv line by line here cry.nu/coverage/roast/ 06:09
06:15 _28_ria joined, mcmillhj joined 06:19 mcmillhj left 06:25 ChoHag joined
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:31
wow even shows #define that are never actually used in code that gets hit. that's pretty amazing 06:33
06:40 mcmillhj joined 06:42 ChoHag left 06:45 mcmillhj left 06:56 astj_ left, astj joined 07:00 abraxxa joined 07:01 darutoko joined 07:04 xtreak left 07:05 xtreak joined 07:07 xtreak left, xtreak joined 07:09 MasterDuke left 07:14 ufobat left 07:16 timeless joined 07:21 mcmillhj joined 07:26 mcmillhj left 07:27 r3m left 07:29 ufobat joined 07:30 dakkar joined 07:33 r3m joined, jonas1 joined 07:36 pmurias joined
pmurias samcv: it might make sense to also add the coverage from running the nqp test suite 07:37
07:37 mcmillhj joined 07:42 mcmillhj left
lizmat clickbaits: p6weekly.wordpress.com/2017/04/03/...-advances/ 07:43
samcv oh pmurias that's here cry.nu/coverage/ 07:45
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:46
07:48 r3m left 07:50 movl joined, r3m joined 07:51 rindolf joined 07:54 zakharyas joined 08:04 mcmillhj joined
daxim samcv, I'm doing customised collation with perl5: <paste.debian.net/925841/> you can translate it into a test case for your grant 08:05
samcv daxim, what is your planned supporting of codepoint that have multiple arrays? 08:07
err multiple collation arrays
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
samcv kk
my moarvm collation does not have those yet eater
eather
08:09 mcmillhj left
samcv you can read about the collation functions of perl 6 here docs.perl6.org/language/experimental#Collation 08:09
currently rethinking the collation levels interface, because i want you to be able to reverse things
daxim nice, the foundation is laid
samcv so capital letters before lowercase would be the most common example i can think of
yep :)
08:11 mr-foobar left 08:12 mr-foobar joined
eater samcv: ? 08:13
daxim you've been typoed
08:14 xtreak left 08:16 movl left 08:20 movl joined 08:21 mr-foobar left
samcv what? 08:21
m: <a A b B>.collate.say 08:22
camelia Use of the 'coll' operator is experimental; please 'use experimental :collation'
in block <unit> at <tmp> line 1
samcv m: use experimental :collation; <a A b B>.collate.say
camelia (a A b B)
samcv atm can only turn on or off the collation levels. so will hopefully be do that as part of the grant too
hi eater
08:23 mr-foobar joined
eater samcv: y u mention me 08:26
samcv you said my name
moritz now you can start talking :-) 08:27
yoleaux 3 Apr 2017 23:46Z <AlexDaniel> moritz: irclog.perlgeek.de/perl6/2017-04-03#i_14371056
samcv oh i see the typo now :) it highlighted you 08:29
08:29 zakharyas left 08:33 movl left 08:35 mr-foobar left 08:37 movl joined
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:43
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:44
El_Che samcv: good luck with the grant 08:45
samcv thanks El_Che :)
daxim, this the file i tested our collation with github.com/samcv/UCD/blob/master/C...Test.t#L42 08:46
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:49
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
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:50 Cabanossi left
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
like 'st' sorting with 'st'
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
samcv oh sorry i thought you were the one who made the Unicode sort module in perl 5 08:52
maybe i misunderstood.
08:53 Cabanossi joined
daxim that's sadahiro, I merely use his module 08:53
08:54 mr-foobar joined
samcv heh ok :) 08:55
08:56 mcmillhj left 08:57 labster left, cgfbee joined, labster joined 09:01 TEttinger left 09:07 mcmillhj joined 09:09 xinming left, xinming joined 09:11 mcmillhj left, robertle joined 09:15 movl left, gdonald left, gdonald joined 09:26 movl joined 09:27 mcmillhj joined 09:31 mcmillhj left 09:34 Cabanossi left 09:36 Cabanossi joined 09:43 dalek joined, ChanServ sets mode: +v dalek 09:45 movl left 09:51 g4 left 09:56 movl joined 09:58 mcmillhj joined 10:02 mcmillhj left 10:11 zakharyas joined 10:13 jeek left 10:18 ChoHag joined, mcmillhj joined 10:22 debugsectable6 joined, ChanServ sets mode: +v debugsectable6, mcmillhj left 10:23 debugsectable6 left 10:26 debugsectable6 joined, ChanServ sets mode: +v debugsectable6 10:27 araujo joined 10:31 debugsectable6 left 10:33 Cabanossi left 10:36 Cabanossi joined 10:44 cognominal joined 11:06 mcmillhj joined 11:08 SCHAAP137 is now known as SCHAPiE 11:11 mcmillhj left 11:14 xtreak joined 11:17 lucs joined 11:23 labster left, labster joined 11:24 labster left, labster joined, labster left 11:39 xtreak left 11:45 raschipi joined 11:48 lizmat left 12:01 xtreak joined 12:03 xtreak left 12:10 bjz joined 12:19 lizmat joined 12:21 sufrostico joined 12:50 llfourn left 12:51 mcmillhj joined 12:59 Skarsnik joined
Skarsnik Hello 13:01
13:02 Sound joined 13:03 Sound is now known as Guest25107
Skarsnik I am having a look at 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
" is that a bug or just something new in rakudo? x)
13:04 Guest25107 left 13:05 Sound_ joined
raschipi Skarsnik: There is changes related to that underway, have a look: rakudo.org/2017/04/02/upgrade-infor...rant-work/ 13:10
rakudo.org/2017/04/03/part-2-upgrad...rant-work/
dudz hi aussie homaphrodites 13:12
oh, wrong chan 13:13
Skarsnik raschipi, Thanks :)
raschipi np
13:13 bjz_ joined
Skarsnik hm 13:14
13:15 bjz left, cdg joined
Skarsnik damn, the doc is not up to date 13:16
raschipi Ther public docs don't really follow HEAD. 13:18
13:25 Zoffix joined
Zoffix Skarsnik: change `IO` to `IO::Handle` in signature. Using `IO` was an error that got caught by new improvements. 13:26
13:26 Sound_ left, Sound_ joined
Skarsnik Hello Zoffix :) IO::Path is an IO::Handle too? 13:26
the XML module use IO to handle these 2 types 13:27
Zoffix :S
Skarsnik: they're vastly different types :/
And no, it isn't an IO::handle
buggable: eco XML 13:28
buggable Zoffix, Found 12 results: XML, XML::Query, Flower, XML::Writer, XML::Canonical. See modules.perl6.org/#q=XML
Zoffix Skarsnik: XML module, as in XML.pm6?
Skarsnik github.com/supernovus/exemel/blob/...ML.pm6#L35
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.
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: github.com/supernovus/exemel/blob/...ML.pm6#L12 13:30
Sent a PR: github.com/supernovus/exemel/pull/43 13:32
Skarsnik I was going to do it x)
Zoffix Too slow :P 13:33
Skarsnik yeah, I was looking if I already still have a fork on it x) 13:34
13:34 vike left, mr-foobar left
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?
Skarsnik a year?
I haven't much contributed since a while. 13:36
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
new modules, when they can just use Perl 5's or Python's well-tested gems
And I remembered what the web stats URL was, I'd even say by how much usage grew :)
*and if I rememberd
Skarsnik Oh yeah, this page 13:39
Zoffix ah
13:39 kurahaupo__ joined
Zoffix huggable: stats 13:39
huggable Zoffix, www.p6c.org/stats/doc.perl6.org
13:40 vike joined
Skarsnik I was mostly hoping to get tickets on GPTrixie mostly, since writing binding in perl6 is rather quick 13:40
But it's good to see the language is alive :) 13:41
Zoffix Skarsnik: and another metric: we got 4 new core developers :)
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, gdonald left
Zoffix m: say "Based on docs.perl6.org stats, we're now {(36995/22481).round: .1}x larger" 13:46
camelia Based on docs.perl6.org stats, we're now 1.6x larger
Zoffix Pretty damn good. Nice, non-hypey growth
13:46 lizmat left 13:47 gdonald joined
Skarsnik and now, I must get back to annoying SNES stuff :( 13:48
Maybe I should look at how to fix RT127345 one day 13:51
seems interesting
13:51 bjz joined 13:53 Zoffix left, bjz_ left 14:02 lowbro left, dogbert17 joined
dogbert17 skarsnik: I believe that AlexDaniel was trying Gumbo and stumbled on a problem 14:02
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
Skarsnik: I was and I'm on 32 bit as well. Strange 14:04
14:05 movl left
dogbert17 but when trying again the spectre of Zoffix appears :) 14:05
14:05 zakharyas left
dogbert17 'Calling from-xml-stream(IO::Handle) will never work with declared signature (IO $input)' 14:06
I remember that if I ran the program with perl6-valgrind-m I got at least one invalid read
raschipi Zoffix has a bot that bridges this channel and his twitter, so he pops in when he wants to help. 14:09
Skarsnik lol 14:10
I could try on my 64 bits VPS 14:11
14:14 Zoffix joined
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
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
Zoffix The notices being rakudo.org/2017/04/03/part-2-upgrad...rant-work/ and rakudo.org/2017/04/02/upgrade-infor...rant-work/ 14:17
Also:
huggable: known IO breakage killstreak
huggable Zoffix, 3 (doc test suite; Text::CSV; XML.pm6)
14:17 maasta joined, bbkr left
Skarsnik Zoffix, was it you that write a script that check the whole ecosystem? (running test of all of them) 14:17
Zoffix huggable: known IO breakage killstreak :is: (doc test suite[fixed]; Text::CSV[fixed]; XML.pm6[PR to fix 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 github.com/supernovus/exemel/pull/43 ])
maasta hi everyone! quick question, is there an easy way to XOR two hexstring?
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
camelia 6042
moritz like that?
maasta yes, did not think to do it like that 14:20
thanks moritz
moritz m: say (:16('DEAD') +^ :16<BEEF>).base(16)
camelia 6042
moritz if you don't have literals
Zoffix m: my $a = "DEAD"; my $b = "BEEF"; say ([+^] ($a, $b)».parse-base: 16).base(16)
camelia 6042
moritz maasta: you're welcome
Zoffix m: my $a = "-DEAD"; my $b = "-BEEF"; say ([+^] ($a, $b)».parse-base: 16).base(16) 14:21
camelia 6042
Skarsnik m: my $a = "DEAD"; my $b = "BEEF"; say :16($a) +^ :16($b) 14:22
camelia 24642
14:22 rjbs- is now known as rjbs, curan left
Zoffix m: :16<-DEAD> 14:22
camelia 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, curan joined 14:23 curan left 14:28 andrzejku joined
andrzejku hi 14:28
:)
14:29 skycafemix joined
skycafemix y $a = gather { take 1; take 2;} my $x = $a[1]; say join ", ", $a; 14:30
perl6: my $a = gather { take 1; take 2;} my $x = $a[1]; say join ", ", $a;
camelia 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
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
[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;
camelia 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
[Coke] } only autocloses a block if a newline follows it. 14:32
er, a statement.
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
oh okay Coke thanks!
Sorry for newbie question, thanks. 14:34
raschipi #Perl6, where people answer so fast the answer comes before the questions.
14:34 Cabanossi left 14:36 gdonald left, Cabanossi joined 14:37 gdonald joined 14:38 ChoHag left 14:39 skycafemix left 14:43 ChoHag joined
[Coke] m: my $a = gather { take 1; take 2;}␤my $x = $a[1]; say join ", ", $a; 14:44
camelia 1 2
[Coke] ^^ you can pass newlines here, you just have to cheat. 14:45
timotimo unfortunately they already left :( 14:46
14:58 bjz left 15:01 tokomer joined 15:02 mr-foobar joined 15:12 zakharyas joined 15:14 domidumont left 15:16 zakharyas left, mr-foobar left 15:20 zakharyas joined 15:23 mcmillhj left 15:29 mr-foobar joined
Geth doc: b8fba97c5f | (Zoffix Znet)++ | doc/Type/IO.pod6
[io grant] Point out my $*CWD = chdir … is an error

Will eventually write a separate paragraph on all the evils of $*CWD and link to it from all the problematic areas.
15:29
15:29 mcmillhj joined 15:31 llfourn joined
Geth doc: b81148c7fe | (Zoffix Znet)++ | doc/Type/IO.pod6
Make wrong code being wrong more obvious

For those who read the code but not the prose
15:33
15:35 Cabanossi left 15:36 gregf_ joined, Cabanossi joined 15:47 tharkun_ left, tharkun_ joined 15:48 tharkun_ is now known as tharkun 15:56 abraxxa left 15:59 sufrostico left 16:08 spebern joined 16:11 AlexDaniel joined 16:36 khw joined 16:37 dakkar left 16:39 robertle left 16:46 sufrostico joined 16:48 wamba joined 16:49 espadrine joined 16:50 zakharyas left 17:02 mcmillhj left 17:10 mcmillhj joined 17:16 mcmillhj left 17:24 Skarsnik_ joined, mcmillhj joined 17:27 Skarsnik left 17:29 mcmillhj left
vendethiel m: my %h = a => b => 2; say $h<a><b>; my @i = <a b>; say @h{||@i} 17:29
camelia 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}
vendethiel ugh, 5os
m: my %h = a => b => 2; say %h<a><b>; my @i = <a b>; say %h{||@i}
camelia 2
(b => 2 (Any))
17:30 Skarsnik__ joined
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 2
(2)
(b => 2 (Any))
17:33 Skarsnik_ left 17:37 jeek joined 17:38 mcmillhj joined, sufrostico left 17:39 hahainte1net is now known as hahainternet 17:42 mcmillhj left 17:44 mcmillhj joined 17:49 Cabanossi left 17:52 Cabanossi joined, TeamBlast left, sufrostico joined 17:54 TeamBlast joined 17:57 gdonald left, gdonald joined 18:08 agentzh left 18:10 jeek left 18:13 jeek joined
Geth ecosystem: 1c05cea280 | (Zoffix Znet)++ | META.list
Add Failer to ecosystem

Handle Failures like a Pro: github.com/zoffixznet/perl6-Failer
18:20
18:21 cdg left 18:29 nhywyll joined 18:37 mcmillhj left 18:40 TeamBlast left 18:41 TEttinger joined, pecastro joined, TeamBlast joined, mcmillhj joined 18:48 beginner joined
beginner hi 18:49
raschipi hello
18:49 eroux joined
beginner is there a way to suspend the current process and start another process in perl6 18:49
raschipi You want to execute something else and wait for it to finish? 18:53
beginner want to execute something
raschipi "run" docs.perl6.org/routine/run Executes something and waits for it to finish. 18:55
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
any ideas for this?
19:00 labster joined
perlpilot beginner: I don't know about the "suspend this process" part, but calling something asynchronously doesn't seem too bad. 19:03
19:05 tokomer left
beginner if we take an producer consumer problem...instead of making it sleep i want it do some other process 19:06
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:08
vendethiel 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:10
19:11 Zoffix joined, sufrostico left
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.
(it took me some time to understand you mixed a postfix with with a do'ed statement with)
Zoffix m: my $n = 4; unless $n == 5 { $n = await start { sleep 2; 5 }; if $n == 5 { say "all good now" } } 19:13
camelia all good now
Zoffix beginner: ^ that does what you described.
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
huggable: Supplier
huggable Zoffix, Live: docs.perl6.org/type/Supplier
Zoffix vendethiel: oh! right :) Then I have two uses of R=> now :)
vendethiel \o/
Zoffix vendethiel: well, I guess just one, since it's the same usecase: twitter.com/zoffix/status/846449596649877504 19:15
And that tweet is from earlier time, so I forgot my discovery doh :P
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 darutoko left
Zoffix "eks uhr fat arrow" not too bad 19:17
Zoffix returns to hacking on Perl 6 bugs
\o
19:17 Zoffix left
beginner @raschipi & @ Zoffix : Thanks, will try it and let u know 19:18
19:18 jonas1 left 19:19 lizmat joined
lizmat . 19:22
samcv good * 19:28
moritz \o * 19:29
tbrowder hi, lizmat 19:30
lizmat tbrowder samcv moritz o/ 19:31
gfldex m: use MONKEY; class A::B {}; augment class Int { method B { A::B.new } }; sub s(B(Int)){ }; s 42; 19:35
camelia 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;
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 No such method 'A::B' for invocant of type 'Int'
in sub s at <tmp> line 1
in block <unit> at <tmp> line 1
gfldex well,
19:37 agentzh joined 19:38 spebern left 19:58 khw left 20:03 Cabanossi left 20:06 Cabanossi joined 20:11 ChristianS joined 20:14 cdg joined 20:24 ilbelkyr_ is now known as ilbelkyr 20:25 sufrostico joined 20:30 _28_ria left 20:33 agentzh left 20:34 agentzh joined 20:40 sufrostico left, sufrostico joined 20:47 bjz joined, nhywyll left, AndyDee left, lizmat left 20:50 sufrostico left 20:55 Skarsnik__ left 20:57 agentzh left 20:58 sftp left 20:59 sftp joined 21:03 agentzh joined 21:05 Cabanossi left 21:06 Cabanossi joined 21:07 RabidGravy left 21:08 raschipi left 21:10 skids left 21:17 espadrine left 21:18 wamba left 21:22 eroux left 21:24 ufobat left, agentzh left 21:28 agentzh joined 21:33 mcmillhj left 21:40 Sound_ left 21:43 agentzh left, bjz left 21:44 agentzh joined 21:53 mcmillhj joined, ChristianS left 21:54 agentzh left 21:56 agentzh joined 21:57 mcmillhj left 22:01 agentzh left 22:04 agentzh joined 22:08 pmurias left 22:09 mcmillhj joined 22:11 agentzh left 22:13 mcmillhj left 22:14 agentzh joined 22:18 bjz joined 22:24 agentzh left, mcmillhj joined 22:25 bjz left 22:27 agentzh joined 22:33 mcmillhj left 22:36 rpburkholder joined, ChoHag left 22:38 miatomi joined 22:40 mr-foobar left 22:42 mr-foobar joined 22:45 mcmillhj joined 22:47 gdonald left 22:48 gdonald joined 22:49 nbrown joined 22:52 mcmillhj left 22:53 sufrostico joined 22:59 kurahaupo__ is now known as kurahaupo 23:05 agentzh left 23:08 agentzh joined 23:10 miatomi left 23:24 lizmat joined 23:30 mcmillhj joined 23:35 mcmillhj left, mcmillhj joined 23:40 rindolf left 23:41 mcmillhj left 23:46 cdg left 23:52 mcmillhj joined 23:57 mcmillhj left