🦋 Welcome to the MAIN() IRC channel of the Raku Programming Language (raku.org). This channel is logged for the purpose of keeping a history about its development | evalbot usage: 'm: say 3;' or /msg camelia m: ... | Log inspection is getting closer to beta. If you're a beginner, you can also check out the #raku-beginner channel!
Set by lizmat on 25 August 2021.
Geth__ Raku-Steering-Council/main: 8db193d8a0 | (Geoffrey Broadwell)++ | minutes/20211211.md
Add RSC meeting minutes for 2021-12-11
05:44
mykhal hi, can cone do cross-apply like ('a'..'c') op (&lc, &uc) == <a b c A B C> ? (op I thought could be X. or >>.>> ) 10:17
moon-child huh I thought you could do variadic map in cl but apparently not 10:20
otherwise you could map
oh, wait
yea here ya go 10:21
m: say map &map.assuming(*, 'a'..'c'), (&uc,&lc)
camelia ((A B C) (a b c))
mykhal interesting.. btw, i really wanted flattened (which X<infixop> is used for) 10:22
moon-child m: say map &slip∘&map.assuming(*, 'a'..'c'), (&uc,&lc) 10:23
camelia (A B C a b c)
mykhal .. and wanted also some identity rather than lc on already lowcase ')
moon-child I am not sure why there is no sub id. But if that's what you want then why not just (|x.uc) , |x? 10:24
mykhal not sure of "sub id", and exact usage of |x syntax 10:33
and really hoper for cross-op or hyper 10:34
moon-child m: say [&uc,&lc] X[&map] ('a'..'c') 10:35
camelia ((A) (B) (C) (a) (b) (c))
moon-child not really sure why you've your heart set on X though 10:35
mykhal moon-child++ rather nice, and ok, i'll use RX 10:38
m: say ('a'..'c') RX[&map] [&(*~''), &uc] # still not perfect 10:48
camelia ((a) (b) (c) (A) (B) (C))
moon-child replace &(*~'') with &[~] 10:49
mykhal cool, but shouldn't this rather work like that instead of assuming confusion with perlish . concat ? 11:01
m: say ('a'..'c') X. (&[~], &uc)
camelia 5===SORRY!5=== Error while compiling <tmp>
Unsupported use of . to concatenate strings. In Raku please use: ~.
at <tmp>:1
------> 3say ('a'..'c') X.7⏏5 (&[~], &uc)
moon-child why should X. work that way?
mykhal very cnvenience; and i don't see hard philosophical problems with it, yet 11:10
and . is (infix operator)-ish 11:21
mykhal oh.. 12:45
m: say 'a' . &uc
camelia 5===SORRY!5=== Error while compiling <tmp>
Unsupported use of . to concatenate strings. In Raku please use: ~.
at <tmp>:1
------> 3say 'a' .7⏏5 &uc
mykhal now i see the philosophical problem 12:46
Altai-man mykhal, (whispers) haskell 12:50
mscha  my @a = [1,2], [3,4]; dd @a.map(*.Str); # OK 12:53
evalable6 ("1 2", "3 4").Seq
mscha my @a = [1,2], [3,4]; dd @a».Str; # Huh?
evalable6 Array element = [["1", "2"], ["3", "4"]]
mscha Why aren't those equivalent?  » goes one level deeper than I expected. 12:54
atroxaper Hello, #raku 13:08
Altai-man o/ 13:09
mykhal mscha: because of nodality "issues", it's doing rather deepmap 13:10
atroxaper codesections: Hello. I have a question about lowbar and decided to not create the new issue for now. Is it final decision about using 'note' in Dbg package but not 'say' or 'put'? I, for example, do not use 'dd' for debug because it's output are messed with app's output. 13:16
SmokeMachine m: say <a e i o u> X[andthen] (*.lc, *.uc) 13:37
camelia (a A e E i I o O u U)
SmokeMachine m: say <a e i o u> X[andthen] (*.&lc, *.&uc)
camelia (a A e E i I o O u U)
mykhal m: say <a e i o u> X[andthen] (~*, *.uc) # SmokeMachine++ 13:39
camelia (a A e E i I o O u U)
SmokeMachine but: 13:42
say <<a e i o u "">> X[andthen] (*.lc, *.uc) 13:43
evalable6 (a A e E i I o O u U )
SmokeMachine say <<a e i o u "" 0>> X[andthen] (*.lc, *.uc)
evalable6 (a A e E i I o O u U 0 0)
SmokeMachine :)
mykhal ok, is't natural, can be then .uniq'd .. 14:21
but i'm inspecting mscha's nodality issue, thought to get expected result with 14:23
m: my @a = [[1, 2], [3, 4]]; my method strn (Array --> Str) is nodal { self.Str }; say @a>>.strn.raku
camelia No such method 'strn' for invocant of type 'Int'. Did you mean any of
these: 'Str', 'atan', 'sign', 'sin', 'sort', 'sqrt', 'tan'?
in block <unit> at <tmp> line 1
gfldex hohohoibloggedalittle: gfldex.wordpress.com/2021/12/13/re...ive-caves/ 14:47
It's a shame that the AoC got only very small datasets to work with. Very little chance to use threading and show those Pythonists who is boss! 14:52
SmokeMachine m: my @a = [[1, 2], [3, 4]]; my method strn (Array: --> Str) is nodal { self.Str }; say @a>>.&strn.raku 15:48
camelia ("1 2", "3 4")
SmokeMachine m: my @a = [[1, 2], [3, 4]]; my method strn (Array: --> Str()) is nodal { }; say @a>>.&strn.raku 15:49
camelia Use of Nil in string context
("", "")
in method strn at <tmp> line 1
Use of Nil in string context
in method strn at <tmp> line 1
SmokeMachine m: my @a = [[1, 2], [3, 4]]; my method strn (Array: --> Str()) is nodal { self }; say @a>>.&strn.raku
camelia ("1 2", "3 4")
tbrowder fyi: i’m working on my Mi6::Helper module to make it easier to transform an mi6-created library for cpan to the Zef repo. should be available in a few days. the curr ver is basically a place holder showing planned features (outdated now) 16:15
Geth doc: f101423ab5 | Coke++ | util/update-and-test
more diagnostics
17:12
Xliff gfldex: I have a lot of troubles with node walking algorithms. What materials would you suggest I read to bone up on 'em? 18:58
gfldex Xliff: I don't really have any recommendations. I either recurse with a recursive function or I recurse with Iterators and build the stack myself. 19:25
There are plenty of graphs where this will fail and I leave those to folk who are paid to worry about them. :) 19:26
lizmat And another Rakudo Weekly News hits the Net: rakudoweekly.blog/2021/12/13/2021-...or-micros/ 20:59
moritz_ lizmat++ 21:11
tonyo codesections: not sure if you're more active here than GH but if you'd like to continue the chorum stuff here (or in privmsg) that's okay by me 22:06
tellable6 2021-12-11T09:33:59Z #whateverable <MasterDuke> tonyo: gist.github.com/Whateverable/3e29b...9f343b364f
tonyo ? 22:07
MasterDuke tonyo: you'd tried to run benchable6, i was just showing you the output 22:19