IRCloggy #perl6 2019-06-29

Logs Search ←Prev date Next date→ Channels Documentation

Provider of IRC logs since 2005.
WARNING: As Freenode became unjoinable and lost all warnings in topics, we cannot log channels on Freenode anymore.

2019-06-29

timotimo https://en.wikipedia.org/wiki/Angela_Gossow ?00:00
nepugia joined00:04
nepugia left00:17
aborazmeh joined00:22
aborazmeh left00:22
aborazmeh joined00:22
Xliff Could someone take a quick look at https://github.com/Xliff/p6-Amazon-AWS-EC2/blob/DescribeImageAttribute/lib/Amazon/AWS/EC2/Tests/DescribeImageAttribute.pm600: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:29
aborazmeh left00:30
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
squashable6 left00:35
squashable6 joined00:40
ChanServ set mode: +v00:40
Cabanossi left00:46
noisegul left00:50
Cabanossi joined00:58
pamplemousse left01:01
Sgeo_ joined01:10
Sgeo__ left01:14
irced yawns loudly so as to disturb the entire neighborhood.01:43
Kaiepi releasable6, status01: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)01:46
Kaiepi, Details: https://gist.github.com/38507f4ca5a62a77dd9405e28afe82a701:46
Kaiepi guess i have a few more days to work on nativecall wide string support01:47
irced cheers Kaiepi on.01:52
molaf left01:53
Kaiepi left01:58
mowcat left01:58
Kaiepi joined01:59
Kaiepi left02:05
Kaiepi joined02:05
molaf joined02:05
Xliff vrurg: How can I tell if I've already loaded a module?02:20
vrurg Xliff: try checking for ::('Module::Name')02:20
Xliff Yeah. Am doing that, and it comes out as Nil02:21
But it's a thought. *sigh*02:21
m: my $r = ::('Test'); $r.^name.say02:22
camelia rakudo-moar 2dc68c922: OUTPUT: «Failure␤»02:22
Xliff m: my $r = ::('Test'); $r.^name.say; my %class; %class<Test> = ::('Test'); %class.gist.say02:22
camelia rakudo-moar 2dc68c922: OUTPUT: «Failure␤No such symbol 'Test'␤ in block <unit> at <tmp> line 1␤␤»02:22
irced slaps camelia in the face.02:22
vrurg perl6 -MTest -e 'say ::("Test").HOW.^name' 28-06-19 22:21:5202:22
Perl6::Metamodel::ModuleHOW02:22
That what it should be.02:22
Xliff vrurg++02:23
vrurg And if for any reason a module is not loaded you get Failure as a result.02:23
Xliff I'll rework things and see if that helps.02:23
vrurg Xliff: good luck!02:23
vrurg leaves.02:23
vrurg o/02:23
Xliff vrurg: So do you know why "(require ::('Module::Name'))" would return Nil?02:24
Oh. Well. o/02:24
vrurg Ok. :)02:24
You wrapped it in try {} – that's why. It masks away the problem.02:24
https://docs.perl6.org/language/modules#index-entry-require02:25
Xliff No. Those weren't curlies02:26
vrurg It doesn't matter.02:26
Xliff So remove the try?02:26
vrurg Curly braces are often optional. See BEGIN say "ok"; and BEGIN { say "ok" }02:26
Xliff So... "my $c; try { $c = require ::("Module::Name") }"02:27
??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! :)02:28
vrurg ok, really time to go. Try the docs, they're pretty good on this subject.02:28
o/02:28
Xliff Yeah. I've been reading them left right and sideways.02:28
One more go won't hurt.02:28
o/02:28
m: Nil.HOW.^name.say02:29
camelia rakudo-moar 2dc68c922: OUTPUT: «Perl6::Metamodel::ClassHOW␤»02:29
Xliff ^^ That also02:29
m: ::('Test').^\name.say02:30
camelia rakudo-moar 2dc68c922: OUTPUT: «=== SORRY!=== Error while compiling <tmp>␤Malformed postfix call␤at <tmp>:1␤------> ::('Test').^ \name.say ␤»02:30
Xliff m: ::('Test').^name.say02:30
camelia rakudo-moar 2dc68c922: OUTPUT: «Failure␤»02:30
Cabanossi left02:36
aborazmeh joined02:37
aborazmeh left02:37
aborazmeh joined02:37
Cabanossi joined02:42
evalable6 left03:42
squashable6 left03:42
committable6 joined03:42
ChanServ set mode: +v03:42
releasable6 joined03:42
ChanServ set mode: +v03:42
notable6 joined03:43
shareable6 joined03:43
coverable6 joined03:43
ChanServ set mode: +v03:43
unicodable6 joined03:43
ChanServ set mode: +v03:43
squashable6 joined03:44
bloatable6 joined03:45
ChanServ set mode: +v03:45
evalable6 joined03:46
ChanServ set mode: +v03:46
greppable6 joined03:46
ChanServ set mode: +v03:46
quotable6 joined03:46
undersightable6 joined03:46
statisfiable6 joined03:46
benchable6 joined03:46
ChanServ set mode: +v03:46
bisectable6 joined03:46
nativecallable6 joined03:47
reportable6 joined03:47
ChanServ set mode: +v03:47
irced asks Camelia what she thinks about Julia.03:47
Xliff ugexe vrurg timotimo: If you're interested, this is what seems to work --> https://github.com/Xliff/p6-Amazon-AWS-EC2/blob/DescribeImageAttribute/lib/Amazon/AWS/EC2/Tests/DescribeImageAttribute.pm604:09
evalable6 left04:47
evalable6 joined04:51
ChanServ set mode: +v04:51
irced left04:53
aborazmeh left05:08
sauvin joined05:26
sauvin left05:27
khisanth_ left05:33
sauvin joined05:39
khisanth_ joined05:59
molaf left06:11
nadim joined06:19
nadim morning P606:19
yoleaux 23 Jun 2019 08:01Z <Woodi> nadim: to install via zef DDT required: s/pm/pm6/ in META6.json, line 1406:19
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:19
ufobat_ joined06:20
ufobat left06:24
Kaiepi .06:43
aborazmeh joined07:07
aborazmeh left07:07
aborazmeh joined07:07
xinming left07:17
xinming joined07:23
sena_kun joined07:41
titsuki joined07:54
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 themselves08:37
rindolf joined08:51
sena_kun 08:59
natrys joined09:16
aborazmeh left09:22
aborazmeh joined09:24
aborazmeh left09:24
aborazmeh joined09:24
aborazmeh left09:29
Sgeo_ left10:03
Black_Ribbon left10:09
Xliff Kaiep++10:27
Sgeo joined10:44
reach_satori left11:03
nepugia joined11:17
reach_satori joined11:33
reach_satori_ joined11:37
reach_satori left11:40
sena_kun Woodi, ping with https://github.com/slunski/perl6-text-ldif/pull/311:45
docdoctor joined11:59
mowcat joined12:02
docdoctor left12:20
natrys left12:45
molaf joined12:52
natrys joined12:57
mowcat left12:58
lucasb joined13:17
hankache joined13:20
bittersweetsymph joined13:23
Cabanossi left13:46
Cabanossi joined13:53
bittersweetsymph left14:00
reach_satori_ left14:02
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 PR14:33
sena_kun o/14:33
Woodi sena_kun: merged and seems working :)14:33
sena_kun \o/14:33
thanks!14:33
Woodi sena_kun: loots of work you have done !14:33
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 repo14:36
but if not then that's ok too14: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
hankache left14:40
AlexDaniel left14:41
AlexDaniel joined14:42
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 back14:54
sena_kun Woodi, sure, will do so if something other will be needed.14:55
sftp joined15:13
Cabanossi left15:36
mowcat joined15:43
Cabanossi joined15:46
pamplemousse joined15:48
hankache joined15:55
AlexDaniel left16:07
hankache left16:17
nepugia left16:30
AlexDaniel joined16:31
nepugia joined16:48
pamplemousse left16:51
Woodi sena_kun: by "serialization" you mean converting hashes to ldif ? that would be nice to have16:53
nepugia_ joined16:54
sena_kun yes16:54
nepugia left16:55
guifa2 joined16:57
guifa2 Is there any way to do a non-recursive hyper? maybe a › instead of » ?16:58
zakharyas joined17:07
nepugia_ left17:09
ugexe .hyper17:32
yoleaux 28 Jun 2019 23:50Z <patrickb83> ugexe: I'd appreciate a look: https://colabti.org/irclogger/irclogger_log/perl6-dev?date=2019-06-28#l25717:32
ugexe m: (1,(1,2),).hyper.map(*.say)17:32
camelia rakudo-moar c227693a6: OUTPUT: «1␤(1 2)␤»17:32
ugexe m: (1,(1,2),)>>.say17:32
camelia rakudo-moar c227693a6: OUTPUT: «1␤1␤2␤»17:32
ugexe and that isn't what recursion is17:33
sena_kun left17:37
sena_kun joined17:37
pamplemousse joined17:46
tyilanmenyn joined18:16
TreyHarris m: FatRat(e**(i * pi))18:19
camelia rakudo-moar c227693a6: ( no output )18:19
TreyHarris m: say FatRat(e**(i * pi))18:20
camelia rakudo-moar c227693a6: OUTPUT: «-1␤»18:20
tyilanmenyn left18:20
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))18:23
camelia rakudo-moar c227693a6: ( no output )18:23
TreyHarris m: say Rat(e**(i * pi))18:23
camelia rakudo-moar c227693a6: OUTPUT: «-1␤»18:23
TreyHarris That makes perfect sense, because it underflows to -118:23
tyilanmenyn joined18:25
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 rakudo-moar c227693a6: OUTPUT: «Cannot convert 6.123233995736766e-17+1i to FatRat: imaginary part not zero␤ in block <unit> at <tmp> line 1␤␤»18:31
TreyHarris m: my $eu = e**(i * (pi/2)); say FatRat($eu**2);18:31
camelia rakudo-moar c227693a6: OUTPUT: «-1␤»18:31
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 $*PACKAGE18:38
camelia rakudo-moar c227693a6: OUTPUT: «Dynamic variable $*PACKAGE not found␤ in block <unit> at <tmp> line 1␤␤»18:38
Xliff m: package Bleah { say $*PACKAGE }18:38
camelia rakudo-moar c227693a6: OUTPUT: «Dynamic variable $*PACKAGE not found␤ in block <unit> at <tmp> line 1␤␤»18:38
Xliff m: package Bleah { say $?PACKAGE }18:38
camelia rakudo-moar c227693a6: OUTPUT: «(Bleah)␤»18:38
guifa2 left18:38
guifa2 joined18:39
Xliff m: package A::B::Bleah { say $?PACKAGE }18:39
camelia rakudo-moar c227693a6: OUTPUT: «(Bleah)␤»18:39
Xliff m: package A::B::Bleah { say $?PACKAGE.^name }18:39
camelia rakudo-moar c227693a6: OUTPUT: «A::B::Bleah␤»18:39
Xliff m: package A::B::Bleah { say $?PACKAGE.Str }18:39
camelia rakudo-moar c227693a6: OUTPUT: «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␤»18:39
Xliff m: package A::B::Bleah { say $?PACKAGE.^shortname }18:39
camelia rakudo-moar c227693a6: OUTPUT: «Bleah␤»18:39
tyilanmenyn left18:41
tyilanmenyn joined18:41
Sgeo_ joined18:42
muzyka joined18:42
Sgeo left18:42
tyilanmenyn left18:43
tyilanmenyn joined18:44
muzyka https://www.youtube.com/watch?v=5iqjRhe88UI18:45
guifa2 ugexe: it's for code golf :-) I guess I should have said "that doesn't operate on embedded lists" lol18:46
(yes, I'm just looking for a map shorthand ha)18:46
mowcat left18:46
guifa2 https://codegolf.stackexchange.com/questions/67611/hamilton-is-coming-to-town/187450#18745018:46
Cabanossi left18:46
guifa2 I'm fairly certain that is now officially the ugliest P6 code I've ever written18:47
Cabanossi joined18:48
Sgeo joined18:49
Sgeo_ left18:49
tyilanmenyn left19:02
pmurias joined19:05
tyilanmenyn joined19:06
molaf left19:09
nepugia joined19:09
sena_kun appreciates how code like `5.new(10)` just works19:09
AlexDaniel sena_kun: it's not very explicit though19:13
hankache joined19:13
hankache left19:18
nadim left19:19
sena_kun AlexDaniel, what do you mean?19:21
AlexDaniel sena_kun: I don't find it readable19:21
m: say 5.WHAT.new(10) # kinda better but relies on dodgy WHAT19:22
camelia rakudo-moar c227693a6: OUTPUT: «10␤»19:22
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
tyilanmenyn left19:23
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 Str19:24
tyilanmenyn joined19:24
Black_Ribbon joined19:25
empee0 joined19:34
Xliff If I get a 401 with Cro::HTTP::Client, is there any way to get the error body?19:35
zakharyas left19:36
sena_kun can't you await $resp.body?19:38
pamplemousse left19:39
pamplemousse joined19:39
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 lines19:39
Xliff, ^19:39
guifa2 left19:41
guifa2 joined19:46
lucasb left19:46
pamplemousse left19:51
pamplemousse joined19:51
patrickb joined19:56
sauvin left19:59
pamplemousse left20:05
pamplemousse joined20:05
Xliff m: say 5 ~~ 1..1020:05
camelia rakudo-moar c227693a6: OUTPUT: «True␤»20:05
Xliff m: say 5 ~~ 1...1020:05
camelia rakudo-moar c227693a6: OUTPUT: «(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…»20:05
Xliff m: say 5 ~~ 1..1020:06
camelia rakudo-moar c227693a6: OUTPUT: «True␤»20:06
Xliff m: say -1 ~~ 1..1020:06
camelia rakudo-moar c227693a6: OUTPUT: «False␤»20:06
muzyka left20:07
Xliff sena_kun++: LOL! That's exactly what I ended up doing! Thanks.20:07
sena_kun np20:08
guifa2 left20:10
tyilanmenyn left20:22
guifa2 joined20:30
veesh joined20:33
veesh left20:34
veesh joined20:34
pamplemousse_ joined20:34
pamplemousse left20:37
nadim joined20:38
sena_kun left21:04
HarmtH_ joined21:07
pamplemousse_ left21:13
tyilanmenyn joined21:30
aindilis left21:33
tyilanmenyntyil21:37
aindilis joined21:40
Cabanossi left21:47
aindilis left21:47
aindilis joined21:48
Cabanossi joined21:50
|oLa| joined21:51
veesh left21:52
|oLa| left21:57
pmurias left21:58
pamplemousse_ joined22:06
Sgeo_ joined22:11
molaf joined22:13
Sgeo left22:15
pamplemousse_ left22:16
pmurias joined22:20
reach_satori_ joined22:21
natrys left22:32
molaf left22:37
vrurg left23:07
vrurg joined23:08
vrurg left23:15
vrurg joined23:18
rindolf left23:32
pmurias left23:33
patrickb left23:44
patrickb joined23:45
xinming releasable6: status23: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)23:59
xinming, Details: https://gist.github.com/6f7f7559f9ba9d6758f19e2fc4c6d5aa23:59

Logs Search ←Prev date Next date→ Channels Documentation