🦋 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.
00:02 yewscion left 00:10 wbooze joined 00:20 Guest37 joined 00:21 Guest37 left 00:24 wbooze left
[Coke] ah 00:33
00:35 andinus left 00:36 andinus joined 01:02 lichtkind_ left 01:06 yewscion joined 01:11 yewscion left 01:14 yewscion joined 01:18 yewscion left 02:29 nine left 02:30 nine joined 02:45 hulk joined 02:46 kylese left 02:58 maylay left 03:01 maylay joined 03:15 hulk left, kylese joined 03:31 yewscion joined 03:37 yewscion left 04:49 stanrifkin_ joined 04:51 maylay left, stanrifkin left 04:54 maylay joined 04:55 holyghost joined 05:08 maylay left 05:10 maylay joined 05:12 Aedil joined 05:52 Aedil left
holyghost Hi, I can't find a MacOS X el capitan version of CommaIDE. Has there been one ? 05:52
05:56 Aedil joined
holyghost ok sorry, I'll use the old computer then 06:31
06:48 merp left 06:53 holyghost left 07:10 Sgeo left 07:11 wayland joined 08:37 maylay left 08:38 wayland left, wayland joined 08:39 maylay joined 08:46 stanrifkin_ left 08:57 abraxxa-home joined, abraxxa-home left, MyNetAz left 08:58 abraxxa-home joined
wayland o/ 09:06
09:12 MyNetAz joined 09:37 jpn joined 09:41 MyNetAz left 09:56 MyNetAz joined 10:11 discord-raku-bot left, discord-raku-bot joined 10:31 kylese left 10:33 kylese joined 10:56 ulipink left 11:14 stanrifkin joined 11:19 lichtkind joined 11:25 wbooze joined 11:30 wbooze_ joined 11:32 wbooze left
lizmat weekly: github.com/Raku/problem-solving/issues/470 11:35
notable6 lizmat, Noted! (weekly)
11:40 wbooze_ is now known as Inline
Voldenet IMO `$foo.=bar.baz` should be interpreted as `$foo = $foo.bar.baz` 11:44
lizmat yeah, the DWIM option :-)
Voldenet in fact, method calling ops are problematic in even more cases 11:47
m: sub x { $^a.say }; 42.&x
camelia 42
Voldenet m: sub x { $^a.say }; 42 .&x
camelia ===SORRY!=== Error while compiling <tmp>
Malformed postfix call (only basic method calls that exclusively use a dot can be detached)
at <tmp>:1
------> sub x { $^a.say }; 42 .<HERE>&x
lizmat that's a different issue, please let not mix them :-) 11:48
Voldenet I know, just wanted to see if that edge case still exist 11:49
lizmat well, apparently that error has been made specifically for that case. I wonder why
Voldenet though to me the solution of both cases could be on ast side 11:50
lizmat in the $foo .= bar.baz case, for sure 11:51
Voldenet what I mean is that they could rewrite the code in specific way 11:52
lizmat the .&x case, for some reason someone put a stop to that for a specific reason
yeah, gotcha :-)
Voldenet so `(a).&b` becomes `b(a)`
lizmat again, @Larry at some point decided to not allow detached .&foo we need to figure out first why that was 11:54
Voldenet maybe & could be used in some other context… junction? 11:57
lizmat possibly 11:58
11:58 Inline left 11:59 Guest236 joined
Voldenet it could be fairly useful with new .assuming, but the syntax wouldn't be very appealing 12:02
m: sub x { ($^a, $^b).say }; 42.&(&x.assuming(1, *))
camelia (1 42)
12:03 JimmyZhuo joined
Voldenet intriguingly, feed op does very similar thing 12:06
m: sub x { ($^a, $^b).say }; 42 ==> x(1) # but it allows space 12:07
camelia (1 42)
antononcube @holyghost CommaIDE is not maintained anymore. I assume some people have kept its old versions. 12:18
Voldenet hah 12:19
antononcube Maybe the Comma Plugin (2.0) can work on both old and new computers with "current" IntelliJ.
Voldenet m: sub x { ($^a).say }; ($=42) .= &x;
camelia 42
Voldenet so it is allowed, just in a very roundabout way
antononcube BTW, "Comma plugin" same as "Raku plugin". 12:21
12:33 jpn left 12:36 wbooze_ joined, wbooze_ is now known as Inline 12:37 Inline is now known as wbooze 12:39 Guest236 left
librasteve finally learns to use rakudoc ... librasteve.github.io/Air/ 12:39
antononcube As Neo says to Agent Smith: "Congratulations." 12:47
13:12 wbooze left 13:14 MyNetAz left
melezhik. librasteve: so Air is basically set of libraries that in the end of the day produce HTML code ? Right ? 13:14
13:21 yewscion joined 13:23 rir joined 13:28 wbooze joined 13:29 MyNetAz joined 13:49 wbooze left 13:55 jpn joined 13:59 yewscion left 14:00 yewscion joined, jpn left 14:02 yewscion left 14:05 yewscion joined
librasteve yep (and CSS and JS) 14:12
14:13 maylay left 14:15 maylay joined 14:20 JimmyZhuo left, yewscion left
(page main p "Yo baby!").HTML.say <= a minimal example 14:21
antononcube @melezhik. Hopefully, in the mornings too...
librasteve maybe I should say that in the docs! 14:22
done librasteve.github.io/Air/docs/Air.html 14:31
14:31 melezhik joined
melezhik .tell librasteve: maybe you'll be interested in this - pasteboard.co/7RtYyN80SymX.jpg 14:32
tellable6 melezhik, I'll pass your message to librasteve
melezhik or this - gist.github.com/melezhik/c41d963f4...27eb37c986 14:33
librasteve melezhik: I am planning to put your sparky badge in my readme - do you support the mi6 Badge shortcut (see dist.ini)
tellable6 2025-03-14T14:32:36Z #raku <melezhik> librasteve: maybe you'll be interested in this - pasteboard.co/7RtYyN80SymX.jpg
14:34 jpn joined 14:36 yewscion joined
melezhik yeah I mean that maybe it'll be interesting to use Sparrow check dsl to test HTML output like this - github.com/melezhik/Air-Sandbox/bl...task.check 14:36
antononcube @librasteve Showing your MI6 badge in public might be contrary to agency's policy.
melezhik to support sparky badges I'll need probably create a PR for App::Mi6 , not sure though if sparky is popular enough for such a PR, meanwhile you can pick up the badge code from report page 14:40
14:41 apac joined, yewscion left 14:42 yewscion joined, melezhik left 14:47 yewscion left
librasteve the default mi6 operation is to overwrite README.md from MyModule.rakumod rakudoc ... right now I have this disabled so its no problem, but without this Mi6 PR I cannot enable it (which would be nice) ... the benefit to you is that if you put sparky setup in Mi6 then more people will be likely to use sparky 14:48
![SparrowCI](ci.sparrowhub.io/project/librasteve-Air/badge) 14:57
^^ i put this in my README and doesnt work (just shows "Sparky: Build") 14:58
14:58 yewscion joined
sorry I saw the sparky docs say my $badge = "![Sparky](sparky.sparrowhub.io/badge/{tags()...foo=bar)"; but I cannot see where to pick up the badge or what tags() or foo bar are 14:59
also the build is failing on sparky (it passes on my locak machine ) - so that is a bit of an issue too 15:00
15:01 maylay left, yewscion left 15:02 swaggboi joined 15:03 maylay joined
well mi6 was failing too (gha) - just fixed that so taking another look at sparky web status 15:04
melezik: maybe you can send me login creds via pm (or to librasteve@furnival.net) then I can start a sparky build and hopefully see the logs? 15:14
15:18 yewscion joined 15:22 apac left 15:23 yewscion left 15:35 jpn left
melezhik. librasteve: Air project is already on Sparky. The badge could loaded from this link - sparky.sparrowhub.io/file_view/lib.../badge.txt 15:36
For convenience every report has artifacts tab 15:37
Where one can pick up badge.txt with badge markdown code in it
15:38 yewscion joined
librasteve OK - I have the badge, it now shows Failing as expected 15:41
thanks!
it now is riunning 2025-03-14 15:41:22 on sparky webpage 15:42
and now it shows Failed on the sparky webpage ... BUT it succeeds locally and with the Mi6 GHA ... so how can I debug the sparky fail? 15:43
melezhik. You need to go to sparky and look at the last report
sparky.sparrowhub.io/report/libras...-Air/23999 15:44
Could not find Cro::HTTP::Router 15:45
Actually
librasteve oh - you have to click the number to go to the report ... tbh that was hard to find without you showing me 15:46
melezhik. Yeah . Sorry . I am aware about this UX flaw 15:48
librasteve I have now added Cro::HTTP::Router META6.json deps (red fac)
15:49 jpn joined
job number 24000 that must be lucky 15:49
melezhik. Yep 👍
Nice number by the way 😀 15:50
librasteve that's what I mean
oh just found the official badge under Artifacts
melezhik. Yes 15:52
Cro deps by the way always take time to install even with -/test zef flag
librasteve yeah I'm watching the paint dry 15:53
melezhik. So now build will be way more slower
Also sparky vm not very powerful 15:54
Success 15:55
GitHub also has annoying issue with caching images , so sometimes badge in readme rendered in GitHub gets old red color even though build succeeded 15:57
It’s known issue
librasteve yay
melezhik. There is no problem with Raku.land by the way it renders always actual value 15:58
Btw if you are interested in adding ci for your other projects - just follow these steps - sparrowdo.wordpress.com/2025/02/26...u-modules/ 15:59
librasteve ask for credentials in Raku IRC channel on Libera chat 16:00
think I juist broke github 16:01
melezhik. I will pm you 16:08
16:08 librasteve_ joined
librasteve_ please pm to librasteve_ (that's me in IRC app 16:09
note trailing underscore
melezhik. Ok 16:10
16:10 kylese left 16:11 melezhik joined 16:13 kylese joined 16:14 floyza joined 16:17 melezhik left, kylese left, euandreh joined
librasteve got it - thanks! 16:27
16:28 euandreh1 joined
melezhik. 👍 16:30
librasteve thanks for your help - fwiw I think that sparky is a lot quicker than GHA ;-) 16:31
melezhik. Spareky allow GitHub based authentication ( oauth2) but meanwhile I have something simple in mind . In a future if there is need I might switch it to gh auth
Interesting … it should not because like I said vm is not very impressive 16:32
16:32 euandreh left, euandreh1 is now known as euandreh
Or you mean in a sense of setup ? 16:32
librasteve i hear that GHA uses all the MS old fleet of 486 boxen
melezhik. Completely
Ah … ok
So at least you have a privilege of an almost dedicated VM , haha 16:33
Till it’s get cramped by other tenants ))) 16:35
I also try to upgrade sparky Rakudo to keep up with latest version almost every release 16:38
librasteve well it waas a very good experience (when I realised the report is under the number)
melezhik. Yeah 😂
16:49 melezhik joined 16:54 melezhik left 17:04 yewscion left 17:16 kylese joined 17:18 yewscion joined 17:19 kylese left 17:20 kylese joined 17:21 jpn left 17:33 euandreh left 17:34 jpn joined 17:36 kylese left 17:37 kylese joined 17:50 euandreh joined 17:56 euandreh1 joined, euandreh left, euandreh1 is now known as euandreh 17:57 Sgeo joined 18:00 wbooze joined 18:02 euandreh left 18:03 euandreh joined 18:13 melezhik joined 18:15 LainExperiments joined 18:20 maylay left 18:22 maylay joined 18:23 sena_kun joined 18:28 melezhik left 18:32 maylay left 18:35 maylay joined 18:47 jpn left 18:50 Aedil left 18:51 jpn joined 18:53 euandreh left, euandreh joined 18:58 euandreh1 joined, jpn left 19:00 euandreh left, euandreh1 is now known as euandreh 19:02 Aedil joined 19:08 jpn joined 19:15 LainExperiments left 19:25 LainExperiments joined 19:36 abraxxa-home left 19:57 jpn left 20:03 yewscion left 20:08 Altai-man joined 20:10 sena_kun left 20:21 yewscion joined 20:29 yewscion left 20:33 yewscion joined 20:37 wbooze left 20:48 yewscion left 20:51 Aedil left 20:54 LainExperiments left 20:56 LainExperiments joined 21:05 yewscion joined 21:19 yewscion left 21:37 yewscion joined 21:39 yewscion left 21:52 habere-et-disper joined
tbrowder hi, i've lost my handle on routine rand again. i need a list of N random ints from a set (0..^M) 21:59
librasteve is that pick or roll maybe? 22:00
tbrowder ooh, forgot about them, thnx, i'll take a look 22:01
librasteve m: (^100).pick(5).say 22:02
evalable6 (30 10 95 82 26)
Raku eval (11 38 35 39 1)
librasteve m: (^100).roll(5).say 22:03
Raku eval (46 44 10 32 38)
evalable6 (55 79 79 10 6)
librasteve iirc, pick removes the chosen item from the pool, whereas roll can still select from the whole of the pool 22:04
so roll will occasionally repeat an item
tbrowder ah, looks like roll is the way. thank you! 22:09
librasteve yw 22:10
tbrowder but ^^ looks cool, too
repeat is ok for my use case 22:11
22:21 yewscion joined 22:23 yewscion left 22:54 jpn joined 22:59 jpn left, habere-et-disper left 23:13 Altai-man left 23:28 derpydoo joined
lizmat for the record: .roll(*) will return values until exhausted 23:29
*pick , duh :-) 23:30
and .pick(**) will restart after being exhausted 23:31
m: say (1,2,3).pick(**).head(10)
camelia (3 2 1 1 2 3 1 3 2 2)
lizmat m: say (1,2,3).pick(*).head(10)
camelia (3 2 1)
23:41 derpydoo left 23:44 derpydoo joined 23:48 jpn joined 23:53 jpn left 23:54 floyza left 23:55 jpn joined