šŸ¦‹ Welcome to Raku! raku.org/ | evalbot usage: 'p6: say 3;' or /msg camelia p6: ... | irclog: colabti.org/irclogger/irclogger_log/raku
Set by ChanServ on 14 October 2019.
00:01 pecastro left 00:13 wildtrees left 00:20 stoned75 left 00:28 markong joined 00:32 markoong left, markoong joined 00:36 markong left 00:55 markong joined 00:59 markoong left, cpan-raku left 01:00 cpan-raku joined, cpan-raku left, cpan-raku joined 01:06 markoong joined 01:10 markong left 01:12 markoong left 01:15 Altai-man_ joined 01:17 sena_kun left 01:31 Sgeo_ left 01:33 lichtkind left 01:34 Sgeo joined 01:39 titsuki joined, chloekek left 01:47 mst left, mst joined 01:57 mst left, mst joined 02:02 orinthe left 02:04 Redfoxmoon left 02:05 orinthe joined 02:07 Redfoxmoon joined 02:08 orinthe left, orinthe joined 02:14 aborazmeh left 02:16 mowcat joined 02:51 titsuki left 02:52 titsuki joined 02:53 Redfoxmoon left, Redfoxmoon joined 02:58 molaf left 02:59 holyghost left, holyghost joined 03:02 Doc_Holliwood left 03:11 mowcat left, molaf joined 03:16 sena_kun joined 03:18 Altai-man_ left 04:18 nativecallable6 left, quotable6 left, squashable6 left, linkable6 left, bloatable6 left, releasable6 left, unicodable6 left, reportable6 left, notable6 left, bisectable6 left, shareable6 left, evalable6 left, greppable6 left, benchable6 left, sourceable6 left, coverable6 left, committable6 left, statisfiable6 left, tellable6 left, quotable6 joined, bisectable6 joined, tellable6 joined, greppable6 joined, nativecallable6 joined, sourceable6 joined, squashable6 joined 04:19 reportable6 joined, statisfiable6 joined, committable6 joined, bloatable6 joined, notable6 joined 04:20 benchable6 joined, unicodable6 joined, coverable6 joined, linkable6 joined, releasable6 joined 04:21 shareable6 joined, evalable6 joined 04:28 Redfoxmoon left, Redfoxmoon joined 04:34 Redfoxmoon left 04:36 Redfoxmoon joined 04:42 Redfoxmoon left 04:51 Redfoxmoon joined 04:55 Redfoxmoon left, Redfoxmoon joined 05:07 moon-child is now known as AlexaBot, AlexaBot is now known as moon-child 05:13 Sgeo_ joined, Redfoxmoon left 05:15 Altai-man_ joined, Redfoxmoon joined 05:16 Sgeo left 05:18 sena_kun left
moon-child I'm getting an error of 'Failed to open file /d/code/FancyBot1/logfile: No such file or directory' 05:21
trying to .slurp or .IO the file of that name
which is odd, because that file definitely exists
ahh, apparently it was just vim being stupid 05:24
05:39 Doc_Holliwood joined 05:45 Redfoxmoon left 05:51 Redfoxmoon joined 05:57 SQuoll left, SQuoll joined 05:58 spacedbat joined
moon-child is there any way to make IRC::Client connect with ssl? Apparently I need to pass a ca-cert param; what do I put in there? 06:03
06:05 stoned75 joined
stoned75 commit: releases my $blob = blob8.new(3,6, 254); say $blob; 06:18
committable6 stoned75, gist.github.com/123996d76edaecbbca...d1f96d94cc 06:19
stoned75 commit: releases my $b = Blob[int32].new( 3, -3, 0xff32, -44); say $b; 06:21
committable6 stoned75, gist.github.com/69a81bf130d7d523dc...beca18d1e5 06:22
06:29 titsuki left 06:43 regreg joined 06:44 Redfoxmoon_ joined 06:45 Redfoxmoon left 06:46 Redfoxmoon_ left 06:48 Redfoxmoon joined 06:53 Redfoxmoon left, Redfoxmoon joined 07:06 leont joined 07:16 sena_kun joined 07:17 Altai-man_ left 07:18 Doc_Holliwood left
Geth doc/blob-8163264: 2f07f488fc | (Stoned Elipot)++ | doc/Type/Blob.pod6
Document classes blob8, blob16, blob32 and blob64
07:22
07:23 xelxebar_ left, rindolf joined
Geth doc: stoned++ created pull request #3263:
Document classes blob8, blob16, blob32 and blob64
07:23
07:24 xelxebar joined 07:30 regreg left 07:31 Redfoxmoon left 07:33 Redfoxmoon joined 07:37 japhb joined 07:38 Redfoxmoon left, Redfoxmoon joined 07:40 Redfoxmoon left, Redfoxmoon joined
Geth doc: 00cc4b2e78 | (Stoned Elipot)++ | doc/Type/Buf.pod6
consistent whitespace use in examples
07:41
linkable6 Link: docs.raku.org/type/Buf
08:00 titsuki joined 08:03 aluaces joined
Geth doc: 2f07f488fc | (Stoned Elipot)++ | doc/Type/Blob.pod6
Document classes blob8, blob16, blob32 and blob64
08:04
doc: d67841d304 | (Juan JuliĆ”n Merelo GuervĆ³s)++ (committed using GitHub Web editor) | doc/Type/Blob.pod6
Merge pull request #3263 from Raku/blob-8163264

