🦋 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.
wayland76 o/ 10:52
lizmat wayland76 \o 10:54
wayland76 Well, I made some progress in my Table-Oriented Programming module, specifically in implementing ## $table[0]<name> = 'Narnia' ## where the code between the double-hashes will automatically store a value in a Postgres database. It doesn't work yet, but I'm making progress :) . 12:17
...and I'm about to turn in. Goodnight all :) .
lizmat gnight wayland76 12:28
vendethiel Hmm, maybe .min/.max should intercept :by options and error? 14:27
I just got bit by a conversion from sub form to Cool form and lost the behavior with no warning 14:28
antononcube @vendethiel It is not clear to me what you mean. But R has the option na.rm in most of its numerical functions. "Not Availalble" (NA) objects are essentially removed before the corresponding numeric computations. 15:05
dakkar I suspect @vendethiel is referring to the difference between `multi sub max(+args, :&by, …)` and `multi method max(&by?, …)` 15:07
vendethiel dakkar: correct 15:08
dakkar so if you replace `max(1,2,3, :by(something))` with `[1,2,3].max(:by(something))`, the `something` will be silently ignored
it would be nice if the method form noticed the `:by` and either used it, or warned
antononcube @dakkar Good to know! 15:09
lizmat that feels like a bug 16:50
actually, with .max, the "by" is an optional positional 16:51
m: say (3,20,100).max(*.Str) 16:53
camelia 3
lizmat m: say (3,20,100).max
camelia 100
lizmat vendethiel ^
ah... dakkar pointed that out already :-)
guest555 eval: say 42 16:55
vendethiel I said I got bit by it
I realized before posting
guest555 r: say 42
camelia 42
Can't open perl script "/home/camelia/rakudo-j-inst/bin/eval-client.pl": No such file or directory
vendethiel But I still feel like it could do either of what dakkar suggested
guest555 m: Match.print 16:56
camelia Cannot look up attributes in a Match type object. Did you forget a '.new'?
in block <unit> at <tmp> line 1
guest555 m: Match.new.print
camelia ( no output )
guest555 m: ('a' ~~ / . /).say 16:57
camelia Too many positionals passed; expected 1 argument but got 2
in block <unit> at <tmp> line 1
lizmat vendethiel working on that :-) 16:59
vendethiel Perfect! lizmat++ 17:11
guest555 m: try { .print-nl } or put $! for Any, Capture, Match; 17:12
camelia Cannot resolve caller print(Any:U: Str:D); none of these signatures matches:
(Mu $:: *%_)
Cannot resolve caller print(Capture:U: Str:D); none of these signatures matches:
(Mu $:: *%_)
Too many positionals passed; expected 1 argument bu…
lizmat vendethiel github.com/rakudo/rakudo/pull/5607 17:20
lizmat wonders what guest555 is trying to achieve 17:21
guest555 m: Any.print-nl; # New error compared to 2019, now Cannot resolve caller print(Any:U: Str:D) 17:27
camelia Cannot resolve caller print(Any:U: Str:D); none of these signatures matches:
(Mu $:: *%_)
in block <unit> at <tmp> line 1
guest555 m: Match.print-nl; # Same error as in 2019: Too many positionals passed; expected 1 argument but got 2
camelia Too many positionals passed; expected 1 argument but got 2
in block <unit> at <tmp> line 1
guest555 lizmat: raiph here, debugging a problem. 17:29
lizmat: #whateverable bots weren't working so tried here
lizmat gotcha
guest555 lizmat: comment added to issue: github.com/rakudo/rakudo/issues/27...2237131552
vendethiel lizmat++: perfect DWIM :-) 17:34
AlexDaniel woah, that's two bisectables 20:12
bisectable: help
bisectable6 AlexDaniel, Like this: bisectable6: old=2015.12 new=HEAD exit 1 if (^∞).grep({ last })[5] // 0 == 4 # See wiki for more examples: github.com/Raku/whateverable/wiki/Bisectable
bisectable6__ AlexDaniel, Like this: bisectable6__: old=2015.12 new=HEAD exit 1 if (^∞).grep({ last })[5] // 0 == 4 # See wiki for more examples: github.com/Raku/whateverable/wiki/Bisectable
AlexDaniel … my mistake :D 20:12
AlexDaniel sorry, had to kill them again :) 20:14
AlexDaniel lizmat, raiph: I don't know what was the issue, I just saw “connection reset by peer” in the logs and IRC::Client didn't seem to try to reconnect. I just killed them and they should start up just fine now. In the future, you can try to make a commit in raku/whateverable repo, that triggerss a redeploy of all bots which achieves the same thing 20:16
lizmat AlexDaniel: Thanks! 20:18
AlexDaniel lizmat: was it you sending the message? It's a bit of an unconventional transport for messages nowadays, it's usually spam but then spammers usually don't call me AlexDaniel :D 20:23
another possibility is always github.com/Raku/whateverable/issues :) less personal, but works just as fast 20:26
lizmat AlexDaniel: yeah it was me :-) 21:45
tellable6 lizmat, I'll pass your message to AlexDaniel
lizmat thank you, tellable6 :-) 21:58
tellable6 lizmat, It's my pleasure!
patrickb Is it possible to convert a synchronous socket handle (as returned by nqp::bindsock) to an async socket handle (as returned by nqp::asyncconnect)?
A quick look at the moar sources says no. :-( 22:03