| 2019-06-29 |
|
timotimo
| https://en.wikipedia.org/wiki/Angela_Gossow ? | 00:00 |
| → nepugia joined | 00:04 |
| ← nepugia left | 00:17 |
| → aborazmeh joined | 00:22 |
| ← aborazmeh left | 00:22 |
| → aborazmeh joined | 00: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.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:29 |
| ← aborazmeh left | 00: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 left | 00:35 |
| → squashable6 joined | 00:40 |
| ChanServ set mode: +v | 00:40 |
| ← Cabanossi left | 00:46 |
| ← noisegul left | 00:50 |
| → Cabanossi joined | 00:58 |
| ← pamplemousse left | 01:01 |
| → Sgeo_ joined | 01:10 |
| ← Sgeo__ left | 01:14 |
|
| 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) | 01:46 |
|
| Kaiepi, Details: https://gist.github.com/38507f4ca5a62a77dd9405e28afe82a7 | 01:46 |
|
Kaiepi
| guess i have a few more days to work on nativecall wide string support | 01:47 |
|
| irced cheers Kaiepi on. | 01:52 |
| ← molaf left | 01:53 |
| ← Kaiepi left | 01:58 |
| ← mowcat left | 01:58 |
| → Kaiepi joined | 01:59 |
| ← Kaiepi left | 02:05 |
| → Kaiepi joined | 02:05 |
| → molaf joined | 02: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 Nil | 02:21 |
|
| But it's a thought. *sigh* | 02:21 |
|
| m: my $r = ::('Test'); $r.^name.say | 02:22 |
|
camelia
| rakudo-moar 2dc68c922: OUTPUT: «Failure» | 02:22 |
|
Xliff
| m: my $r = ::('Test'); $r.^name.say; my %class; %class<Test> = ::('Test'); %class.gist.say | 02:22 |
|
camelia
| rakudo-moar 2dc68c922: OUTPUT: «FailureNo 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:52 | 02:22 |
|
| Perl6::Metamodel::ModuleHOW | 02: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-require | 02:25 |
|
Xliff
| No. Those weren't curlies | 02: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.say | 02:29 |
|
camelia
| rakudo-moar 2dc68c922: OUTPUT: «Perl6::Metamodel::ClassHOW» | 02:29 |
|
Xliff
| ^^ That also | 02:29 |
|
| m: ::('Test').^\name.say | 02:30 |
|
camelia
| rakudo-moar 2dc68c922: OUTPUT: «=== SORRY!=== Error while compiling <tmp>Malformed postfix callat <tmp>:1------> ::('Test').^ ⏏ \name.say » | 02:30 |
|
Xliff
| m: ::('Test').^name.say | 02:30 |
|
camelia
| rakudo-moar 2dc68c922: OUTPUT: «Failure» | 02:30 |
| ← Cabanossi left | 02:36 |
| → aborazmeh joined | 02:37 |
| ← aborazmeh left | 02:37 |
| → aborazmeh joined | 02:37 |
| → Cabanossi joined | 02:42 |
| ← evalable6 left | 03:42 |
| ← squashable6 left | 03:42 |
| → committable6 joined | 03:42 |
| ChanServ set mode: +v | 03:42 |
| → releasable6 joined | 03:42 |
| ChanServ set mode: +v | 03:42 |
| → notable6 joined | 03:43 |
| → shareable6 joined | 03:43 |
| → coverable6 joined | 03:43 |
| ChanServ set mode: +v | 03:43 |
| → unicodable6 joined | 03:43 |
| ChanServ set mode: +v | 03:43 |
| → squashable6 joined | 03:44 |
| → bloatable6 joined | 03:45 |
| ChanServ set mode: +v | 03:45 |
| → evalable6 joined | 03:46 |
| ChanServ set mode: +v | 03:46 |
| → greppable6 joined | 03:46 |
| ChanServ set mode: +v | 03:46 |
| → quotable6 joined | 03:46 |
| → undersightable6 joined | 03:46 |
| → statisfiable6 joined | 03:46 |
| → benchable6 joined | 03:46 |
| ChanServ set mode: +v | 03:46 |
| → bisectable6 joined | 03:46 |
| → nativecallable6 joined | 03:47 |
| → reportable6 joined | 03:47 |
| ChanServ set mode: +v | 03: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.pm6 | 04:09 |
| ← evalable6 left | 04:47 |
| → evalable6 joined | 04:51 |
| ChanServ set mode: +v | 04:51 |
| ← irced left | 04:53 |
| ← aborazmeh left | 05:08 |
| → sauvin joined | 05:26 |
| ← sauvin left | 05:27 |
| ← khisanth_ left | 05:33 |
| → sauvin joined | 05:39 |
| → khisanth_ joined | 05:59 |
| ← molaf left | 06:11 |
| → nadim joined | 06:19 |
|
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 | 06: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_ joined | 06:20 |
| ← ufobat left | 06:24 |
|
Kaiepi
| . | 06:43 |
| → aborazmeh joined | 07:07 |
| ← aborazmeh left | 07:07 |
| → aborazmeh joined | 07:07 |
| ← xinming left | 07:17 |
| → xinming joined | 07:23 |
| → sena_kun joined | 07:41 |
| → titsuki joined | 07: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 themselves | 08:37 |
| → rindolf joined | 08:51 |
|
sena_kun
| | 08:59 |
| → natrys joined | 09:16 |
| ← aborazmeh left | 09:22 |
| → aborazmeh joined | 09:24 |
| ← aborazmeh left | 09:24 |
| → aborazmeh joined | 09:24 |
| ← aborazmeh left | 09:29 |
| ← Sgeo_ left | 10:03 |
| ← Black_Ribbon left | 10:09 |
|
Xliff
| Kaiep++ | 10:27 |
| → Sgeo joined | 10:44 |
| ← reach_satori left | 11:03 |
| → nepugia joined | 11:17 |
| → reach_satori joined | 11:33 |
| → reach_satori_ joined | 11:37 |
| ← reach_satori left | 11:40 |
|
sena_kun
| Woodi, ping with https://github.com/slunski/perl6-text-ldif/pull/3 | 11:45 |
| → docdoctor joined | 11:59 |
| → mowcat joined | 12:02 |
| ← docdoctor left | 12:20 |
| ← natrys left | 12:45 |
| → molaf joined | 12:52 |
| → natrys joined | 12:57 |
| ← mowcat left | 12:58 |
| → lucasb joined | 13:17 |
| → hankache joined | 13:20 |
| → bittersweetsymph joined | 13:23 |
| ← Cabanossi left | 13:46 |
| → Cabanossi joined | 13:53 |
| ← bittersweetsymph left | 14:00 |
| ← reach_satori_ left | 14: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 PR | 14: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 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 |
| ← hankache left | 14:40 |
| ← AlexDaniel left | 14:41 |
| → AlexDaniel joined | 14: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 back | 14:54 |
|
sena_kun
| Woodi, sure, will do so if something other will be needed. | 14:55 |
| → sftp joined | 15:13 |
| ← Cabanossi left | 15:36 |
| → mowcat joined | 15:43 |
| → Cabanossi joined | 15:46 |
| → pamplemousse joined | 15:48 |
| → hankache joined | 15:55 |
| ← AlexDaniel left | 16:07 |
| ← hankache left | 16:17 |
| ← nepugia left | 16:30 |
| → AlexDaniel joined | 16:31 |
| → nepugia joined | 16:48 |
| ← pamplemousse left | 16:51 |
|
Woodi
| sena_kun: by "serialization" you mean converting hashes to ldif ? that would be nice to have | 16:53 |
| → nepugia_ joined | 16:54 |
|
sena_kun
| yes | 16:54 |
| ← nepugia left | 16:55 |
| → guifa2 joined | 16:57 |
|
guifa2
| Is there any way to do a non-recursive hyper? maybe a › instead of » ? | 16:58 |
| → zakharyas joined | 17:07 |
| ← nepugia_ left | 17:09 |
|
ugexe
| .hyper | 17: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#l257 | 17: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),)>>.say | 17:32 |
|
camelia
| rakudo-moar c227693a6: OUTPUT: «112» | 17:32 |
|
ugexe
| and that isn't what recursion is | 17:33 |
| ← sena_kun left | 17:37 |
| → sena_kun joined | 17:37 |
| → pamplemousse joined | 17:46 |
| → tyilanmenyn joined | 18: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 left | 18: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 -1 | 18:23 |
| → tyilanmenyn joined | 18: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 $*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: «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 left | 18:38 |
| → guifa2 joined | 18: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 left | 18:41 |
| → tyilanmenyn joined | 18:41 |
| → Sgeo_ joined | 18:42 |
| → muzyka joined | 18:42 |
| ← Sgeo left | 18:42 |
| ← tyilanmenyn left | 18:43 |
| → tyilanmenyn joined | 18:44 |
|
muzyka
| https://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 | 18:46 |
|
guifa2
| https://codegolf.stackexchange.com/questions/67611/hamilton-is-coming-to-town/187450#187450 | 18:46 |
| ← Cabanossi left | 18:46 |
|
guifa2
| I'm fairly certain that is now officially the ugliest P6 code I've ever written | 18:47 |
| → Cabanossi joined | 18:48 |
| → Sgeo joined | 18:49 |
| ← Sgeo_ left | 18:49 |
| ← tyilanmenyn left | 19:02 |
| → pmurias joined | 19:05 |
| → tyilanmenyn joined | 19:06 |
| ← molaf left | 19:09 |
| → nepugia joined | 19:09 |
|
| sena_kun appreciates how code like `5.new(10)` just works | 19:09 |
|
AlexDaniel
| sena_kun: it's not very explicit though | 19:13 |
| → hankache joined | 19:13 |
| ← hankache left | 19:18 |
| ← nadim left | 19:19 |
|
sena_kun
| AlexDaniel, what do you mean? | 19:21 |
|
AlexDaniel
| sena_kun: I don't find it readable | 19:21 |
|
| m: say 5.WHAT.new(10) # kinda better but relies on dodgy WHAT | 19: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 left | 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 |
| → tyilanmenyn joined | 19:24 |
| → Black_Ribbon joined | 19:25 |
| → empee0 joined | 19:34 |
|
Xliff
| If I get a 401 with Cro::HTTP::Client, is there any way to get the error body? | 19:35 |
| ← zakharyas left | 19:36 |
|
sena_kun
| can't you await $resp.body? | 19:38 |
| ← pamplemousse left | 19:39 |
| → pamplemousse joined | 19: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 lines | 19:39 |
|
| Xliff, ^ | 19:39 |
| ← guifa2 left | 19:41 |
| → guifa2 joined | 19:46 |
| ← lucasb left | 19:46 |
| ← pamplemousse left | 19:51 |
| → pamplemousse joined | 19:51 |
| → patrickb joined | 19:56 |
| ← sauvin left | 19:59 |
| ← pamplemousse left | 20:05 |
| → pamplemousse joined | 20:05 |
|
Xliff
| m: say 5 ~~ 1..10 | 20:05 |
|
camelia
| rakudo-moar c227693a6: OUTPUT: «True» | 20:05 |
|
Xliff
| m: say 5 ~~ 1...10 | 20: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..10 | 20:06 |
|
camelia
| rakudo-moar c227693a6: OUTPUT: «True» | 20:06 |
|
Xliff
| m: say -1 ~~ 1..10 | 20:06 |
|
camelia
| rakudo-moar c227693a6: OUTPUT: «False» | 20:06 |
| ← muzyka left | 20:07 |
|
Xliff
| sena_kun++: LOL! That's exactly what I ended up doing! Thanks. | 20:07 |
|
sena_kun
| np | 20:08 |
| ← guifa2 left | 20:10 |
| ← tyilanmenyn left | 20:22 |
| → guifa2 joined | 20:30 |
| → veesh joined | 20:33 |
| ← veesh left | 20:34 |
| → veesh joined | 20:34 |
| → pamplemousse_ joined | 20:34 |
| ← pamplemousse left | 20:37 |
| → nadim joined | 20:38 |
| ← sena_kun left | 21:04 |
| → HarmtH_ joined | 21:07 |
| ← pamplemousse_ left | 21:13 |
| → tyilanmenyn joined | 21:30 |
| ← aindilis left | 21:33 |
| tyilanmenyn → tyil | 21:37 |
| → aindilis joined | 21:40 |
| ← Cabanossi left | 21:47 |
| ← aindilis left | 21:47 |
| → aindilis joined | 21:48 |
| → Cabanossi joined | 21:50 |
| → |oLa| joined | 21:51 |
| ← veesh left | 21:52 |
| ← |oLa| left | 21:57 |
| ← pmurias left | 21:58 |
| → pamplemousse_ joined | 22:06 |
| → Sgeo_ joined | 22:11 |
| → molaf joined | 22:13 |
| ← Sgeo left | 22:15 |
| ← pamplemousse_ left | 22:16 |
| → pmurias joined | 22:20 |
| → reach_satori_ joined | 22:21 |
| ← natrys left | 22:32 |
| ← molaf left | 22:37 |
| ← vrurg left | 23:07 |
| → vrurg joined | 23:08 |
| ← vrurg left | 23:15 |
| → vrurg joined | 23:18 |
| ← rindolf left | 23:32 |
| ← pmurias left | 23:33 |
| ← patrickb left | 23:44 |
| → patrickb joined | 23:45 |
|
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) | 23:59 |
|
| xinming, Details: https://gist.github.com/6f7f7559f9ba9d6758f19e2fc4c6d5aa | 23:59 |