🦋 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.
moon_child Doc_Holliwood: can you stop joinspamming 04:55
xkr47 is there something like `use strict; use warnings;` from perl5 or is it default nowadays? 05:46
AlexDaniel xkr47: yeah, you get that by default in raku 06:15
Geth_ doc: 44c5963b99 | (Luis F. Uceta)++ | doc/Language/setbagmix.pod6
Place C<> around operator and types
07:00
doc: beb775cad0 | (Juan Julián Merelo Guervós)++ (committed using GitHub Web editor) | doc/Language/setbagmix.pod6
Merge pull request #3078 from uzluisf/master

Place C<> around operator and types
squashable6 🍕 AlexDaniel++ edited wiki page “Monthly Bug Squash Day”: github.com/rakudo/rakudo/wiki/Mont...Squash-Day 07:02
🍕🍕🍕 First contribution by AlexDaniel++! ♥
AlexDaniel squashable6: status 07:03
squashable6 AlexDaniel, Next SQUASHathon in 13 days and ≈20 hours (2019-11-16 UTC-12⌁UTC+20). See github.com/rakudo/rakudo/wiki/Mont...Squash-Day
xkr47 AlexDaniel, thx! 08:07
xkr47 is there some shorthand for `defined($<x>) ?? $<x>.made !! defaultvalue` ? 08:15
jmerelo xkr47: Can't think of any 08:22
tellable6 2019-10-31T12:01:42Z #raku <tyil> jmerelo can you accept my request to join the outreach ML with my personal email address?
2019-10-31T18:34:51Z #raku-dev <El_Che> jmerelo the doc packages should be up (updated to 2019.07.1)
jmerelo .tell tyil sorry, I missed it somehow. 08:25
tellable6 jmerelo, I'll pass your message to tyil
jmerelo .tell El_Che thanks.
tellable6 jmerelo, I'll pass your message to El_Che
tyil jmerelo: no worries 08:39
tellable6 2019-11-01T08:25:44Z #raku <jmerelo> tyil sorry, I missed it somehow.
xkr47 jmerelo, hmm it's like like mapping a defined value to another one, but leaving an undefined value undefined.. 08:40
jmerelo xkr47: that's in an Grammar action, right? But undefined values get a default value, right? 08:42
xkr47 Nil.map doesn't work
jmerelo xkr47: Nil is not really an object... 08:43
xkr47 I was trying `$<x>.map(sub ($a){$a.made}) || defaultvalue`
woo woo now my time calculator can calculate 5d / 2 -> 2,12:00:00.000 08:49
or 5d / 4m -> 1800 08:50
jmerelo xkr47: congrats! 08:53
xkr47 and now I discover there is a type Duration :)
xkr47 what's the difference between str and Str ? 10:11
or int vs Int 10:12
aha, native types.. 10:13
Altai-man_ yup, native types 10:18
stoned75 Hi. are there typesetting rules applicable to perl6/doc repository ? 11:54
sena_kun stoned75, typesetting rules to be? there are guidelines at github.com/perl6/doc/blob/master/C...IBUTING.md 11:55
stoned75 ah of course. thanks! 11:56
sena_kun you are welcome! 11:57
Wahnburger Hello, i want to count dots "." in a string..i tried the perl syntax but this wont work..does someone can give me a hint? 12:40
jnthn m: say "foo.bar.baz".comb('.').elems
camelia 2
jnthn Like that?
Wahnburger yes, perfect :) 12:43
do you also have a hint regarding the windows/IO-Socket-Async-SSL issue? :) 12:47
jnthn Not really. 12:50
I guess other than looking through the way openssl is set up inside of the module and comparing it to how the synchronous implementation does it. 12:51
Oh, though that's assuming it's just a CA issue, but now I see there's some more general problem too. 12:53
Geth_ doc: fcf46393ac | (Stoned Elipot)++ | doc/Language/iterating.pod6
Fix formatting
13:05
Wahnburger I am wondering why this issue is relative rarely reported 13:13
i have tried 3 diffrent machines without success
[Coke] Wahnburger: is there a ticket? I can try on the windows box I have access to 13:15
Wahnburger here: stackoverflow.com/questions/586477...ws-machine and here: github.com/jnthn/p6-io-socket-asyn.../issues/46 13:16
I have installed the newest version of *star and then i have installed the cro modules with zef...nothing special
modul with the issue could only ne installed with --force-test :) 13:17
[Coke] Wahnburger: why are you trying to run the install from inside a zef .store folder? 13:23
[Coke] finds he perl6 installed on this box already and tries a vanilla "zef install IO::Socket::Async::SSL" 13:26
Wahnburger uhmm.yes ...i tried to add some debug outputs to get it after. But the failure messages also happens with zef install IO::Socket::Async::SSL 13:30
[Coke] verified, added my perl6/zef versions, just in case. 13:31
Wahnburger verified what - the failure?
[Coke] the windows installer version is at least six months old, it's possible the module is requiring something newer.
yes.
Wahnburger ah I see, thx
how sad :/ i wanted to put my stuff on the windows server..its LOT faster there that inside thd bsd VMs 13:35
[Coke] for debug, might be helpful to see if that error was introduced with a release of the module. (that is, can you install an older version?) 13:38
Wahnburger from where? 13:42
ah, i see
Wahnburger the issue was already reported for 0.7.3 but ill try it..and then 0.7.2 13:47
[Coke] Sorry can't be of more help. 13:55
Wahnburger same issue with 0.7.3 14:08
aaand with 0.7.2 and 1 14:17
jnthn I don't think I've done any Windows porting work on that module, and don't recall merging any PRs relating to it, so it's quite possible it's never really worked there. 14:25
[Coke] jnthn: I figured it was either "never worked on windows", or "module changed to track something in rakudo that is now too old on windows distro" 14:28
jnthn Could be that also
lucs How do I get Inline::Perl5 to use the currently active perlbrew perl5? (it appears to use the perl5 that was active when perl6 was built) 14:30
Wahnburger so actual not Cro client apps for windows? 14:34
*actually
jnthn Windows porting is in the Cro roadmap, but we didn't get to it yet. 14:35
Though I think most of the work won't even be in Cro, but in dependencies. 14:36
lucs (I did build my perlbrew version, 5.30.0, with -Duseshrplib, and -Dusemultiplicity too)
Wahnburger yep
Doc_Holliwould i just ate pudding with a fork. my work here is done. 16:27
brass In some programs I've seen people do things like $++, what do you call it when you just use the dollar sign without a variable name? 16:35
lucasb an anonymous variable :) 16:37
lizmat brass: that's the anonymous state variable
brass Oh it's a state variable neat 16:38
Found it in the docs, thanks :) docs.perl6.org/syntax/state#The_$_variable 16:39
It's hard to find these things sometimes if you don't know where to look
stanrifkin should i alias perl6 to raku? 16:47
[Coke] in your own install? I imagine that's personal preference at the moment. 17:02
Geth_ doc: 421ec01d7b | cfa++ | 3 files
Fix typos.
17:45
doc: 767eb5fa6d | cfa++ | 2 files
Learn a few new words.
donaldh Is there any way a module can resolve types from my namespace? 17:51
i.e. use Class::Generator # exports new types into my namespace 17:52
donaldh followed by Module.doStuff(ParentType) # it will need to resolve OtherType 17:53
Geth_ doc: 083855f02b | cfa++ | doc/Language/grammars.pod6
Fix typo.
17:55
doc: 5209172445 | cfa++ | 2 files
Learn a few more words.
doc: 89c0418f54 | cfa++ | 2 files
Learn a few bot names.
18:06
cfa o/ 18:08
[Coke] \o
timotimo donaldh: i'm not sure i understand 18:20
donaldh: is OtherType in your current namespace, or does it come from Class::Generator?
donaldh Class::Generator creates the new types ParentType and OtherType and exports them to my namespace. 18:21
I call Module.doStuff(ParentType) and it needs to reference OtherType.
Concretely, parse protobuf, generate classes. Protobuf::Reader needs to instantiate classes for sub messages. 18:23
I suppose I should add resolve capability to generated classes for sub messages. 18:24
tony-o .tell wahnburger perhaps a bisect might be the easiest way to find out if it ever worked (and most recent version it did work if so)? 19:22
tellable6 tony-o, I'll pass your message to Wahnburger
tony-o m: my $x = "\{\n \"name\" : \"Algorithm::Snail\",\n \"description\" : \"Snail sort (snailshell pattern, spiral order) sequence in grid (two dimensional array)\",\n \"version\" : \"0.2\",\n \"perl\": \"6.*\",\n \"auth\": \"github:mj41\",\n \"authors\" : [ \"Michal Jurosz\" ],\n \"license\": \"Artistic-2.0\",\n \"source-type\" : \"git\",\n \"source-url\" : 20:39
camelia 5===SORRY!5=== Error while compiling <tmp>
Unable to parse expression in double quotes; couldn't find final '"' (corresponding starter was at line 1)
at <tmp>:1
------> 3-type\" : \"git\",\n \"source-url\" :7⏏5<EOL>
expecting …
tony-o \"git://github.com/mj41/Algorithm-Snail.git\",\n \"depends\" : [],\n \"build-depends\": [],\n \"provides\" : \{\n \"Algorithm::Snail\" : \"lib/Algorithm/Snail.pm6\",\n },\n \"support\": \{\n \"bugtracker\": \"github.com/mj41/Algorithm-Snail/issues\",\n \"license\": \"www.perlfoundation.org/artistic_license_2_0\"\n },\n \"tags\": [ \"algorithm\",
\"bidimensional\", \"sequence\", \"array\" ],\n \"test-depends\": [\n \"Test\"\n ]\n}"; say $x; say ::("Rakudo::Internals::JSON").from-json($x);
tony-o m: gist.github.com/tony-o/b78699dcc6f...8461f78abf 20:40
camelia {
"name" : "Algorithm::Snail",
"description" : "Snail sort (snailshell pattern, spiral order) sequence in grid (two dimensional array)",
"version" : "0.2",
"perl": "6.*",
"auth": "github:mj41",
"authors" : [ "Michal…
tony-o hmm, that's failing locally
m: say $*VERSION 20:41
camelia Dynamic variable $*VERSION not found
in block <unit> at <tmp> line 1
tony-o m: say $*PERL
camelia Perl 6 (6.d)
MasterDuke m: say $*PERL.compiler.version 20:49
camelia v2019.07.1.453.g.54.e.0.aceec
tyil is there a way to mimick Moo's around functionality in Raku? (related to the description here: gitlab.com/tyil/raku-app-gtd/issues/8) 21:37
donaldh If anyone is interested, protobuf implementation is creeping towards usable: github.com/donaldh/p6-pb 21:51
Forked from illustrious work by samuraisam, japhb, tadzik. 21:52
Grammar kinda supports protobuf v3 and nearly all tests pass. First successful message round-trip for me. 21:53
tadzik oh, I didn't know I'm involved :o :) 21:54
jnthn donaldh++
tadzik that's awesome :)
donaldh tadzik: well, you forked the repo, maybe you didn't actually contribute ;-)
Geth_ doc: d4c9b23754 | cfa++ | doc/Language/community.pod6
Revise formatting on the community page (=defn to multi-para lists).

Markup in =defn terms and definitions is currently ignored; the use of itemisation here is a workaround.
23:46
doc: e2b841168b | cfa++ | doc/Language/community.pod6
Formatting tweak; citation.
23:53
japhb donaldh: \o/ # I can't even tell you how useful that is to me. I just ran out of time back then to work on it, and have wanted it at least once a week every week since. 23:55
tellable6 japhb, I'll pass your message to donaldh
japhb does his best Evil Laugh while thinking about all the places he plans to use p6-pb. Mua-ha-ha-ha-haaaaaaaa .... 23:56
Now we just need a gRPC implementation, and I will have Lots Of Fun. 23:58