»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'p6: say 3;' or /msg camelia p6: ... | irclog: irc.perl6.org or colabti.org/irclogger/irclogger_log/perl6 | UTF-8 is our friend! 🦋
Set by Zoffix on 25 July 2018.
timotimo en.wikipedia.org/wiki/Angela_Gossow ? 00:00
00:04 nepugia joined 00:17 nepugia left 00:22 aborazmeh joined, aborazmeh left, aborazmeh joined
Xliff Could someone take a quick look at github.com/Xliff/p6-Amazon-AWS-EC2...ribute.pm6 00:29
And tell me why uncommenting the use statement on line 5 results in the require statement on line 20 to return Nil rather than a ClassHOW?
00:30 aborazmeh left
Xliff s/ClassHOW/class or package/ 00:30
vrurg Xliff: I would assume you're require'ing same module you've already used. 00:34
00:35 squashable6 left 00:40 squashable6 joined, ChanServ sets mode: +v squashable6 00:46 Cabanossi left 00:50 noisegul left 00:58 Cabanossi joined 01:01 pamplemousse left 01:10 Sgeo_ joined 01:14 Sgeo__ left
irced yawns loudly so as to disturb the entire neighborhood. 01:43
Kaiepi releasable6, status 01:46
releasable6 Kaiepi, Next release will happen when it's ready. R6 is down. At least 2 blockers. 262 out of 664 commits logged (⚠ 1 warnings)
Kaiepi, Details: gist.github.com/38507f4ca5a62a77dd...e28afe82a7
Kaiepi guess i have a few more days to work on nativecall wide string support 01:47
irced cheers Kaiepi on. 01:52
01:53 molaf left 01:58 Kaiepi left, mowcat left 01:59 Kaiepi joined 02:05 Kaiepi left, Kaiepi joined, molaf joined
Xliff vrurg: How can I tell if I've already loaded a module? 02:20
vrurg Xliff: try checking for ::('Module::Name')
Xliff Yeah. Am doing that, and it comes out as Nil 02:21
But it's a thought. *sigh*
m: my $r = ::('Test'); $r.^name.say 02:22
camelia Failure
Xliff m: my $r = ::('Test'); $r.^name.say; my %class; %class<Test> = ::('Test'); %class.gist.say
camelia Failure
No such symbol 'Test'
in block <unit> at <tmp> line 1
irced slaps camelia in the face.
vrurg perl6 -MTest -e 'say ::("Test").HOW.^name' 28-06-19 22:21:52
Perl6::Metamodel::ModuleHOW
That what it should be.
Xliff vrurg++ 02:23
vrurg And if for any reason a module is not loaded you get Failure as a result.
Xliff I'll rework things and see if that helps.
vrurg Xliff: good luck!
vrurg leaves.
o/
Xliff vrurg: So do you know why "(require ::('Module::Name'))" would return Nil? 02:24
Oh. Well. o/
vrurg Ok. :)
You wrapped it in try {} – that's why. It masks away the problem.
docs.perl6.org/language/modules#in...ry-require 02:25
Xliff No. Those weren't curlies 02:26
vrurg It doesn't matter.
Xliff So remove the try?
vrurg Curly braces are often optional. See BEGIN say "ok"; and BEGIN { say "ok" }
Xliff So... "my $c; try { $c = require ::("Module::Name") }" 02:27
??
vrurg Depends on what you need. Basically, if it returns nil – it's a sign of a problem. Then if you check the return of ::('module') and get Failure – this is a problem. 02:28
Xliff Yeah. Getting that . It's finding the root problem thats...well... the problem! :)
vrurg ok, really time to go. Try the docs, they're pretty good on this subject.
o/
Xliff Yeah. I've been reading them left right and sideways.
One more go won't hurt.
o/
m: Nil.HOW.^name.say 02:29
camelia Perl6::Metamodel::ClassHOW
Xliff ^^ That also
m: ::('Test').^\name.say 02:30
camelia 5===SORRY!5=== Error while compiling <tmp>
Malformed postfix call
at <tmp>:1
------> 3::('Test').^7⏏5\name.say
Xliff m: ::('Test').^name.say
camelia Failure
02:36 Cabanossi left 02:37 aborazmeh joined, aborazmeh left, aborazmeh joined 02:42 Cabanossi joined 03:42 evalable6 left, squashable6 left, committable6 joined, ChanServ sets mode: +v committable6, releasable6 joined, ChanServ sets mode: +v releasable6 03:43 notable6 joined, shareable6 joined, coverable6 joined, ChanServ sets mode: +v coverable6, unicodable6 joined, ChanServ sets mode: +v unicodable6 03:44 squashable6 joined 03:45 bloatable6 joined, ChanServ sets mode: +v bloatable6 03:46 evalable6 joined, ChanServ sets mode: +v evalable6, greppable6 joined, ChanServ sets mode: +v greppable6, quotable6 joined, undersightable6 joined, statisfiable6 joined, benchable6 joined, ChanServ sets mode: +v benchable6, bisectable6 joined 03:47 nativecallable6 joined, reportable6 joined, ChanServ sets mode: +v reportable6
irced asks Camelia what she thinks about Julia. 03:47
Xliff ugexe vrurg timotimo: If you're interested, this is what seems to work --> github.com/Xliff/p6-Amazon-AWS-EC2...ribute.pm6 04:09
04:47 evalable6 left 04:51 evalable6 joined, ChanServ sets mode: +v evalable6 04:53 irced left 05:08 aborazmeh left 05:26 sauvin joined 05:27 sauvin left 05:33 khisanth_ left 05:39 sauvin joined 05:59 khisanth_ joined 06:11 molaf left 06:19 nadim joined
nadim morning P6 06:19
yoleaux 23 Jun 2019 08:01Z <Woodi> nadim: to install via zef DDT required: s/pm/pm6/ in META6.json, line 14
23 Jun 2019 08:04Z <Woodi> nadim: I tried to parse 132k html file but it instantly got 3G of 4G RAM and I killed it when swap was almoust 1G...
06:20 ufobat_ joined 06:24 ufobat left
Kaiepi . 06:43
07:07 aborazmeh joined, aborazmeh left, aborazmeh joined 07:17 xinming left 07:23 xinming joined 07:41 sena_kun joined 07:54 titsuki joined
Kaiepi aaand done implementing support for wchar_t, wint_t, char16_t, and char32_t! now i just need to implement support for wide strings themselves 08:37
08:51 rindolf joined
sena_kun 08:59
09:16 natrys joined 09:22 aborazmeh left 09:24 aborazmeh joined, aborazmeh left, aborazmeh joined 09:29 aborazmeh left 10:03 Sgeo_ left 10:09 Black_Ribbon left
Xliff Kaiep++ 10:27
10:44 Sgeo joined 11:03 reach_satori left 11:17 nepugia joined 11:33 reach_satori joined 11:37 reach_satori_ joined 11:40 reach_satori left
sena_kun Woodi, ping with github.com/slunski/perl6-text-ldif/pull/3 11:45
11:59 docdoctor joined 12:02 mowcat joined 12:20 docdoctor left 12:45 natrys left 12:52 molaf joined 12:57 natrys joined 12:58 mowcat left 13:17 lucasb joined 13:20 hankache joined 13:23 bittersweetsymph joined 13:46 Cabanossi left 13:53 Cabanossi joined 14:00 bittersweetsymph left 14:02 reach_satori_ left
Woodi hallo #perl6 :) 14:33
yoleaux 28 Jun 2019 22:06Z <sena_kun> Woodi: I re-did the module, now it parses all RFC examples, still exports hashes, but the structure is more complex. will update documentation tomorrow and do a PR
sena_kun o/
Woodi sena_kun: merged and seems working :)
sena_kun \o/
thanks!
Woodi sena_kun: loots of work you have done !
sena_kun wasn't worse than patching ASN::META to get a proper support of OCTET STRING type. :) 14:35
Woodi sena_kun: if you want to do more work on it you can just make yourself maintainer and point ecosystem to your repo 14:36
but if not then that's ok too 14:37
sena_kun Woodi, I think now it does everything that I'd expect from "Text::LDIF" name, hence I bumped its version to 1.0. Maybe I'd add some serializer, but it can as well live in some other place. 14:38
Woodi, if you insist on passing the maintainence to me, I don't mind too much, but I had no intention of "stealing" the module, just wanted it to support more features. 14:39
14:40 hankache left 14:41 AlexDaniel left 14:42 AlexDaniel joined
Woodi sena_kun: ok, then if you do more work then just change location in ecosystem to your repo for easy of work. then if you want to have less modules you maintain I voluntire to take it back 14:54
sena_kun Woodi, sure, will do so if something other will be needed. 14:55
15:13 sftp joined 15:36 Cabanossi left 15:43 mowcat joined 15:46 Cabanossi joined 15:48 pamplemousse joined 15:55 hankache joined 16:07 AlexDaniel left 16:17 hankache left 16:30 nepugia left 16:31 AlexDaniel joined 16:48 nepugia joined 16:51 pamplemousse left
Woodi sena_kun: by "serialization" you mean converting hashes to ldif ? that would be nice to have 16:53
16:54 nepugia_ joined
sena_kun yes 16:54
16:55 nepugia left 16:57 guifa2 joined
guifa2 Is there any way to do a non-recursive hyper? maybe a › instead of » ? 16:58
17:07 zakharyas joined 17:09 nepugia_ left
ugexe .hyper 17:32
yoleaux 28 Jun 2019 23:50Z <patrickb83> ugexe: I'd appreciate a look: colabti.org/irclogger/irclogger_lo...06-28#l257
ugexe m: (1,(1,2),).hyper.map(*.say)
camelia 1
(1 2)
ugexe m: (1,(1,2),)>>.say
camelia 1
1
2
ugexe and that isn't what recursion is 17:33
17:37 sena_kun left, sena_kun joined 17:46 pamplemousse joined 18:16 tyilanmenyn joined
TreyHarris m: FatRat(e**(i * pi)) 18:19
camelia ( no output )
TreyHarris m: say FatRat(e**(i * pi)) 18:20
camelia -1
18:20 tyilanmenyn left
TreyHarris I don't see how that gives the right answer, I don't see a special case that rounds when the denominator gets too large nor do I see where the Euler identity is handled trigonometrically, which can give the correct answer numerically. It looks like it's doing algebra. It's mathemagical ;-) 18:23
m: Rat(e**(i * pi))
camelia ( no output )
TreyHarris m: say Rat(e**(i * pi))
camelia -1
TreyHarris That makes perfect sense, because it underflows to -1
18:25 tyilanmenyn joined
TreyHarris If there were a Complex[Fat]Rat, I could delve into this further without hand-tracing code. Seminumerical algorithms have never been my strong suit... 18:28
m: my $eu = e**(i * (pi/2)); say FatRat($eu); 18:31
camelia Cannot convert 6.123233995736766e-17+1i to FatRat: imaginary part not zero
in block <unit> at <tmp> line 1
TreyHarris m: my $eu = e**(i * (pi/2)); say FatRat($eu**2);
camelia -1
TreyHarris Oh, is this logic in the Complex bridge? Hrm... 18:32
lol, I was briefly thinking "what's is a non-imaginary value that I can multiply by something (positively) proportional to itself to get a negative so I can test this?" (The answer is quaternions, obviously.) 18:34
Xliff m: unit package Bleah; say $*PACKAGE 18:38
camelia Dynamic variable $*PACKAGE not found
in block <unit> at <tmp> line 1
Xliff m: package Bleah { say $*PACKAGE }
camelia Dynamic variable $*PACKAGE not found
in block <unit> at <tmp> line 1
Xliff m: package Bleah { say $?PACKAGE }
camelia (Bleah)
18:38 guifa2 left 18:39 guifa2 joined
Xliff m: package A::B::Bleah { say $?PACKAGE } 18:39
camelia (Bleah)
Xliff m: package A::B::Bleah { say $?PACKAGE.^name }
camelia A::B::Bleah
Xliff m: package A::B::Bleah { say $?PACKAGE.Str }
camelia Use of uninitialized value of type A::B::Bleah in string context.
Methods .^name, .perl, .gist, or .say can be used to stringify it to something meaningful.

