»ö« 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
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?
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
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
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
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
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...
Kaiepi . 06:43
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
sena_kun 08:59
Xliff Kaiep++ 10:27
sena_kun Woodi, ping with github.com/slunski/perl6-text-ldif/pull/3 11:45
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
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
Woodi sena_kun: by "serialization" you mean converting hashes to ldif ? that would be nice to have 16:53
sena_kun yes 16:54
guifa2 Is there any way to do a non-recursive hyper? maybe a › instead of » ? 16:58
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
TreyHarris m: FatRat(e**(i * pi)) 18:19
camelia ( no output )
TreyHarris m: say FatRat(e**(i * pi)) 18:20
camelia -1
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
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)
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
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)
guifa2 codegolf.stackexchange.com/questio...450#187450 18:46
guifa2 I'm fairly certain that is now officially the ugliest P6 code I've ever written 18:47
sena_kun appreciates how code like `5.new(10)` just works 19:09
AlexDaniel sena_kun: it's not very explicit though 19:13
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
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
Xliff If I get a 401 with Cro::HTTP::Client, is there any way to get the error body? 19:35
sena_kun can't you await $resp.body? 19:38
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, ^
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
Xliff sena_kun++: LOL! That's exactly what I ended up doing! Thanks. 20:07
sena_kun np 20:08
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