🦋 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:31 melezhik joined 00:33 melezhik left 00:34 melezhik joined
timotimo m: dd Set.new(1, 2, 3) (-) (0..Inf).List 00:35
camelia Failure.new(exception => X::Cannot::Lazy.new(action => "difference", what => "set"), backtrace => Backtrace.new)
timotimo m: say Set.new(1, 2, 3) (-) (0..Inf).List
camelia Cannot difference a lazy list onto a set
in block <unit> at <tmp> line 1
timotimo .tell Doc_Holliwood i think the "what => Any" isn't LTA, it's meant for a different case, like Set.new(1, 2, 3) (-) (0..Inf).List 00:37
tellable6 timotimo, I'll pass your message to Doc_Holliwood
00:39 Kaiepi left 00:42 Kaiepi joined 00:57 melezhik left 00:59 wildtrees left 01:03 softmoth joined 01:20 guifa2 left, aborazmeh joined, aborazmeh left, aborazmeh joined 01:30 molaf left 01:37 wbn left, wbn joined 01:44 molaf joined, caterfxo left 02:06 Manifest0 left, Manifest0 joined 02:18 guifa2 joined 02:24 guifa2_ joined, guifa2 left, guifa2_ is now known as guifa2
AlexDaniel jmerelo: stumbled upon your SO comment :) stackoverflow.com/questions/504334...0_50433478 02:40
tellable6 AlexDaniel, I'll pass your message to jmerelo
AlexDaniel jmerelo: ah, it's even your question :D
tellable6 AlexDaniel, I'll pass your message to jmerelo
AlexDaniel jmerelo: d'oh it even has a `raku` tag :D 02:42
tellable6 AlexDaniel, I'll pass your message to jmerelo
02:56 aborazmeh left
cpan-raku New module released to CPAN! Test::Async (0.0.1) by 03VRURG 03:18
03:56 evalable6 left, linkable6 left, linkable6 joined 03:57 evalable6 joined 04:10 rbt left 04:11 rbt joined 04:14 xinming left, xinming joined 04:51 aborazmeh joined, aborazmeh left, aborazmeh joined 05:23 aborazmeh left 06:01 sjm_uk joined 06:13 coverable6 left, releasable6 left, reportable6 left, committable6 left, statisfiable6 left, notable6 left, squashable6 left, quotable6 left, wamba[m] left, BlackChaosNL[m] left, unclechu left, APic left, ssm left 06:15 coverable6 joined, releasable6 joined, reportable6 joined, committable6 joined, statisfiable6 joined, notable6 joined, squashable6 joined, quotable6 joined, wamba[m] joined, BlackChaosNL[m] joined, APic joined, ssm joined 06:17 rindolf joined 06:18 unclechu joined 06:39 xinming left 06:40 xinming joined 06:48 lichtkind joined 07:00 sjm_uk left 07:16 ufobat__ left 08:04 xinming left, xinming joined 08:08 eseyman left 08:13 eseyman joined 08:43 andrzejku joined 08:45 softmoth left 09:03 chloekek joined 09:30 stoned75 left 09:31 andrzejku left, andrzejku joined 09:32 Altai-man_ joined
lizmat weekly: news.perlfoundation.org/post/gp_rakuast 09:41
notable6 lizmat, Noted! (weekly)
10:18 lichtkind_ joined 10:20 Doc_Holliwood joined
Doc_Holliwood sup 10:20
tellable6 2020-04-19T00:37:03Z #raku <timotimo> Doc_Holliwood i think the "what => Any" isn't LTA, it's meant for a different case, like Set.new(1, 2, 3) (-) (0..Inf).List
10:20 lichtkind left 10:26 Altai-man_ left, sena_kun joined 10:31 sjm_uk joined 10:42 natrys joined
Doc_Holliwood m: say ( [:a(2),:b(2)], ).map( [+] *>>.val 10:47
ue )
camelia 5===SORRY!5=== Error while compiling <tmp>
Unable to parse expression in argument list; couldn't find final ')' (corresponding starter was at line 1)
at <tmp>:1
------> 3say ( [:a(2),:b(2)], ).map( [+] *>>.val7⏏5<EOL>
expecting a…
Doc_Holliwood m: say ( [:a(2),:b(2)], ).map( [+] *>>.value )
camelia Cannot resolve caller Numeric(WhateverCode:D: ); none of these signatures match:
(Mu:U \v: *%_)
in block <unit> at <tmp> line 1
10:47 hankache joined
Doc_Holliwood i'm confused. why doesn't that work? 10:47
m: say ( [:a(2),:b(2)], ).map( *>>.value )
camelia ([2 2])
Doc_Holliwood m: say ( [:a(2),:b(2)], ).map( [+] (*>>.value) ) 10:48
camelia Cannot resolve caller Numeric(WhateverCode:D: ); none of these signatures match:
(Mu:U \v: *%_)
in block <unit> at <tmp> line 1
10:55 aborazmeh joined, aborazmeh left, aborazmeh joined 10:59 hankache left
Doc_Holliwood m: say ( [:a(2),:b(2)], ).map( [+] |(*>>.value) ) 11:03
camelia Cannot resolve caller Numeric(WhateverCode:D: ); none of these signatures match:
(Mu:U \v: *%_)
in block <unit> at <tmp> line 1
Doc_Holliwood m: say ( [:a(2),:b(2)], ).map( [+] *.map: *.value ) 11:05
camelia Cannot resolve caller Numeric(WhateverCode:D: ); none of these signatures match:
(Mu:U \v: *%_)
in block <unit> at <tmp> line 1
Doc_Holliwood m: say ( [:a(2),:b(2)], ).map( *.map: *.value ) 11:06
camelia ((2 2))
Doc_Holliwood m: say ( [:a(2),:b(2)], ).map( [+] (*.map: *.value) )
camelia Cannot resolve caller Numeric(WhateverCode:D: ); none of these signatures match:
(Mu:U \v: *%_)
in block <unit> at <tmp> line 1
Doc_Holliwood m: say ( [:a(2),:b(2)], ).map( [+] [*.map: *.value] )
camelia Cannot resolve caller Numeric(WhateverCode:D: ); none of these signatures match:
(Mu:U \v: *%_)
in block <unit> at <tmp> line 1
Doc_Holliwood meh
11:14 Altai-man_ joined
timotimo whatever currying doesn't go outwards through argument lists, which is what [+] takes 11:14
otherwise $foo.map(*.bar) would be a whole whatevercode, rather than actually doing a map 11:15
for [+] you can also just .sum afterwards
lizmat in fact, [+] gets turned into .sum internally :-) 11:17
11:17 sena_kun left 11:27 rbt left 11:28 rbt joined 11:39 sjm_uk left, xinming_ joined
Doc_Holliwood m: "say (1,2,3).pairs.rotor(2=>-1).map( -> ($a, $b) { $a.value - $b.value }) 11:41
camelia 5===SORRY!5=== Error while compiling <tmp>
Variable '$a' is not declared
at <tmp>:1
------> 3say (1,2,3).pairs.rotor(2=>-1).map( -> (7⏏5$a, $b) { $a.value - $b.value })
Doc_Holliwood i don't understand why the deconstruction is not working
m: "say (1,2,3).pairs.rotor(2=>-1).map( -> ($a, $b) { .[0].value - .[1].value })
camelia 5===SORRY!5=== Error while compiling <tmp>
Variable '$a' is not declared
at <tmp>:1
------> 3say (1,2,3).pairs.rotor(2=>-1).map( -> (7⏏5$a, $b) { .[0].value - .[1].value })
Doc_Holliwood m: "say (1,2,3).pairs.rotor(2=>-1).map({ .[0].value - .[1].value }) 11:42
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(2=>-1).map({ .[0].value - .[1].value })7⏏5<EOL>
expecting …
Doc_Holliwood m: say (1,2,3).pairs.rotor(2=>-1).map({ .[0].value - .[1].value })
camelia (-1 -1)
11:42 xinming left
Doc_Holliwood m: say (1,2,3).pairs.rotor(2=>-1).map( -> ($a, $b) { $a.value - $b.value }) 11:42
camelia Too few positionals passed to '<anon>'; expected 2 arguments but got 0 in sub-signature
in block <unit> at <tmp> line 1
11:45 xinming_ left 11:46 andrzejku left, xinming_ joined 11:49 k-man_ joined, k-man left 12:09 xinming_ left 12:13 xinming_ joined 12:26 Kaiepi left 12:27 Kaiepi joined 12:28 Kaiepi left 12:41 sjm_uk joined 13:15 sena_kun joined 13:16 Altai-man_ left 13:18 Xliff joined 13:33 caterfxo joined 13:36 aborazmeh left 14:17 aborazmeh joined, aborazmeh left, aborazmeh joined 14:20 Kaiepi joined 14:40 Xliff left 14:50 rindolf left 14:52 aborazmeh left 15:00 rindolf joined 15:04 melezhik joined, pilne_ joined 15:05 pilne left 15:14 Altai-man_ joined 15:15 sjm_uk left 15:16 sena_kun left 15:17 sjm_uk joined 15:18 xinming_ left 15:19 mowcat joined 15:20 xinming_ joined, Tirifto joined 15:25 Xliff joined 15:28 melezhik left 15:36 andrzejku joined 15:40 cpan-raku left 15:41 cpan-raku joined, cpan-raku left, cpan-raku joined 15:45 pecastro joined 15:54 gabiruh_ joined 15:55 aborazmeh joined, aborazmeh left, aborazmeh joined, gabiruh left 16:09 andrzejku left 16:23 softmoth joined 16:26 melezhik joined 16:29 natrys left 16:30 mowcat left 16:31 xfix joined 16:32 Xliff left 16:35 natrys joined 16:42 melezhik left 16:43 lichtkind_ left 16:45 benlittle joined
Geth doc/master: 4 commits pushed by (JJ Merelo)++ 16:59
17:15 sena_kun joined
Geth whateverable: 464e147ba3 | (Aleks-Daniel Jakimenko-Aleksejev)++ | lib/Whateverable/Bits.pm6
Add a :simple mode for time-left sub

