🦋 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.
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
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
cpan-raku New module released to CPAN! Test::Async (0.0.1) by 03VRURG 03:18
lizmat weekly: news.perlfoundation.org/post/gp_rakuast 09:41
notable6 lizmat, Noted! (weekly)
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
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
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
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
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
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)
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
Geth doc/master: 4 commits pushed by (JJ Merelo)++ 16:59
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.
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?
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
kjk sena_kun, I found some files in the .idea folder: ctxt.io/2/AADA4PQiFA 18:18
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
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
Xliff Editor -> General -> Smart Keys 18:42
edmqkk Proposed a tiny documentation change. 18:44
github.com/Raku/doc/pull/3344
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
lizmat edmqkk: added a reviewer :-) 18:49
if you cannot add a reviewer, that's fine
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
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?
Xliff And what about column mode in Comma editor? 19:07
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
Xliff jnthn++: Although, for some reason it is not very responsive. 20:36
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
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
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