[01:12] *** squashable6 left [01:12] *** coverable6 joined [01:13] *** bloatable6 joined [01:13] *** squashable6 joined [01:13] *** unicodable6 joined [01:13] *** benchable6 joined [01:14] *** committable6 joined [01:14] *** notable6 joined [01:14] *** reportable6 joined [01:14] *** wildtrees left [01:14] *** quotable6 joined [01:14] *** cpan-raku left [01:14] *** nativecallable6 joined [01:15] *** statisfiable6 joined [01:15] *** releasable6 joined [01:15] *** cpan-raku joined [01:15] *** cpan-raku left [01:15] *** cpan-raku joined [01:15] *** shareable6 joined [02:10] *** marcusr joined [02:11] *** marcusr left [02:12] *** marcusr joined [02:12] *** marcusr left [02:12] *** marcusr joined [02:28] New module released to CPAN! LibXML (0.1.10) by 03WARRINGD [03:00] *** squashable6 left [03:01] *** squashable6 joined [03:06] *** Manifest0 joined [03:07] *** lgtaube left [03:31] * guifa is guessing the answer is no but … [03:31] is it possible to detect if a variable is bound to another, if the original is not in scope (so WHICH can’t be compared) [04:43] *** AlexDani` joined [04:47] *** AlexDaniel left [05:20] *** xinming_ left [05:21] *** xinming_ joined [05:26] *** laif joined [05:29] *** lgtaube joined [05:36] *** laif left [06:28] *** ZzZombo left [06:29] *** ZzZombo joined [06:29] *** ZzZombo left [06:29] *** ZzZombo joined [06:33] *** ZzZombo_ joined [06:36] *** ZzZombo left [06:37] *** ZzZombo_ is now known as ZzZombo [06:49] *** kubrat joined [06:51] *** stoned75 left [07:42] *** sarna joined [07:42] *** sarna left [08:32] *** xinming joined [08:36] *** xinming_ left [08:52] *** laif joined [08:58] *** laif left [09:08] .tell pmurias just curious… any news about the promise support? [09:08] SmokeMachine, I'll pass your message to pmurias [09:22] *** abraxxa left [09:23] *** abraxxa joined [09:23] *** pmurias joined [09:30] *** sena_kun joined [09:46] *** abraxxa left [09:46] *** abraxxa joined [09:48] *** scimon joined [09:49] hi pmurias! [10:02] *** Altai-man_ joined [10:04] *** finanalyst joined [10:05] *** sena_kun left [10:10] *** MasterDuke left [10:20] SmokeMachine: hi [10:20] 2019-11-20T09:08:02Z #raku pmurias just curious… any news about the promise support? [10:21] SmokeMachine: re promises, I haven't got back to rakudo.js in a while, I'm writing my CV atm but I think once that's done I'll have some time to look into the promises [10:22] pmurias: Thanks [10:28] *** jnthn joined [10:34] *** finanalyst left [10:44] *** pmurias left [10:49] *** Guest85410 joined [10:51] New module released to CPAN! Math::FFT::Libfftw3 (0.3.2) by 03FRITH [11:30] *** mid_laptop joined [11:51] *** AlexDani` is now known as AlexDaniel [11:51] *** AlexDaniel left [11:51] *** AlexDaniel joined [12:03] *** sena_kun joined [12:05] *** joule joined [12:05] *** Altai-man_ left [12:05] *** shlomif joined [12:07] *** shlomif left [12:07] *** rindolf left [12:08] *** rindolf joined [12:35] *** tejr joined [12:37] *** imataka7 joined [12:38] *** mid_laptop left [12:38] *** imataka7 left [12:41] *** pmurias joined [12:42] *** Guest85410 left [12:44] *** xinming left [12:46] *** xinming joined [12:47] *** Guest38485 joined [13:00] *** giulianideon joined [13:03] *** joule left [13:21] *** abraxxa left [13:22] *** abraxxa joined [13:25] *** mid_laptop joined [13:26] ¦ perl6.org: 7257ec6e9f | (Daniel Mita)++ (committed using GitHub Web editor) | source/resources/index.html [13:26] ¦ perl6.org: Perl 6 -> Raku for exercism.io [13:26] ¦ perl6.org: review: https://github.com/perl6/perl6.org/commit/7257ec6e9f [13:44] So I've managed to write my first Advent thing (as this week work is quiet for various reasons). I now need to go through and fix my spelling. [13:45] I've also updated the p6advent-md2html.p6 script :) hope it helps. [13:47] *** simcop2387 left [13:51] *** simcop2387 joined [13:51] *** simcop2387 left [13:51] *** simcop2387 joined [13:59] *** simcop2387 left [14:01] scimon: `aspell -c` :D [14:02] *** Altai-man_ joined [14:03] *** simcop2387 joined [14:05] *** sena_kun left [14:06] Ah crap, I submitted an issue to rakudo rather than problem solving [14:07] *** robertle joined [14:23] hm, what if Cro::HTTP::Client just hangs when I try to do a request? [14:24] code: my $client = Cro::HTTP::Client.new(base-uri => "https://www.google.com"); say await $client.get('/first'); [14:27] Question: how does the compiler distinguish `$` as either accessing a named capture using `$/` shorthand or an anonymous state variable using just `$`? [14:27] AlexDaniel, cro is from master? Oh, stop, we had a release not so long ago... disable http/2, I am afraid. :( [14:27] Altai-man_: :| [14:28] AlexDaniel, an issue with CRO_TRACE=1 will be welcomed, though [14:28] Altai-man_: how do I disable http/2? [14:28] AlexDaniel, :http<1.1> as an argument to `get` [14:30] o that seems to work [14:31] Altai-man_: does this make sense? https://github.com/croservices/cro/issues/110 [14:32] AlexDaniel, what about running with CRO_TRACE=1 logs? [14:33] *** mid_laptop left [14:34] I can reproduce the hang, but logs are not very helpful, any luck they are clearer for you? [14:35] it just stops after Cro::TLS::Connector EMIT TCP Message [14:35] AlexDaniel, the same for me. :( ok, thanks, sorry for the inconvenience. [14:36] yeah, a bummer :( [14:36] I can slap :http<1.1> on the client itself though, so it's a one line fix [14:37] but that's… a bit weird when you're trying to fake a user agent :D [14:37] like the existing browser one [14:37] I wonder if there are any browsers that don't do http/2 [14:38] I expect TempleOS could do with a patch [14:38] :D [14:50] *** pmurias left [15:07] *** pmurias joined [15:22] *** mid_laptop joined [15:22] MS-DOS [15:28] Altai-man_: is there any shorthand for getting the body? [15:28] Altai-man_: I'm a bit tired of writing `await await($client.post(…)).body;` [15:28] AlexDaniel, await $resp.body? no, no shortcuts I am aware of [15:30] Altai-man_: maybe there needs to be something… `$client.post-body` that returns the body right away, but that looks kinda ugly [15:31] I guess I can write my own function for that but I really wish there was something for it already [15:31] AlexDaniel, it does, and I think that the question here is that body can be streamed, like with files, for example [15:31] so a shortcut for your particular case seems appropriate to me [15:31] Altai-man_: sure but in most cases I just want to get the json back [15:33] sub body { await await($_).body } [15:58] *** zeylos joined [16:01] *** pmurias left [16:03] *** sena_kun joined [16:03] *** abraxxa left [16:03] *** abraxxa joined [16:03] AlexDaniel: don't forget there's .result [16:04] $client.post.result.body.result [16:04] it's at least a bit tidier [16:04] *** Altai-man_ left [16:05] It should return a «Promise but ResponseWithBody», which adds .body to the Promise, which just proxies self.result.body.result [16:05] imo [16:06] *** abraxxa left [16:06] I'll just use sub body($_) { await await($_).body } [16:06] :) [16:06] *** abraxxa joined [16:07] jnthn: is that a silly idea of mine? ^ To enrole the Promises Cro returns with suitable helper methods? [16:07] I think it's called punning..? [16:15] I'm more inclined to put methods `.get-body`, `.post-body`, ..., `.request-body` onto Cro::HTTP::Client, for when you only want the body. [16:29] *** maettu left [16:50] Where are we putting the Gists for the Advent calender? Links in the https://github.com/perl6/advent/blob/master/perl6advent-2019/schedule file? [16:59] scimon: why not just put it into the advent calendar wordpress? [17:02] *** mid_laptop left [17:03] JJ said he recommended a gist draft... [17:03] I'll pick it up tomorrow. [17:03] *** scimon left [17:11] from what I remember, wordpress is absolutely horrible when it comes to code snippets and stuff [17:11] so the best process is a markdown gist which you then convert with a script [17:17] *** robertle left [17:28] *** chloekek_ joined [17:52] after doing the advent a few times, and struggling with wordpress, i'm thinking of writing in rakupod and using Pod::To::HTML. wordpress i think also takes raw html. [17:54] it does, yes [17:54] generating html and copypasting it is the best way to do wordpress :) [17:55] btw, notice there are two raku advent "sites" as wordpress calls it: the old perl6advent and the new rakuadvent site, both with the Raku in the alias or title. [17:56] ? two websites? [17:58] that'ts what i just saw. internally the old site has raku in the title, but there is also a raku site for which jmerelo sent invitations to join. [17:59] the new site shows no posts [17:59] what's the link? [18:00] in my account now i show three sites, those two plus my personal one. [18:00] let me go to my laptop... [18:02] *** Altai-man_ joined [18:02] site address: https://wordpress.com/view/rakuadventcalendar.wordpress.com [18:03] w… why?… [18:03] :S [18:05] *** sena_kun left [18:09] i dunno, ask jj [18:09] anyhoo, this page shows info on allowable html: https://en.support.wordpress.com/code/#html-tags [18:28] jmerelo: why is there a separate raku advent blog? Why not use the existing one? [18:28] AlexDaniel, I'll pass your message to jmerelo [18:38] jnthn: would you want me to close the github issue on rakudo re timezones and repost on problem solving? [18:48] *** wildtrees joined [18:56] .tell jmerelo I've scheduled my advent blog posts [18:56] tyil, I'll pass your message to jmerelo [18:57] feel free to review for mistakes [18:57] a proofreading would be much appreciated [18:57] tyil: which WP site did you post on? [18:58] https://wordpress.com/posts/my/scheduled/rakuadventcalendar.wordpress.com [18:58] thnx [19:05] *** MasterDuke joined [19:12] *** leont joined [19:16] can anyone say what time is supposed to be entered in the WP scheduling window? the editor shows my local time is 6 hrs < UTC. so i assume i should schedule mine at 1801 the say before so it's published at 0001 UTC, correct? [19:17] s/say/day [19:18] afk& (i hope we sort out desired WP site before too long) [19:22] *** rindolf left [19:23] *** abraxxa left [19:23] *** abraxxa joined [20:03] *** sena_kun joined [20:05] *** Altai-man_ left [20:17] *** MasterDuke left [20:17] *** simcop2387 left [20:27] *** pmurias joined [20:43] *** giulianideon left [21:08] *** chloekek_ left [21:35] *** maxp69 joined [21:35] p6: say 3; [21:35] rakudo-moar ed8f5141f: OUTPUT: «3␤» [21:40] m: say 42 [21:40] rakudo-moar ed8f5141f: OUTPUT: «42␤» [22:02] *** Altai-man_ joined [22:03] m: use MONKEY-SEE-NO-EVAL; my $search = "a"; my $replace = "b"; my $string = q[abxxabsssa]; say EVAL "\$string ~~ s:g/{$search}/{$replace}/"; $string.say; [22:03] rakudo-moar ed8f5141f: OUTPUT: «(「a」 「a」 「a」)␤bbxxbbsssb␤» [22:04] Is there any way to do that without the EVAL? [22:04] *** sena_kun left [22:04] *** leont left [22:05] m: my $search = "a"; my $replace = "b"; say q[abxxabsssa].subst(rx/<{ $search}>/, $replace, :global) [22:05] rakudo-moar ed8f5141f: OUTPUT: «bbxxbbsssb␤» [22:05] Xliff: ^^ [22:05] <{ ... }> is a mini-EVAL in a regex [22:06] what is $search? Do you want it to be a pattern? [22:06] Yes [22:06] m: my $search = "a+"; my $replace = "b"; say q[abxxabsssa].subst(rx/<{ $search}>/, $replace, :global) [22:06] rakudo-moar ed8f5141f: OUTPUT: «bbxxbbsssb␤» [22:07] m: my $search = "a{2..2}"; my $replace = "b"; say q[abxxabsssa].subst(rx/<{ $search}>/, $replace, :global) [22:07] rakudo-moar ed8f5141f: OUTPUT: «abxxabsssa␤» [22:07] m: my $search = "a{2..2}"; my $replace = "b"; say q[abxxaabsssa].subst(rx/<{ $search}>/, $replace, :global) [22:07] rakudo-moar ed8f5141f: OUTPUT: «abxxaabsssa␤» [22:07] did you mean a**2 ? [22:07] m: my $search = "a**2"; my $replace = "b"; say q[abxxaabsssa].subst(rx/<{ $search}>/, $replace, :global) [22:07] rakudo-moar ed8f5141f: OUTPUT: «abxxbbsssa␤» [22:07] Xliff: Did you mean a**2 or a**{2..2}? [22:07] AlexDaniel++ Juerd++ [22:08] m: my $search = "a**2 b"; my $replace = "z"; say q[abxxaabsssa].subst(rx/<{ $search}>/, $replace, :global) [22:08] rakudo-moar ed8f5141f: OUTPUT: «abxxzsssa␤» [22:09] m: my $search = "a**2 b (..)"; my $replace = "z"; say q[abxxaabsssa].subst(rx/<{ $search}>/, $replace, :global) [22:09] rakudo-moar ed8f5141f: OUTPUT: «abxxzsa␤» [22:09] Niiice. [22:10] *** maxp69 left [22:16] will MAIN handle (:@opt-arg) properly? [22:42] m: my @a = ( rx/a/, rx/z/ ); my $b = 'bz'; say $b ~~ @a.any [22:42] rakudo-moar ed8f5141f: OUTPUT: «True␤» [22:42] m: my @a = ( rx/a/, rx/z/ ); my $b = 'kz'; say $b ~~ @a.any [22:42] rakudo-moar ed8f5141f: OUTPUT: «True␤» [22:42] m: my @a = ( rx/a/, rx/z/ ); my $b = 'kz'; $b ~~ @a.any [22:42] rakudo-moar ed8f5141f: ( no output ) [22:43] m: my @a = ( rx/a/, rx/z/ ); my $b = 'kz'; $b ~~ rx/a/ [22:43] rakudo-moar ed8f5141f: ( no output ) [22:43] m: my @a = ( rx/a/, rx/z/ ); my $b = 'kz'; say $b ~~ rx/a/ [22:43] rakudo-moar ed8f5141f: OUTPUT: «Nil␤» [22:43] m: my @a = ( rx/a/, rx/z/ ); my $b = 'kz'; say $b ~~ rx/z/ [22:43] rakudo-moar ed8f5141f: OUTPUT: «「z」␤» [22:43] m: my @a = ( rx/a/, rx/z/ ); my $b = 'ks'; say $b ~~ rx/a/ [22:43] rakudo-moar ed8f5141f: OUTPUT: «Nil␤» [22:43] m: my @a = ( rx/a/, rx/z/ ); my $b = 'ks'; $b ~~ @a.any [22:43] rakudo-moar ed8f5141f: ( no output ) [22:43] m: my @a = ( rx/a/, rx/z/ ); my $b = 'ks'; say $b ~~ @a.any [22:43] rakudo-moar ed8f5141f: OUTPUT: «False␤» [22:43] m: my @a = ( rx/a/, rx/z/ ); my $b = 'as'; say $b ~~ @a.any [22:43] rakudo-moar ed8f5141f: OUTPUT: «True␤» [22:50] *** cpan-raku left [22:51] *** cpan-raku joined [22:51] *** cpan-raku left [22:51] *** cpan-raku joined [23:25] What's the best way to get a result out of a Junction? [23:27] my @a = ; my @e = ; for @e { say $_ eq @a.any } [23:27] Xliff, rakudo-moar ed8f5141f: OUTPUT: «any(True, False, False, False)␤any(False, False, False, False)␤any(False, False, False, True)␤any(False, False, False, False)␤» [23:27] So I want to get the 3rd boolean out of that... [23:33] *** Altai-man_ left [23:35] m: my @a = ; my @e = ; for @e { say $_ Xeq @a } [23:35] rakudo-moar ed8f5141f: OUTPUT: «(True False False False)␤(False False False False)␤(False False False True)␤(False False False False)␤» [23:35] Xliff: don't use a junction then [23:58] :( [23:59] AlexDaniel: The value is stored in the Junction, why can't I access it. Especially in the case when it's NOT a boolean. [23:59] #stopjunctionabuse [23:59] The design of junctions is predicated (pun intended :P) on their usage eventually being collapsed down to a single boolean outcome.