Just another hack to make sure there's no custom time-related logic all over the code base.
17:17
whateverable: 2972e69611 | (Aleks-Daniel Jakimenko-Aleksejev)++ | lib/Whateverable/Bits.pm6
Add ss sub for plural forms

Also take this chance to get rid of the unforutane naming of the `s` sub. I don't know if this is going to always work, but I hope it does.
17:17 Altai-man_ left 17:19 sjm_uk left 17:27 MasterDuke left 17:29 kjk joined 17:44 MasterDuke joined 17:46 andrzejku joined
kjk hello, anyone know how to configure Comma IDE (2020.01.0 community edition) to provide method name completion for built-in objects? I asked the question in this reddit post - old.reddit.com/r/rakulang/comments...bjects_of/ 17:56
lizmat sena_kun ^^ 17:59
jnthn ^^
sena_kun kjk, o/
kjk, first of all, what's the name of the file you're editing?
18:01 armin_ joined, armin_ left
kjk oh, it's scratch.pm6 (I created it via Scratches and Consoles -> New -> Scratch File) 18:02
sena_kun kjk, hmm, can't reproduce it with a scratch file... Do you have a proper SDK set in File -> Project Settings? It should not matter, but just in case. 18:03
kjk yes, it says it's using project SDK: Raku v2020.01. I set it to C:\rakudo\bin 18:05
sena_kun kjk, in the description I saw you also tried it on gnu/linux, right? 18:06
kjk yeah, didn't work there either.
sena_kun kjk, no exceptions from Comma (usually a red button in the right bottom corner)? 18:08
kjk nope~
it looks like this: snipboard.io/c14ord.jpg 18:10
Doc_Holliwood m: multi sub f(Int $x) { multi sub f(Rat $x) { say "R $x" }; multi sub f(Str $x) { say "S $x" }; $x %% 2 ?? f($x.Str) !! f($x / 2); }; f(2); 18:11
camelia S 2
Doc_Holliwood Yo dawg. I heard you like multis so i defined 2 multis with the multi lol
sena_kun kjk, can you 1)show *.iml file (whatever its name, the extension would be `.iml`) of this project? 18:12
18:17 pmurias joined
kjk sena_kun, I found some files in the .idea folder: ctxt.io/2/AADA4PQiFA 18:18
18:18 Hermit left, Xliff joined
Xliff How can I turn off automatic {} () [] completion in Comma? It's annoying. 18:18
sena_kun kjk, ok, those are ok. Can you gist and provide logs at ~/.CommaCP2020.03/system/log/idea.log (it can be quite big) ? 18:19
kjk sena_kun, here you go: gist.github.com/kjkuan/c588a6b5d05...a27bd7e72d 18:22
guifa2 . o O ( automatic completion in Comma is a bit overly giddy ) 18:25
sena_kun kjk, ok, can confirm it's the issue with loading the symbols. The question is why... Can I PM you?
kjk of course, thanks! 18:26
18:26 pmurias left 18:30 xinming_ left 18:31 xinming_ joined 18:32 aborazmeh left
Geth doc: edmangimelli++ created pull request #3344:
Fix description of Ruby case-when in rb-nutshell
18:36
Xliff How can I turn off automatic {} () [] completion in Comma? It's annoying. 18:40
18:42 agentzh joined, agentzh left, agentzh joined
Xliff Editor -> General -> Smart Keys 18:42
18:43 edmqkk joined
edmqkk Proposed a tiny documentation change. 18:44
github.com/Raku/doc/pull/3344
18:45 xinming_ left
edmqkk (it doesn't look like i can add any reviewers though. but maybe i don't need to? sorry --idk what the protocol is) 18:45
18:46 xinming_ joined
lizmat edmqkk: added a reviewer :-) 18:49
if you cannot add a reviewer, that's fine
18:50 edmqkk left 18:51 softmoth left, softmoth joined 18:56 softmoth left
sena_kun A-a-and currently Perl6::Parser can parse 294 examples out of 317, which makes its coverage more than 90%. \o/ 19:00
19:01 xinming_ left, xinming_ joined
Xliff Grrrr... 19:03
Comma doesn't recognize <Multi_key> WTF?
sena_kun Xliff, hmmmm? 19:05
Xliff sena_kun: en.wikipedia.org/wiki/Compose_key !!!
Thusly, I cannot access any unicode characters.
sena_kun has no idea 19:06
Xliff This works fine everywhere else. What GUI toolkit does Comma use?
19:06 sjm_uk joined
Xliff And what about column mode in Comma editor? 19:07
19:09 mowcat joined 19:10 rbt left 19:11 niceperl joined, rbt joined 19:14 stoned75 joined, Altai-man_ joined 19:17 sena_kun left 19:24 Redfoxmoon left 19:25 kjk left 19:34 rbt left 19:35 rbt joined 19:36 niceperl left 19:47 Redfoxmoon joined 19:48 Redfoxmoon left, Redfoxmoon joined
Xliff *sigh* 19:53
Comma lacks the ability to easily set font size using the scroll wheel.
Can I submit this as a feature request?
Geth doc: fa01cd96fc | (Ed Mangimelli)++ (committed using GitHub Web editor) | doc/Language/rb-nutshell.pod6
Fix description of Ruby case-when in rb-nutshell

