🦋 Welcome to the MAIN() IRC channel of the Raku Programming Language (raku.org). Log available at irclogs.raku.org/raku/live.html . If you're a beginner, you can also check out the #raku-beginner channel!
Set by lizmat on 6 September 2022.
aruniecrisps ah thank you! 00:18
lizmat \ (aka unspace) predates being allowed to have whitespace between the invocant and .method 00:50
before that was allowed, the unspace was the only way to make functional style programming go across a single line 00:52
or to line method calls up across lines
guifa lizmat++ thanks for history lesson 01:02
.landyacht. is there an easy way to copy a SetHash? 01:50
oh nevermind, .new works 01:51
I assumed SetHash(...) and SetHash.new(...) would have the same behavior
is copy does not work as expected for SetHash :P 01:52
no, nevermind - the way it prints is just deceptive 04:42
SetHash.new($other-set) creates a set-of-sets
ab5tract m: my $uno = <a b c>.SetHash; my $dos = SetHash.new: |$uno.keys; $dos<a>:delete; dd $uno, $dos 11:46
camelia $uno = SetHash.new("b","c","a")
$dos = SetHash.new("c","b")
ab5tract I agree, it's a bit confusing 11:54
nahita3882 hi, pblock is "parametrized" block, "xblock" is "expression followed by a pblock"; for example, in for @vals -> $v { ... }, the "@vals" is the expression, the -> $v { ... } is the pblock part. In fact, it's a pblock(0) -- that number 0 can be 3 things (github.com/rakudo/rakudo/blob/main...99-L1002); 0 means no $_ will be installed (e.g., above because $v is there), and in the 11:59
"forgiven"s case, I'm manually inserting a $_ := ... in front of the block, so I thought it would make sense to have pblock(0) to relieve of any extra Action to happen for an implicit topic instantaniation. However, I'm also overriding the corresponding action, so it probably doesn't matter if it was pblock(1) or 2... Because the "parent" action of pblock (in Actions.nqp) is not called. Still, it signals something i guess when
not spreading confusion :p
ab5tract first beta of the Raku IntelliJ plugin has been pushed. Not terribly exciting in that it is just a name change, but there may hopefully be one or two bug squishes in there as well 13:36
guifa: a major change is that now the version displayed in the settings panel reflects the current beta. I also set it to not require restarts on installation, with a glimmer of hope that this may somehow influence the "coming back to life after crashes" behavior you mentioned 13:38
lizmat github.com/slid1amo2n3e4/mv2d/issues/1 13:41
guifa ab5tract noted! will jump into this at some point this week 13:45
Today is crunch time :( project paper and exam all due today lol
ab5tract You got this! 13:46
Enjoy the other side of the finish line once you get there :)
guifa is too old too be doing freshman-college-style cramming. Likely literally 2x too old ha 13:47
antononcube @ab5tract I see only "v2.0-beta.31" from 2 weeks agon on the GitHub page. 14:11
If that is newest comma-2.0 version then I have it. I am just not sure "first beta" means. 14:12
ab5tract antononcube Thanks for pointing it out. I have to adjust the CI pipeline: github.com/ab5tract/comma-plugin/r...4.3-beta.1
The plugin has been renamed 14:13
antononcube Ok.
ab5tract Though I expect we may all be saying Comma colloquially anyway 14:14
antononcube Ok
@ab5tract When I try to install the new Comma plugin I get the message: "Fail to load plugin descriptor from file comma-plugin-2024.3-beta.1.zip" 14:42
ab5tract Interesting. I'll look into this now
antononcube: This ought to be better github.com/ab5tract/comma-plugin/r...4.3-beta.1 15:05
lizmat weekly: github.com/ab5tract/comma-plugin/r...4.3-beta.1
notable6 lizmat, Noted! (weekly)
antononcube @ab5tract Yes, it works! 15:07
ab5tract \o/
ky is there a cute way to "zip join" two lists? <1 2 3> Z~ <a b> becomes <1a 2b> but I want <1 a 2 b 3>. this could be like join, but where the argument is a list: <1 2 3>.join: <a b> but join does not work that way 18:56
nahita3882 maybe flat roundrobin $a, $b? 18:58
ky that'll work 19:00
avuserow m: say <1 2 3> <<,>> <a b> 19:46
camelia ((1 a) (2 b) (3 a))
avuserow ky: ^ like that?
lizmat no, that repeats the rhs 19:47
is my understanding :-)
avuserow oh, yes, you are correct :)
so many ways to combine lists of unequal sizes
librasteve flat roundrobin |$a, |$b <== need to slip the args if they are in scalar container ;-) 19:50
flat roundrobin @a, @b <=== much better to use @ when you have many things imo 19:51
timo i assume @$a or $a.list would also work 19:58
nahita3882 yes also $a[], $a[*], $a{}, $a<>, $a.self 20:03
and you can bind to begin with no container (attempt to justify $ :p)