🦋 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.
Geth ¦ problem-solving: vrurg assigned to jnthn Issue Implementation of importing of classes with composite names perhaps needs better consideration github.com/perl6/problem-solving/issues/128 01:44
uzl[m] I'm trying out Comma but whenever I leave the IDE and come back I've to click the editor in order to input any text again. Is this some behavior that can be disabled? 02:37
tony-o why is kawaii vanushing forever? 04:08
ZzZombo m: DYNAMIC().say 06:17
camelia 5===SORRY!5=== Error while compiling <tmp>
Calling DYNAMIC() will never work with declared signature (\name)
at <tmp>:1
------> 3<BOL>7⏏5DYNAMIC().say
ZzZombo m: DYNAMIC('asd').say 06:20
camelia Dynamic variable asd not found
in block <unit> at <tmp> line 1
ZzZombo m: DYNAMIC('$*PERL').say 06:21
camelia Perl 6 (6.d)
ZzZombo m: dd DYNAMIC('$*PERL')
camelia Perl Perl 6 = Perl.new(compiler => Compiler.new(id => "B16703D62EB4E14317ED4FABCC380B63D166630E", release => "", codename => "", name => "rakudo", auth => "The Perl Foundation", version => v2019.07.1.460.g.044.b.33902, signature => Blob, desc => Str),…
ZzZombo m: dd DYNAMIC('PERL')
camelia Failure.new(exception => X::Dynamic::NotFound.new(name => "PERL"), backtrace => Backtrace.new)
ZzZombo ??
m: DYNAMIC('PERL')
camelia Dynamic variable PERL not found
in block <unit> at <tmp> line 1
ZzZombo oh 06:22
ZzZombo m: my $i = 2 but role { CALL-ME() { 'called'.say }};$i() 07:21
camelia 5===SORRY!5=== Error while compiling <tmp>
Unexpected block in infix position (missing statement control word before the expression?)
at <tmp>:1
------> 3my $i = 2 but role { CALL-ME()7⏏5 { 'called'.say }};$i()
expecting any of:…
ZzZombo m: my $i = 2 but role R { CALL-ME() { 'called'.say }};$i() 07:22
camelia 5===SORRY!5=== Error while compiling <tmp>
Unexpected block in infix position (missing statement control word before the expression?)
at <tmp>:1
------> 3my $i = 2 but role R { CALL-ME()7⏏5 { 'called'.say }};$i()
expecting any of…
ZzZombo m: my $i = 2 but role {method CALL-ME() { 'called'.say }};$i() 08:37
camelia called
ZzZombo So why does this work w/o making `$i` a Callable?
m: my $i = 2 but Callable {method CALL-ME() { 'called'.say }};$i() 08:38
camelia 5===SORRY!5=== Error while compiling <tmp>
Unexpected block in infix position (missing statement control word before the expression?)
at <tmp>:1
------> 3my $i = 2 but Callable7⏏5 {method CALL-ME() { 'called'.say }};$i(
expecting…
ZzZombo m: my $i = 2 does Callable {method CALL-ME() { 'called'.say }};$i()
camelia 5===SORRY!5=== Error while compiling <tmp>
Unexpected block in infix position (missing statement control word before the expression?)
at <tmp>:1
------> 3my $i = 2 does Callable7⏏5 {method CALL-ME() { 'called'.say }};$i(
expectin…
ZzZombo aw, screw that, doesn't matter.
ZzZombo m: say 1.+DEFINITE 09:47
camelia 5===SORRY!5=== Error while compiling <tmp>
Cannot use .+ on a non-identifier method call
at <tmp>:1
------> 3say 1.+DEFINITE7⏏5<EOL>
expecting any of:
method arguments
ZzZombo m: say 1.+new
camelia (0 0)
ZzZombo m: say 1.+Bool
camelia (True True)
ZzZombo m: say 0.+Bool 09:48
camelia (False True)
ZzZombo m: say 0.+uc
camelia (0)
ZzZombo m: say 0.+Cool
camelia No such method 'Cool' for invocant of type 'Int'. Did you mean any of these?
Bool
roll

in block <unit> at <tmp> line 1
ZzZombo m: say 0.+roll
camelia (0)
ZzZombo m: say 0.*Bool 09:49
camelia (False True)
ZzZombo m: say 0|1.*Bool 09:54
camelia any(0, (True True))
ZzZombo m: say (0|1).*Bool
camelia (True True)
ZzZombo m: say (0|1).*^mro 09:55
camelia 5===SORRY!5=== Error while compiling <tmp>
Malformed postfix call
at <tmp>:1
------> 3say (0|1).*7⏏5^mro
ZzZombo m: say (0|1).*WHAT
camelia 5===SORRY!5=== Error while compiling <tmp>
Cannot use .* on a non-identifier method call
at <tmp>:1
------> 3say (0|1).*WHAT7⏏5<EOL>
expecting any of:
method arguments
lil hello guy's 10:32
now i can undefine variable?
Altai-man_ assign Nil to it? 10:33
lil it need to implement logout function in web app based on Cro
Altai-man_ m: my $a = 42; say $a; $a = Nil; say $a; 10:34
camelia 42
(Any)
Altai-man_ m: my $a is default(42); say $a; $a = Nil; say $a;
camelia 42
42
Altai-man_ be careful though that assigning `Nil` returns variable to its "undefined" state and when a default value is set, it'll be it 10:34
for Cro session just `= Nil` should be enough 10:35
lil I thought that there is a certain function, thanks!
Altreus hello a ping 10:53
yes, there are issues with situations I'm not entirely clear on
otherwise I'd handle them xD
tbrowder hi, raku ppl! 11:01
anyone know how to search cpan for p6/raku modukes 11:02
*modules?
tbrowder okay, i'm answering my own question: on our modules.perl6.org page, in the search window enter "from:cpan" and search. if you want an author and know his cpan name you can enter "from:cpan author:ANAME" 11:16
lizmat tbrowder++ 11:20
tbrowder thnx, and you don't need to know the full name, so using "from:cpan author:ELIZ" i get 102 modules for lizmat! 11:24
lizmat wow, sometimes I forget there are that many :-)
tbrowder lizmat: btw, i snagged RAKU for a florida license plate for my truck and will send a pic when it gets here in a few weeks 11:25
lizmat would be a nice picture for the weekly :-) 11:26
tbrowder i can then send my old perl 6 plate to the perl museum 11:27
lizmat would go nice next to the "Perl" US license plate we already have :-) 11:30
tbrowder ok, give me a shipping address and it'll be on its way soon (tom.browder@gmail.com). 11:47
lizmat tbrowder: sent :-) 11:50
and thanks in advance! 11:51
tbrowder you are very welcome! 11:52
davidholoshka Hi I have a cro server on port 20000 behind an apache2 proxy. The cro server stops responding to apache 503 after a random number of minutes ~5 - 10. Apache reports connection refused. I see no errors in the trace it just stops. The processes are still running. Any idea what might cause this or how I could get it to report a problem ? 14:58
timotimo davidholoshka: can you try connecting directly to cro from the same machine that apache runs on? 15:16
davidholoshka cro and apache are on the same virtual server debian 9 15:19
jnthn Is it using any CPU? 15:21
mspo telnet and get back to us 15:23
AlexDaniel kawaii: fwiw, by “figured it out” I meant that we are moving towards a better way for running blin, your efforts and contributions are still very needed :) 16:24
jmerelo There are only 5 slots to go for the Advent Calendar github.com/perl6/advent/blob/maste...9/schedule 16:55
Claim yours before it's too late! 16:56
jnthn Wow, and we're barely into November! Nice going!
[Coke] jmerelo: might be worth adding the new deadline for content in to the signup sheet 17:00
(though with five slots left I guess it doesn't matter as much.) 17:01
[Coke] jmerelo: feel free to ping me if you end up with an open slot, I can do a short one as the GC Secretary with a Raku slant. 17:02
(But am super happy if I don't have to)
jmerelo [Coke]: OK, will do. I'll also start asking people to actually write the stuff very soon.
[Coke]: please add yourself at the very end, as extra. I'll use that just in case someone eventually is not able to make it. 17:03
[Coke] jmerelo: done 17:08
jmerelo [Coke]++ 17:09
jmerelo The call for ideas for the next Google Summer of Code is also open github.com/perl-foundation-outreac...2020-ideas 18:59
Also, we need to gather some SEO juice for the new Raku documentation. Now it's almost impossible to find something there from a search, and they don't show up when you search for perl6, obviously 19:05
We just need to link them, so please if you ask some question in StackOverflow, or write some article, link to relevant pages in the docs.raku.org documentation. 19:06
guifa jmerelo++ 19:22
brass I have a question about licenses 20:16
I'm used to reading about the GPL and BSD-style licenses, but what does the Artistic License 2.0 offer that's different?
There seems to be almost nothing written about it online 20:17
mspo it's written in pretty clear language 20:18
it's very permissive 20:19
brass But why is it favoured by the perl/raku community over say BSD?
mspo don't know 20:21
Demos[m] is this room synced with #perl6? 20:22
BinGOs en.wikipedia.org/wiki/Artistic_License
japhb Demos[m]: No. 20:24
Grinnz brass: www.gnu.org/licenses/license-list....icLicense2 choosealicense.com/licenses/artistic-2.0/ may be useful 20:25
mspo apparently Larry wrote it 20:27
version 1
brass Hm I just read it 20:28
It seems vaguely like the lgpl
japhb Part of the intent of the Artistic License is that people who make modified versions can't claim that their version is standard. It means that the author of the work gets artistic control over the future of the original version without fearing "silent embrace and extend"
mspo brass: the interesting part is the "satisfy any ONE of the following conditions" 20:29
brass a choose your own adventure license 20:30
japhb Artistic 1 was often explicitly dual-licensed. Artistic 2 allows relicensing under 4.c.ii, thus allowing people who want to go pure-GPL to do so, for instance.
But Artistic 2 is not *itself* viral like GPL is, so those that object to that need not make use of 4.c.ii 20:32
mspo yeah it's nice to give a legal way for people who relicense to gpl anyway 20:34
;)
AlexDaniel brass: honestly, it doesn't offer much 21:25
brass: which is why most other projects use other licenses with similar conditions that are just more well known 21:26
it's not bad in any way, it's just odd :) 21:29
uzl[m] The Artistic License 2.0 is GPL-compatible www.gnu.org/licenses/license-list....icLicense2 21:41
BTW, anybody that uses Comma here?! I'm trying it out but whenever I leave the IDE and come back I've to click the editor in order to input any text again. I'm wondering if this is some sort of behavior that can be disabled? 21:46
timotimo "leave and come back" means just switching to a different window or workspace? 21:53
[Coke] some of the authors are in here, even. (but maybe not just now) 21:54
[Coke] tries to duplicate and finds he's got 3 versions of Comma installed?
timotimo comma complete, comma community, and comma camelia 21:55
[Coke] cannot duplicate. click to edit, alt tab, alt tab, type type 21:57
er, command-tab, not alt-tab.
(this after updating to the latest Comma CP version) 22:00
(wow my subscription is still active!)
timotimo when i switch from a different virtual desktop to the one that has WebStorm on it, it always ends up with another window focused 22:06
and it's extremely annoying
xinming m: (infix:<+>(3, 5)).perl.say; 23:03
camelia 8
xinming m: (infix:{"+"}(3, 5)).perl.say;
camelia ===SORRY!===
Cannot find method 'has_compile_time_value' on object of type NQPMu
xinming m: ((infix:{"+"})(3, 5)).perl.say;
camelia ===SORRY!===
Cannot find method 'has_compile_time_value' on object of type NQPMu
xinming In this case, Why will infix:<+> work, But not infix:{'+'} ?
risorg23 does anyone know of any way to add autocompletion for raku on emacs? 23:12
as far as i'm aware, only syntax highlighting and checking exists for the time being 23:13
AlexDaniel risorg23: hmm, I simply use dabbrev-expand globally 23:31
which isn't a proper autocompletion but it works for me 23:32
risorg23: I use it together with key-chord mode so that the expansion is triggered by keys under my fingertips 23:33
risorg23 yeah, i use that too but i wish something like company-raku existed 23:38