Document classes blob8, blob16, blob32 and blob64
linkable6 Link: docs.raku.org/type/Blob
08:06 Redfoxmoon left, Redfoxmoon joined 08:12 titsuki left 08:14 regreg joined 08:54 Alex7 joined 09:05 stoned75 left 09:10 rindolf left 09:14 rindolf joined 09:15 Altai-man_ joined 09:17 sena_kun left 09:33 aborazmeh joined, aborazmeh left, aborazmeh joined 09:36 Sgeo__ joined 09:39 Sgeo_ left 09:41 ensamvarg joined 10:00 Woodi joined 10:09 stoned75 joined 10:14 chloekek joined
Geth doc/blob-fix: 482e2d0f2e | (Stoned Elipot)++ | doc/Type/Blob.pod6
Use blob32, not buf32, in Blob's document
10:20
doc: stoned++ created pull request #3264:
Use blob32, not buf32, in Blob's document
10:21
doc: 482e2d0f2e | (Stoned Elipot)++ | doc/Type/Blob.pod6
Use blob32, not buf32, in Blob's document
10:23
doc: f2f9b59b35 | (Elizabeth Mattijsen)++ (committed using GitHub Web editor) | doc/Type/Blob.pod6
Merge pull request #3264 from Raku/blob-fix

Use blob32, not buf32, in Blob's document
linkable6 Link: docs.raku.org/type/Blob
10:26 Alex7 left 10:33 pecastro joined
moritz twitter.com/liztormato/status/1238...6213952517 :-((( 10:34
lizmat yes, indeed a great loss :-( 10:35
MasterDuke yes, he was one of the first people i met irl from the perl+raku community 10:36
10:38 aborazmeh left 10:41 ParsonsNose joined 10:46 leont left
El_Che moon-child: I suppose the CA of the cert of the irc server 10:49
10:50 Doc_Holliwood joined
ParsonsNose Hey. I'm trying to use Cro::HTTP::Client, and I'm having some issues - wondered if anyone here could help... 10:53
so, it's installed (`zef list --installed | grep -i cro::http` shows `Cro::HTTP:ver<0.8.3>`) but `perl6 -e "put Cro::HTTP::Client.get('example.com')"` returns `Could not find symbol '&Client' in 'HTTP'` -- any ideas what I'm doing wrong? 10:54
El_Che you need to use it first
use Cro...
(from tablet typing not easy) 10:55
ParsonsNose `use Cro;` gives the same error, and `use Cro::HTTP::Client` hangs and then dies...
`Abort trap: 6` 10:56
IDK what that means...
Geth doc/buf-list-return-type: b36120ee41 | (Stoned Elipot)++ | doc/Type/Buf.pod6
Buf.list() now returns a List
10:57
lizmat ParsonsNose: which version of Raku are you using > 10:58
?
El_Che use Cro::HTTP::Client; 10:59
ParsonsNose > This is Rakudo version 2020.02.1 built on MoarVM version 2020.02.1
El_Che that should be enough
looking at the docs
Geth doc: stoned++ created pull request #3265:
Buf.list() now returns a List
El_Che with the ;
ParsonsNose Yeah, I tried that first before coming on here, but it just dies with an abort tap: 6
s/tap/trap 11:00
lizmat ParsonsNose: could you run your program with "--ll-exception" and put the result in a gist? 11:02
ParsonsNose Doesn't need a gist: ```$ perl6 --ll-exception t.p6Abort trap: 6``` -- is there a higher level of verbosity I could try? 11:09
.. that pasted badly, it's two lines 11:10
lizmat hmmm... that's not a lot to go on... 11:11
what OS are you running on ?
also: maybe the #cro channel would be a place to mention this on also 11:12
ParsonsNose macos. I'll check in there, thanks 11:13
synthmeat lizmat: unrelated, any other raku-related channels of interest?
lizmat is on MacOS, if you could paste your code, I could run it to see if I can reproduce
synthmeat is also on macos, but cannot reproduce 11:14
lizmat synthmeat: #raku-dev #moarvm that's basically it
synthmeat ty ^_^ 11:15
11:16 sena_kun joined 11:18 Altai-man_ left 11:21 wamba joined
ParsonsNose tnx all 11:32
11:33 ParsonsNose left 11:34 markoong joined 11:36 aborazmeh joined, aborazmeh left, aborazmeh joined 11:37 ParsonsNose joined, aborazmeh left 11:39 aborazmeh joined, aborazmeh left, aborazmeh joined 11:40 Doc_Holliwood left 11:45 Itaipu joined 11:50 leont joined 11:55 markong joined 11:59 markoong left 12:03 markong left 12:06 ParsonsNose left 12:08 mowcat joined, antoniogamiz joined
antoniogamiz o/ 12:08
what is the right way to compare paths in Raku?
I mean, the comparation should be OS independent 12:09
comparison* 12:10
12:11 lichtkind joined
lizmat "foo".IO eqv "bar".IO I would guess ? 12:19
sena_kun m: say 'foo/bar'.IO eqv 'foo\bar'.IO 12:20
camelia False
antoniogamiz m: "a\\b" eqv "a/b"
camelia WARNINGS for <tmp>:
Useless use of "eqv" in expression "\"a\\\\b\" eqv \"a/b\"" in sink context (line 1)
antoniogamiz m: say 'a\\b' eqv 'a/b' 12:21
camelia False
12:21 aborazmeh left
antoniogamiz it does not seem to work :/ 12:21
lizmat antoniogamiz: you are comparing strings there, not IO::Path's 12:22
antoniogamiz m: say 'a\b'.IO eqv 'a/b'.IO
camelia False
lizmat m: say 'a\\b'.IO eq 'a/b'.IO
camelia False
lizmat hmmm.... 12:23
I guess that warrants an issue :-(
antoniogamiz I suppose so :/
ci.appveyor.com/project/JJ/pod-to-...s/28050389
it looks like that paths built from a string in Unix format in a windows environment are not changed to windows path format 12:25
where should i open that issue? 12:26
lizmat github.com/rakudo/rakudo/issues/new I guess :-) 12:27
antoniogamiz done, thanks :D 12:36
12:36 antoniogamiz left
leont How is eqv defined anyway? How would one override it? 12:45
Just define a multi? 12:46
lizmat yup
multi infix:<eqv>(IO::Path:D \a, IO::Path:D \b) { ... }
leont I would guess defaulting to === ? 12:53
(the nqp isn't entirely obvious) 12:54
lizmat m: dd "foobar".IO.WHICH 12:56
camelia ObjAt.new("IO::Path|63014320")
lizmat apparently IO::Path is not a value type, so === is not really an option
although I don't see a reason why it couldn't / shouldn't be 12:57
13:01 thundergnat joined
thundergnat m: say IO::Spec::Win32.canonpath(ļ½¢C:/home/bernie/.ļ½£, :parent) eqv IO::Spec::Win32.canonpath(ļ½¢C:\temp\Win32/../../home/bernieļ½£, :parent) # takes some convolutions but doable 13:02
camelia True
thundergnat antoniogamiz: ^^^ 13:03
tellable6 thundergnat, I'll pass your message to antoniogamiz
13:03 pmurias left
thundergnat Very sad news about DrForr 13:03
As of today, (yesterday actually,) all 1181 Perl 6 tasks have been renamed to Raku. 13:05
on rosettacode.
rosettacode.org/wiki/Category:Raku 13:06
13:09 pmurias joined 13:12 Tirifto joined 13:15 Altai-man_ joined
rypervenche Woo! 13:15
Geth doc: b36120ee41 | (Stoned Elipot)++ | doc/Type/Buf.pod6
Buf.list() now returns a List
13:17
doc: 330d0cc083 | stoned++ (committed using GitHub Web editor) | doc/Type/Buf.pod6
Merge pull request #3265 from Raku/buf-list-return-type

Buf.list() now returns a List
linkable6 Link: docs.raku.org/type/Buf
13:17 sena_kun left 13:26 Doc_Holliwood joined 13:43 wamba left 13:44 pmurias left
Doc_Holliwood beware of macOS. macOS is like the chaos in W40K 13:57
too much exposure and it starts to corrupt you
trust me, i work for Apple 13:58
El_Che lol 14:02
lizmat has been corrupted since the Apple || 14:08
14:10 lucasb joined 14:28 veesh left 14:29 antoniogamiz joined
antoniogamiz o/ 14:29
tellable6 2020-03-15T13:03:12Z #raku <thundergnat> antoniogamiz: ^^^
antoniogamiz what was the operator to combine lists? I mean, given (1,2),(3,4) obtain (1,3),(2,4)? 14:30
thundergnat: I will try that! thanks 14:31
thundergnat antoniogamiz: I added a more complete solution on the issue page #3551
antoniogamiz yeah i was reading it! I will try it in a few minutes 14:32
tobs m: dd [Z] (1,2),(3,4) # antoniogamiz did you mean this? 14:35
camelia ((1, 3), (2, 4)).Seq
antoniogamiz aaaaah Z
thanks tobs
14:40 stoned75 left 14:43 veesh joined 14:44 sarna_ joined 14:47 stoned75 joined
rypervenche Oof, I think I should stop trying to fix Lingua::Number. I think it's beyond my current knowledge. :/ 14:47
14:48 sarna left, sarna_ is now known as sarna 14:50 mowcat left 14:58 stoned75 left
Geth doc/buf-blob-list-return-type: 08b4a058ca | (Stoned Elipot)++ | 2 files
clarify Buf.list() and Blob.list() return value's type

As discussed in #3266
14:59
15:01 stoned75 joined
Geth doc: stoned++ created pull request #3267:
clarify Buf.list() and Blob.list() return value's type
15:01
15:01 vike1 left, antoniogamiz left
uzl[m] Just learned about DrForr. Quite shocking and ultimately sad to hear about this. RIP DrForr. 15:07
15:07 vike1 joined 15:16 sena_kun joined 15:18 Altai-man_ left
rindolf uzl[m]: yes 15:37
15:49 Doc_Holliwood left 16:02 patrickb joined 16:16 aborazmeh joined, veesh_ joined, aborazmeh left, aborazmeh joined 16:17 veesh left, veesh_ is now known as veesh 16:23 wamba joined 16:30 cpan-raku left, cpan-raku joined, cpan-raku left, cpan-raku joined 16:51 mowcat joined
japhb Anyone have any luck with non-trivial asynchrony and GTK::Simple? I can't seem to do much of anything without invoking various crashes, including "received an X Window System error", whose extended error message led me to GDK_SYNCHRONIZE and thus "[xcb] Unknown request in queue while dequeuing", whose extended error message led me to try using Supply.schedule-on(GTK::Simple::Scheduler) as per 17:01
www.jnthn.net/papers/2014-nlpw-reactive.pdf and www.jnthn.net/papers/2014-yapceu-async.pdf, which resulted in "MoarVM panic: Internal error: Unwound entire stack and missed handler". GAAAAAHHHHH ...
17:05 MasterDuke left 17:15 Altai-man_ joined 17:18 sena_kun left, synthmeat left 17:19 synthmeat joined
moritz I think somebody else recently had that error, when trying to return from a block that was executed asynchronously, and the outer routine had already returned 17:22
17:25 Doc_Holliwood joined 17:27 oneeggeach joined
jdv79 jeff was cool. i'll miss him:( 17:29
17:51 oneeggea_ joined 17:53 MasterDuke joined, oneeggeach left 17:54 oneeggea_ is now known as oneeggeach
oneeggeach p6: say (:x:y:!z),(:x,:y,:!z); 17:56
camelia (x => True y => True z => False)(x => True y => True z => False)
oneeggeach oh interesting: on my machine (Rakudo Star 2019.03.01), the output is '(x => True y => 1 z => 0)(x => True y => True z => False)' 17:57
was hoping someone could explain why I was getting y => 1 and z => 0 instead of True/False
but perhaps it's been changed in a newer version of Rakudo 17:58
18:00 aborazmeh left
japhb moritz: Well, all of this is happening in the background while the GTK app continues to sit in its main loop; my test code looks like: sub MAIN() { ... create and configure $gtk-app ...; Supply.interval(5).skip(1).schedule-on(GTK::Simple::Scheduler).act: { ... update an interface element ... }; $gtk-app.run } 18:16
So it's not clear what "outer" routine has already returned there.
moritz japhb: not clear to me either; maybe it's a different bug, or maybe it's in GTK::Simple 18:31
18:37 oneeggeach left 18:39 roguelazer left, skaji_ left, krunen left, fvox left, BinGOs left, BinGOs_ joined, skaji_ joined, NODE left, roguelazer joined 18:40 BinGOs_ is now known as BinGOs, fvox joined, BinGOs left, BinGOs joined 18:41 NODE joined 18:42 natrys joined, mojca left 18:43 krunen joined 18:44 mojca joined 18:56 ensamvarg left 18:57 stanrifkin joined 19:02 stanrifkin left 19:03 vrurg_ is now known as vrurg 19:08 lucasb left 19:11 cognomin_ joined 19:12 regreg left 19:15 cognominal left 19:16 sena_kun joined 19:18 Altai-man_ left, regreg joined 19:20 jjatria left 19:21 jjatria joined, jjatria left, oneeggeach joined 19:25 jjatria joined 19:32 irced joined
irced tumbles in through a vortex followed by a drove of pigs. 19:32
huh, Raku? what world is this?
irced shrugs.
19:32 irced left 19:36 xkr47 left, dotdotdot left, xkr47 joined, Actualey` left 19:37 dotdotdot joined 19:38 thundergnat left 19:39 thundergnat joined
chloekek TIL vortices lead to Raku 19:43
japhb We do practice the whirlpool method of development, so it fits. 19:46
chloekek We also have the @ sigil
But these analogies will soon be spiraling out of control. 19:47
jjatria Hi~ I've been playing around with Raku bindings for Termbox (gitlab.com/jjatria/raku-termbox), and I think it's getting close to being releasable. Since this is my very first Raku library, any comments would be more than welcome :D 19:53
japhb jjatria: See also github.com/ab5tract/Terminal-Print/ 19:58
jjatria Ooh, very nice
japhb jjatria: See the examples/ directory for lots of ... well, examples. :-) 19:59
jjatria japhb: Some of these examples are sweet. `attacks.p6` is very fancy 20:04
MasterDuke oneeggeach: gist.github.com/Whateverable/6d76d...2d318f1ef, looks like it's been fixed since 2019.03 20:08
20:08 oneeggeach left 20:12 oneeggeach joined 20:16 oneeggeach left
japhb jjatria: Those were used when designing the rpg-ui example, and of course for performance tuning the library. :-) 20:19
20:30 Bucciarati left, esh left, lbtjp left, rba left, Altreus left, Bucciarati joined, lbtjp joined, Altreus joined 20:31 rba_ joined, esh joined, Altreus is now known as Guest80549, rba_ is now known as rba 20:34 silug joined 20:36 oneeggeach joined 20:42 Itaipu left 20:54 mojca left 20:57 mojca joined 21:03 oneeggeach left 21:11 gordonfish left 21:15 Altai-man_ joined, regreg left 21:18 sena_kun left 21:25 Itaipu joined
guifa rypervenche: what are you needing from Lingua::Number ? 21:51
Itā€™s likely I have or will soon have whatever you need in Intl::Number 21:52
21:52 natrys left 22:06 squashable6 left 22:07 squashable6 joined
rypervenche guifa: Looking to be able to convert to ordinal number in zh_Hant (zh-TW) locale. It's not a huge deal, I can write something to do it, but I thought it could be useful for other programs. 22:10
guifa Yeah, that will be possible with Intl::Number 22:19
unfortunately due to $day-job Iā€™ve not been able to work on Intl:: stuff in a bit, and I had to drop work amidst a fairly substantial reorganization, but take a look at it. I donā€™t think I finished up the ordinal stuff, but I know I had most number formatting (and even made a localized number token for use in regexen) 22:20
If youā€™re needing it spelled out, like in English ā€œfirstā€ ā€œsecondā€ ā€œthirdā€ etc, that will require me doing the RBNF (rule based number formatting) 22:21
TreyHarris I was on the cruise with DrForr -- I never made the connection because of his online handle and he either didn't hear my last name or didn't make the connection either. I wish I'd known
guifa Which I know I havenā€™t done yet
22:22 Itaipu_ joined, Itaipu left
rypervenche Hmmm, Intl::CLDR says it *might* work, but has a bug. Let's see if that works. I didn't even think that there might be another module that I could use >< 22:24
22:25 chloekek left
synthmeat (having comprehensive Intl in ecosystem would be amazing) 22:25
22:36 squashable6 left
rypervenche Yeah, doesn't work. I'll write a little something for now since I only need it for 8 numbers. 22:37
22:37 aluaces left 22:40 squashable6 joined
guifa synthmeat: thatā€™s the goal. I ended up putting too much in the Intl::CLDR module, and right now Iā€™ve been working to disentangle stuff from it so that Intl::CLDR is nothing more than a repository 22:45
and then Intl::Number or Intl::Date(Time), etc, will be where the functionality resides 22:46
22:49 rindolf left
guifa rypervenche: that note about ordinal taht should be working is for the ::Plural, not ::Number. In English there are two for cardinal numbers (1 = one, everything else = other), but for cardinal there are more (1 = one, 2 = two, 3 = few, *11, *12, *13 and everything else = other). 22:53
Itā€™s a module that most people probably wonā€™t ever need to interface with, but if youā€™re writing a localization framework (I am ha) then itā€™s necessary because you need to know when to use, e.g., ā€œappleā€ (one) or ā€œapplesā€ (other), or ā€œstā€ (one), ā€œndā€ (two) ā€œrdā€ (few) or ā€œthā€ (other) 22:54
23:05 wamba left
SmokeMachine has anyone ever gotten this error while trying to use DB::MySQL? `Plugin caching_sha2_password could not be loaded: Error loading shared library lib/mariadb/plugin/caching_sha2_password.so: No such file or directory` 23:10
23:10 lichtkind left
SmokeMachine I can connect wit mysql client but not with DB::MySQL... 23:11
www.irccloud.com/pastebin/UJyhEJsS/
23:12 lichtkind joined 23:14 squashable6 left 23:16 sena_kun joined 23:17 squashable6 joined 23:18 Altai-man_ left
rypervenche guifa: Yeah, the README for Intl::CLDR::Plural says that it's got a but and ordinal numbers don't work. 23:23
TreyHarris "Ordinal should be working but there's a bug somewhere" 23:32
guifa knows ā€¦ he wrote it :-) 23:38
My point is itā€™s not for generating ordinal numbers, but defining the plural category of the associated ordinal number
23:43 patrickb left
guifa for Chinese, the result of plural-count($number, :type<ordinal>) should be ā€˜otherā€™ for every single number 23:44
23:50 caterfxo left