in block at <tmp> line 1
Xliff m: package A::B::Bleah { say $?PACKAGE.^shortname }
camelia Bleah
18:41 tyilanmenyn left, tyilanmenyn joined 18:42 Sgeo_ joined, muzyka joined, Sgeo left 18:43 tyilanmenyn left 18:44 tyilanmenyn joined
muzyka www.youtube.com/watch?v=5iqjRhe88UI 18:45
guifa2 ugexe: it's for code golf :-) I guess I should have said "that doesn't operate on embedded lists" lol 18:46
(yes, I'm just looking for a map shorthand ha)
18:46 mowcat left
guifa2 codegolf.stackexchange.com/questio...450#187450 18:46
18:46 Cabanossi left
guifa2 I'm fairly certain that is now officially the ugliest P6 code I've ever written 18:47
18:48 Cabanossi joined 18:49 Sgeo joined, Sgeo_ left 19:02 tyilanmenyn left 19:05 pmurias joined 19:06 tyilanmenyn joined 19:09 molaf left, nepugia joined
sena_kun appreciates how code like `5.new(10)` just works 19:09
AlexDaniel sena_kun: it's not very explicit though 19:13
19:13 hankache joined 19:18 hankache left 19:19 nadim left
sena_kun AlexDaniel, what do you mean? 19:21
AlexDaniel sena_kun: I don't find it readable
m: say 5.WHAT.new(10) # kinda better but relies on dodgy WHAT 19:22
camelia 10
sena_kun well, of course, the example is just an example. I am using it to create correct subclasses when it is not very nice to push metadata around. 19:23
19:23 tyilanmenyn left
sena_kun `$str.new(Blob.new($input));` to be precise. :) 19:23
sena_kun patches ASN stack to treat OCTET STRING as Blob|Str instead of just Str 19:24
19:24 tyilanmenyn joined 19:25 Black_Ribbon joined 19:34 empee0 joined
Xliff If I get a 401 with Cro::HTTP::Client, is there any way to get the error body? 19:35
19:36 zakharyas left
sena_kun can't you await $resp.body? 19:38
19:39 pamplemousse left, pamplemousse joined
sena_kun ah, you have a Client exception, right? The response is in its $.response attribute, so you can try `CATCH { when X::Cro...::Client { note await .response.body } }` 19:39
or something along the lines
Xliff, ^
19:41 guifa2 left 19:46 guifa2 joined, lucasb left 19:51 pamplemousse left, pamplemousse joined 19:56 patrickb joined 19:59 sauvin left 20:05 pamplemousse left, pamplemousse joined
Xliff m: say 5 ~~ 1..10 20:05
camelia True
Xliff m: say 5 ~~ 1...10
camelia (False True True True True True True True True True True True True True True True True True True True True True True True True True True True True True True True True True True True True True True True True True True True True True True True True True…
Xliff m: say 5 ~~ 1..10 20:06
camelia True
Xliff m: say -1 ~~ 1..10
camelia False
20:07 muzyka left
Xliff sena_kun++: LOL! That's exactly what I ended up doing! Thanks. 20:07
sena_kun np 20:08
20:10 guifa2 left 20:22 tyilanmenyn left 20:30 guifa2 joined 20:33 veesh joined 20:34 veesh left, veesh joined, pamplemousse_ joined 20:37 pamplemousse left 20:38 nadim joined 21:04 sena_kun left 21:07 HarmtH_ joined 21:13 pamplemousse_ left 21:30 tyilanmenyn joined 21:33 aindilis left 21:37 tyilanmenyn is now known as tyil 21:40 aindilis joined 21:47 Cabanossi left, aindilis left 21:48 aindilis joined 21:50 Cabanossi joined 21:51 |oLa| joined 21:52 veesh left 21:57 |oLa| left 21:58 pmurias left 22:06 pamplemousse_ joined 22:11 Sgeo_ joined 22:13 molaf joined 22:15 Sgeo left 22:16 pamplemousse_ left 22:20 pmurias joined 22:21 reach_satori_ joined 22:32 natrys left 22:37 molaf left 23:07 vrurg left 23:08 vrurg joined 23:15 vrurg left 23:18 vrurg joined 23:32 rindolf left 23:33 pmurias left 23:44 patrickb left 23:45 patrickb joined
xinming releasable6: status 23:59
releasable6 xinming, Next release will happen when it's ready. R6 is down. At least 1 blocker. 262 out of 666 commits logged (⚠ 1 warnings)
xinming, Details: gist.github.com/6f7f7559f9ba9d6758...2fc4c6d5aa