Ruby uses the case equality operator (`===`) in `case` expressions ⁠—not `==`. Ruby's `===` operates very similarly to Raku's smartmatch (afaict).
19:56
doc: 1ad5e59248 | (Juan Julián Merelo Guervós)++ (committed using GitHub Web editor) | doc/Language/rb-nutshell.pod6
Merge pull request #3344 from edmangimelli/patch-1

Fix description of Ruby case-when in rb-nutshell
linkable6 Link: docs.raku.org/language/rb-nutshell
jnthn Xliff: Settings, type Zoom in the search box (it's the one under Editor > General)
It's just not enabled by default is all
cpan-raku New module released to CPAN! Gnome::Gtk3 (0.28.0) by 03MARTIMM 20:06
20:08 sjm_uk left 20:27 xinming_ left, xinming_ joined
Xliff jnthn++: Although, for some reason it is not very responsive. 20:36
20:37 mic joined
Xliff jnthn: What about the compose key? 20:38
Hunh> 20:43
Comma says: "Subroutine say is not declared"
timotimo was it unable to run your perl6 sdk stuff?
Xliff No. It's not recognizing texas equivalents for « and » 20:44
And I can't use unicode via compose key, which is a real deal killer for me. 20:45
*sigh* -- and once again I am saddened to give up on Comma and go back to Atom. 20:51
20:51 softmoth joined
Xliff I'll keep trying, though. :/ 20:51
timotimo Xliff:compose key works on my machine 20:55
let me double-check 20:56
yeah even in comma 20:57
20:58 rindolf left
Xliff I'm running Gnome. Are you KDE? 20:58
timotimo xfce4
Xliff Weird.
timotimo i've been called worse :)
Xliff What are you using to set Compose key?
Yes. I think I've thrown a few of those at you. 20:59
timotimo it's already in my keyboard layout
Xliff How was htat set?
s/htat/that/
timotimo hm
Xliff I'm setting mine through GNOME tweaks
So might not be getting low-level enough for Comma.
And WHEEEE! A segfault. 21:00
timotimo i really haven't looked at how xkbmaps are built
Xliff 0x00007ffff4761c0e in p5_call_gv_two_args (my_perl=0x55555a357c70, gv=0x0, arg=0x55555bb508a8, arg2=0x55555966c370, count=0x5555557f1c48, type=0x5555557f1c50, 21:01
err=0x5555557f1c58) at p5helper.c:893
893 SV * const rv = sv_2mortal(newRV((SV*)GvCV(gv)));
I'm guessing gv should not be null...
Fahrfignugen.... I'll need to recompile another rakudo with -g. :/
MasterDuke Xliff: you just need to recompile moarvm, not nqp and/or rakudo also 21:02
timotimo // Tab as Multi_key (Compose) 21:04
// --------------------------------------------------------------
key <TAB> { [ Tab, ISO_Left_Tab, Multi_key, ISO_Level5_Lock, NoSymbol, NoSymbol, NoSymbol, ISO_Level5_Lock ] };
Xliff:that's how it's set
it's in /usr/share/X11/xkb/symbols/de
Xliff *sigh* 21:08
.../usr/share/X11/xkb/symbols/us: "XCompose is out! Unicode combining is in!"
timotimo oh hum?
Xliff Piss off... I want my XCompose.
timotimo unicode combining, what si that? 21:09
typing unicode numbers in with numbers and a through f?
Xliff ?!? 21:11
I have no idea.
xev -event keyboard recognizes my multi-key though. 21:12
21:15 andrzejku left, sena_kun joined, chloekek left 21:17 Altai-man_ left 21:23 leah2 left 21:25 lichtkind joined 21:28 aborazmeh joined, aborazmeh left, aborazmeh joined 21:33 leah2 joined 21:36 mowcat left 21:41 natrys left 21:57 melezhik joined 21:59 wamba joined 22:02 mic left 22:04 melezhik left 22:05 melezhik joined 22:35 __jrjsmrtn__ joined 22:36 _jrjsmrtn left 22:39 wamba left 22:47 lichtkind left 23:02 aborazmeh left 23:05 [Sno] left 23:14 Altai-man_ joined 23:17 sena_kun left 23:21 [Sno] joined 23:24 pecastro left 23:39 daxim left 23:51 daxim joined