Raku Conference Day 2 on Youtube: www.youtube.com/watch?v=BL9-XdC9WYI 🦋 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 14 August 2022.
00:06 reportable6 left 00:08 reportable6 joined
gfldex role B { has $.b }; role A { has $.a; multi method new(*%o (:$a, :$b!)) { self.^mixin(B).bless(|%o) }; multi method new(*%o (:$a)) { self.bless(|%o) } }; multi a($ (:a($) where .so) --> True) {*}; multi a($ (:a($)) --> False) {*}; multi a($ (:a($) where .so, |) --> 42) {*}; a(A.new).say; a(A.new(:a)).say; try a(A.new(:a, :b)).say; $!.WHAT.say if $!; 00:19
evalable6 False
True
42
atweiden-air_ slaps forehead 00:32
of course.
00:37 atweiden-air_ left 01:37 linkable6 left, evalable6 left 01:38 evalable6 joined 01:41 linkable6 joined 02:00 bigdata joined 02:28 vrurg_ is now known as vrurg 03:28 bloatable6 left, notable6 left, benchable6 left, unicodable6 left, quotable6 left, releasable6 left, statisfiable6 left, committable6 left, reportable6 left, bisectable6 left, nativecallable6 left, shareable6 left, squashable6 left, greppable6 left, coverable6 left, linkable6 left, sourceable6 left, evalable6 left, tellable6 left, coverable6 joined 03:29 greppable6 joined, committable6 joined, tellable6 joined, squashable6 joined, shareable6 joined, quotable6 joined 03:30 linkable6 joined, bloatable6 joined, benchable6 joined, nativecallable6 joined, statisfiable6 joined, unicodable6 joined, sourceable6 joined 03:31 evalable6 joined, bisectable6 joined, notable6 joined, reportable6 joined, releasable6 joined 04:31 linkable6 left, nativecallable6 joined, shareable6 left, tellable6 left, benchable6 left, greppable6 left, sourceable6 left, coverable6 left, releasable6 left, reportable6 left, committable6 left, unicodable6 left, squashable6 left, evalable6 left, bloatable6 left, statisfiable6 left, bisectable6 left, quotable6 left, nativecallable6 left, notable6 left 04:32 nativecallable6 joined, committable6 joined, bisectable6 joined, unicodable6 joined, notable6 joined, sourceable6 joined, shareable6 joined 04:33 squashable6 joined, linkable6 joined, quotable6 joined, reportable6 joined, evalable6 joined, coverable6 joined 04:34 greppable6 joined, releasable6 joined, bloatable6 joined, benchable6 joined, tellable6 joined, statisfiable6 joined 05:23 jaguart joined 05:24 jaguart_ joined 05:28 jaguart left 05:31 jaguart_ left 06:07 reportable6 left, reportable6 joined 07:07 quotable6 left, committable6 left, shareable6 left, coverable6 left, reportable6 left, releasable6 left, nativecallable6 left, unicodable6 left, sourceable6 left, evalable6 left, statisfiable6 left, greppable6 left, notable6 left, bloatable6 left, benchable6 left, bisectable6 left, tellable6 left, squashable6 left, linkable6 left 07:08 shareable6 joined, reportable6 joined, abraxxa joined, coverable6 joined 07:09 unicodable6 joined, squashable6 joined, bloatable6 joined, evalable6 joined, linkable6 joined, greppable6 joined, notable6 joined, nativecallable6 joined 07:10 quotable6 joined, releasable6 joined, mexen joined, tellable6 joined, committable6 joined, benchable6 joined, statisfiable6 joined 07:11 bisectable6 joined, sourceable6 joined 07:12 abraxxa left 07:13 abraxxa joined 07:17 Sgeo left 07:46 sena_kun joined 08:12 dakkar joined
SmokeMachine lizmat: Hi! I think I found a bug in rak... `rak '/"=>" \s* 0/ && !/nullable/'` of course it wouldn't work, but it doesn't give 08:14
tellable6 2022-08-20T00:09:51Z #raku <melezhik> SmokeMachine I have fixed sparrowhub.io queue, new builds should get triggered now
SmokeMachine sorry
lizmat: Hi! I think I found a bug in rak... `rak '/"=>" \s* 0/ && !/nullable/'` of course it wouldn't work, but it doesn't give any error (probably because it starts and ends with /) but (of course) it doesn't do what I wanted... could it? 08:15
lizmat: and when I try `rak '{ /"=>" \s* 0/ && !/nullable/ }'` it dies... `Cannot resolve caller Bool(Nil:U: );` 08:16
lizmat SmokeMachine: I hope that I will be able to release the next App::Rak before Wednesday, depending internally on the new plumbing, aka the "rak" module 08:47
raku.land/zef:lizmat/rak
I'm pretty sure it will show new issues, so I'm not focussing on solving issues on the current (old) codebase 08:48
SmokeMachine lizmat: ok, thanks
lizmat meanwhile, if you would want to check out whether it works with rak (you would have to make your own CLI) 08:49
SmokeMachine lizmat: but do you think `'/regex1/ && !/regex2/'` should work? 08:50
lizmat well, I don't see any reason it shouldn't (yet)
when something starts and ends with a / , the string will be EVALled 08:51
SmokeMachine or at least `'{ /regex1/ && !/regex2/ }'`
lizmat as long as the EVAL works and something Callable comes of it, it should work afaics
SmokeMachine really? that answers why it didn't die... but don't answer why I got the wrong result... :( 08:52
lizmat there's some trickery involved if you also specified :ignorecase and/or :ignoremark
(adding :i:m into the regex)
SmokeMachine lizmat: changing the subject, sorry for so many tweets last week... I didn't want to increase your work for Rakudo weekly... if you prefer to leave some of my tweets out of it, I would understand... 08:57
lizmat This time of year I worry more abourt lack of content than too much content :-) so the tweets were welcome to me :-) 08:58
SmokeMachine :) 👍 08:59
09:12 linkable6 left, evalable6 left 09:13 evalable6 joined 09:14 linkable6 joined 09:45 sena_kun left
lizmat SmokeMachine: changing the subject on you: looks like github.com/FCO/OrderedHash is lacking some very basic documentation ? 09:46
09:47 squashable6 left 09:48 squashable6 joined
SmokeMachine lizmat: yes, it is… I have to find some time to write it up… I just released that because there was a PR there… 09:51
lizmat I tend not to mention modules without documentation in the Weekly :-) 09:52
SmokeMachine lizmat: that's a good choice in my opinion...
when I write some documentation I'll make a new release to let it be announced... 09:54
lizmat okidoki!
SmokeMachine (to tell the truth I didn't remember I had written that before the PR has arrived...) 09:55
10:27 sena_kun joined
gfldex lolibloggedalittle: gfldex.wordpress.com/2022/08/22/su...ospection/ 10:31
SmokeMachine gfldex: do you need eval there? 10:39
m: sub bla($a, :$b, *@rest, *%opts) { say &?ROUTINE.signature.params>>.&{ ::(.name) } }; bla 1, :2b, 3, 4, 5
camelia (1 2 [3 4 5] {})
SmokeMachine m: sub bla($a, :$b, *@rest, *%opts) { die; CATCH { say &?ROUTINE.signature.params>>.&{ ::(.name) } } }; bla 1, :2b, 3, 4, 5 10:40
camelia (1 2 [3 4 5] {})
Died
in sub bla at <tmp> line 1
in block <unit> at <tmp> line 1
SmokeMachine gfldex: ^^ 10:45
gfldex good catch :-> 10:48
11:27 linkable6 left, evalable6 left, evalable6 joined 11:29 linkable6 joined 12:08 reportable6 left 12:10 reportable6 joined 12:19 bigdata left 12:22 ab5tract joined
ab5tract Is there some way to get this parametization to work as expected? 12:40
tellable6 2022-07-28T20:38:50Z #raku <tonyo> ab5tract `Considering that I was able to create a fez representation of a module without any kind of authentication that I owned the module` - what does this mean?
ab5tract m: role A[::T] { has $.b; method a(T $b) { A[T].new(:$b) } }; my A[Int] $f = A[Int].new.a(55)
camelia Type check failed in assignment to $f; expected A[Int] but got A[T] (A[T].new(b => 55))
in block <unit> at <tmp> line 1
ab5tract I didn't see a bug report filed for this but maybe my search-fu wasn't good enough 12:42
.tell tonyo I meant that it seemed like all I had to do was call fez from within a checked out repo. Meaning that if I checked out a repo that wasn't already on fez, I could "claim" it 12:45
tellable6 ab5tract, I'll pass your message to tonyo
SmokeMachine m: role A[::T] { has $.b; method a(T $b) { ::?CLASS.new(:$b) } }; my A[Int] $f = A[Int].a(55) # <-- ab5tract 12:46
camelia ( no output )
ab5tract ah, thanks SmokeMachine!
ah, thanks SmokeMachine! 12:47
SmokeMachine I was thinking... as we have: `@bla is List` would it make sense to be possible to do: `@bla are Int` and that be equivalent to: `@bla where *.are ~~ Int`? 13:03
lizmat as in "my @bla are Int" ? 13:08
or "if @bla are Int {" ?? 13:09
SmokeMachine ^
13:14 ab5tract left
SmokeMachine lizmat: the first one 13:15
lizmat How is that different from "my Int @bla" ? 13:16
SmokeMachine lizmat: but that would be even more useful in `sub fff(@bla are Int) {...}`
leont Can someone please merge this: github.com/Raku/doc/pull/4086, the operator precedence table is currently entirely wrong
SmokeMachine lizmat: because that would work better on functions 13:17
Geth doc: 68ca383047 | (Daniel Mita)++ (committed using GitHub Web editor) | assets/js/main.js
Fix precedence table ordering

Table header names changed in #4031. Closes #4085.
doc: 396e823f2c | Altai-man++ (committed using GitHub Web editor) | assets/js/main.js
Merge pull request #4086 from Raku/operator-table-fix

Fix precedence table ordering
13:18 linkable6 left, linkable6 joined
lizmat SmokeMachine: interesting idea 13:18
leont Oh wait, I could have merged that myself. I keep forgetting someone gave me that commit bit 😅 13:20
SmokeMachine I think that would be useful...
14:18 linkable6 left, evalable6 left, evalable6 joined 14:21 linkable6 joined
lizmat and yet another Rakudo Weekly News hits the Net: rakudoweekly.blog/2022/08/22/2022-34-rakuust/ 15:04
15:05 xinming joined
tonyo .tell ab5tract you could claim it only as far as whatever user you're logged into fez as, there's less the idea of claiming a name here since Foo:auth<zef:t> and Foo:auth<zef:a> are different modules. so yes, you could upload it but you couldn't upload it for another user 15:30
tellable6 tonyo, I'll pass your message to ab5tract
16:05 linkable6 left, evalable6 left 16:08 evalable6 joined, linkable6 joined 16:38 dakkar left 16:54 sena_kun left
Anton Antonov @lizmat It is a Mathematica notebook, not a Jupyter one! 😲 17:29
17:41 sena_kun joined
lizmat oops 17:51
fixed 17:52
Anton Antonov @lizmat Thanks! 🙂 17:56
18:06 reportable6 left 18:07 reportable6 joined 18:24 jaguart_ joined 19:07 jaguart_ left 19:08 sena_kun left 19:09 sena_kun joined 19:12 sena_kun left 19:13 sena_kun joined 19:14 jaguart_ joined 19:26 jaguart_ left 19:32 abraxxa left
MitarashiDango[m How are the assets generated on docs.raku.org? It looks like the latest js change isn't showing up yet. 20:04
20:31 sena_kun left 21:31 bloatable6 left, sourceable6 left, bisectable6 left, greppable6 left, unicodable6 left, tellable6 left, squashable6 left, evalable6 left, reportable6 left, benchable6 left, linkable6 left, nativecallable6 left, statisfiable6 left, notable6 left, releasable6 left, committable6 left, shareable6 left, coverable6 left, quotable6 left 21:32 committable6 joined, statisfiable6 joined, releasable6 joined, sourceable6 joined, notable6 joined 21:33 nativecallable6 joined, linkable6 joined, benchable6 joined, reportable6 joined, squashable6 joined, shareable6 joined 21:34 bisectable6 joined, evalable6 joined, tellable6 joined, greppable6 joined, bloatable6 joined, quotable6 joined, unicodable6 joined, coverable6 joined 21:48 n1to joined 21:53 n1to left 22:36 Sgeo joined 23:21 HvszrStykp left, vrurg left, vrurg_ joined