🦋 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.
Xliff m: use NativeCall; my int16 = 1; 04:17
camelia 5===SORRY!5=== Error while compiling <tmp>
Malformed my
at <tmp>:1
------> 3use NativeCall; my int167⏏5 = 1;
Xliff m: use NativeCall; my int16 $a = 1;
camelia ( no output )
Xliff m: "abc".trans(['a'] => ['z], [ 'c' ] => ['y']).say 06:28
camelia 5===SORRY!5=== Error while compiling <tmp>
Two terms in a row
at <tmp>:1
------> 3"abc".trans(['a'] => ['z], [ '7⏏5c' ] => ['y']).say
expecting any of:
infix
infix stopper
statement end
sta…
Xliff m: "abc".trans(['a'] => ['z'], [ 'c' ] => ['y']).say 06:29
camelia zby
Xliff m: "abc".trans(['a'] => ['z'], [ 'c' ] => ['y']).say
camelia zby
jmerelo m: "abc".trans(['a','c'] => ['z','y']).say
camelia zby
tellable6 2019-11-23T17:53:07Z #raku-dev <lizmat> jmerelo: please privmsg me when you have a chance
jmerelo .seen lizmat
tellable6 jmerelo, I saw lizmat 2019-11-23T20:34:15Z in #raku: <lizmat> afk again& 06:30
jmerelo releasable6: status 07:12
releasable6 jmerelo, Next release will happen when it's ready. There are no known blockers. 248 out of 491 commits logged (⚠ 9 warnings)
jmerelo, Details: gist.github.com/4e69c6573b757af69a...cd9b11c305
Geth_ doc/perl6: d59f179854 | (JJ Merelo)++ | Makefile
Adds new target, refs #3096
08:56
doc: ce70fb7d7a | (JJ Merelo)++ | Makefile
Adds new target

  (tested by using it). Closes #3096
AlexDaniel Does anybody know who registered github.com/Raku ? 10:43
jmerelo AlexDaniel: might it have been tbrowder? 10:44
cpan-raku New module released to CPAN! Gnome::GObject (0.15.3) by 03MARTIMM 11:03
AlexDaniel anyway, whoever owns it please get in touch with me 11:17
El_Che wasn't it used by a non-raku dev?
El_Che It has 2 followers: tbrowder andd olorin37 11:34
I know 1 of the 2 :)
lizmat El_Che: the non-raku dev gave up the account, but I missed that, so apparently someone else took it now 11:38
Altai-man_ m: ({ :42id }).sort(*.hehe).say; 11:52
camelia (id => 42)
Altai-man_ it seems a bit foot-shooting for me
though I understand there is a line between "short-circuit it for speed" and "prevent possible error" 11:53
m: ({ :42id }, { :30id },).sort(*.hehe).say;
camelia No such method 'hehe' for invocant of type 'Hash'. Did you mean 'head'?
in block <unit> at <tmp> line 1
Altai-man_ because ^
Geth_ doc: 63d3d4c6bb | (JJ Merelo)++ | README.md
Change docs for #3096
11:55
tbrowder AlexDaniel: i did not register github/rakul, but i found it recently and started following it 11:56
El_Che damn
jmerelo Maybe we should preemptively create rakulang, just in case 11:58
Ah, AlexDaniel just did that
So, why bother. That's good enough. 11:59
jmerelo This error in the documentation tests is happening infrequently, but often travis-ci.org/perl6/doc/builds/616...urce=email 12:25
Look at line 177 on
It's registered as a Rakudo bug, but it's almost impossible to understand what's going on there.
moritz could be non-deterministic behavior in the test or the tested code as well 12:32
tbrowder strange that there is no info on the owner of github/raku. maybe perl6 owner can get github to look into the issue 13:07
cpan-raku New module released to CPAN! Gnome::Glib (0.15.2) by 03MARTIMM 13:08
Kaiepi .tell jmerelo, why does the class tutorial in the docs exist on top of the object orientation documentation? most of it seems to be redundant 16:15
tellable6 Kaiepi, I'll pass your message to jmerelo
Kaiepi .tell jmerelo, and the stuff that isn't is stuff i thought was undocumented because it wasn't in the object orientation documentation 16:17
tellable6 Kaiepi, I'll pass your message to jmerelo
jmerelo Another place where we should update links is Wikipedia en.wikipedia.org/wiki/Raku_rules 17:00
tellable6 2019-11-24T16:15:22Z #raku <Kaiepi> jmerelo, why does the class tutorial in the docs exist on top of the object orientation documentation? most of it seems to be redundant
2019-11-24T16:17:25Z #raku <Kaiepi> jmerelo, and the stuff that isn't is stuff i thought was undocumented because it wasn't in the object orientation documentation
jmerelo .tell kaiepi there are tutorials all over the place which are supposed to provide use cases and a more extended rationale or narrative. 17:01
tellable6 jmerelo, I'll pass your message to Kaiepi
jmerelo .tell Kaiepi in the cases you mention, I am not really sure. Please raise an issue with the undocumented part. The redundant part should probably be improved instead of eliminated, I guess 17:02
tellable6 jmerelo, I'll pass your message to Kaiepi
SmokeMachine sena_kun: would you mind to show me what `.^create` is breaking for you? 18:01
Kaiepi jmerelo, my issue is that the object orientation page is already pretty exhaustive wrt how classes are used. apart from how you'd write static fields in raku, i'm not sure it adds much 18:06
tellable6 2019-11-24T17:01:18Z #raku <jmerelo> kaiepi there are tutorials all over the place which are supposed to provide use cases and a more extended rationale or narrative.
2019-11-24T17:02:11Z #raku <jmerelo> Kaiepi in the cases you mention, I am not really sure. Please raise an issue with the undocumented part. The redundant part should probably be improved instead of eliminated, I guess
jmerelo Kaiepi: so what you say is to explain less in the introduction to the class?
Kaiepi: anyway, an issue would really help. 18:07
Kaiepi ig so
Kaiepi m: class Foo { method a { } }; say Foo.^has_method: 'a' 18:55
camelia No such method 'has_method' for invocant of type 'Perl6::Metamodel::ClassHOW'. Did you mean 'add_method'?
in block <unit> at <tmp> line 1
Kaiepi oh wait that's a sub not a method
m: class Foo { method a { } }; Foo.^methods.map(*.name) (cont) 'a' 18:57
camelia WARNINGS for <tmp>:
Useless use of "(cont)" in expression ".map(*.name) (cont) 'a'" in sink context (line 1)
Kaiepi m: class Foo { method a { } }; say Foo.^methods.map(*.name) (cont) 'a'
camelia True
Kaiepi m: class Foo { method a { } }; class Bar is Foo { }; say Bar.^methods.map(*.name) (cont) 'a'
camelia True
Kaiepi m: class Foo { method a { } }; role Bar is Foo { }; say Bar.^methods.map(*.name) (cont) 'a' 18:58
camelia False
Kaiepi m: class Foo { method a { } }; role Bar is Foo { }; say so Bar.^find_method: 'a'
camelia True
Kaiepi why isn't there a metamethod for checking if a method exists on a class or role? 18:59
m: class Foo { method a { } }; class Bar is Foo { }; say Bar.^declares_method: 'a' 19:00
camelia 0
Kaiepi oh wait 19:02
m: class Foo { method a { } }; class Bar is Foo { }; say Bar.^can: 'a'
camelia (a)
Kaiepi nvm, brain fart
cpan-raku New module released to CPAN! Gnome::Gdk3 (0.14.14) by 03MARTIMM 19:08
Kaiepi asking questions like "why can't you ... ?" instead of "can you ... ?" is a bad habit i need to get rid of 19:11
Geth_ doc: finanalyst++ created pull request #3098:
PrecompilationRepository document
19:33
cpan-raku New module released to CPAN! Gnome::GObject (0.15.4) by 03MARTIMM 19:39
lizmat greets RobRaku 19:46
Altai-man_ m: my %users = 1 => { :username('Test') }; my %posts = 1 => { :1author-id, :created(now) }; %posts.values.map({ $_<username> = %!users{$_<author-id>}<username>; $_; }).sort(*.<created>).say 19:56
camelia 5===SORRY!5=== Error while compiling <tmp>
Variable %!users used where no 'self' is available
at <tmp>:1
------> 3osts.values.map({ $_<username> = %!users7⏏5{$_<author-id>}<username>; $_; }).sort(*
Altai-man_ m: my %users = 1 => { :username('Test') }; my %posts = 1 => { :1author-id, :created(now) }; %posts.values.map({ $_<username> = %users{$_<author-id>}<username>; $_; }).sort(*.<created>).say 19:56
camelia ({author-id => 1, created => Instant:1574625415.941691, username => Test})
Altai-man_ ^ can anyone help me with making the map clause friendlier?
or at least not so `$_ at the end`
Altai-man_ .oO ( a for loop ) 19:57
AlexDaniel sena_kun: save to sql database, join it there? :D 20:13
sena_kun AlexDaniel, :] 20:14
AlexDaniel sena_kun: in some way it is surprising that this kind of data isn't already there
sena_kun cool fools like me are writting in-memory DBs!
sena_kun AlexDaniel, well, I decided to leave it as is, actually, so, please, never mind... 20:15
cpan-raku New module released to CPAN! Gnome::Gtk3 (0.19.3) by 03MARTIMM 20:27
libertas hi, what is the extension for raku files? .p6? .raku? 22:04
Altai-man_ libertas, .raku, but it is safe to use .p6 for now and it'll be supported by all tooling for a long migration period 22:05
normanrockwell is the same true for .pm6? (new to Raku and I have recently started trying to write a small library) 22:07
libertas my vim editor doesn't seem to recognize .raku, that's why I asked
AlexDaniel normanrockwell: for modules it doesn't really matter that much, what you declare in META6.json is what's important 22:12
libertas: please file a ticket, it should be fixed github.com/vim-perl/vim-perl6/issues 22:13
normanrockwell AlexDaniel: you're talking about the 'provides' section of META6.json, correct? 22:16
AlexDaniel normanrockwell: yes
normanrockwell awesome, thanks! 22:17
libertas AlexDaniel: done. 22:23
I'd just like to say that I've never programmed in Perl*, but raku seems very well thought and I'm having fun with it 22:25