🦋 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.
Xliff weekly, gist.github.com/Xliff/b950e7e0080f...9497814808 02:43
tellable6 2022-10-16T14:00:48Z #raku <guifa_> Xliff: as I'm reworking this module, I just realized I had forgotten the whole reason I made the timezone reaction loop
Xliff weekly: gist.github.com/Xliff/b950e7e0080f...9497814808
notable6 Xliff, Noted! (weekly)
guifa_ Xliff: did you see the module I dumped? 03:07
raku.land/zef:guifa/DateTime::React 03:10
I avoided the week rollover issue for now, but I've got some ideas there
Xliff guifa_, week rollover issue? 03:12
guifa_, why a sub for each shift? Why not one codepath for <minute hour day week month year>? 03:15
guifa_ Xliff: yours goes ahead and begins the loop for all of the events. I wanted to make it so loops would only be initiated upon request 03:36
yours was elegant though 03:37
Xliff PR submitted. 03:45
Nemokosch Hello hello 09:09
is .first not meant to inspect the signature of the passed argument the way .map does?
nevermind, it makes no logical sense 09:11
lizmat are you confusing .map with .sort ? 09:35
Nemokosch nope 09:36
I wanted to use * < * + * as the callable, not sure if I could do that in a meaningful way 09:40
perhaps if .first could return multiple values
lizmat clickbaits rakudoweekly.blog/2022/10/17/2022-...p-no-fear/ 09:50
El_Che lizmat: I need to test your tool, it sounds amazing 10:38
lizmat I hope it to be awesome, yes
El_Che (there should be a way to bundle it more easily)
lizmat well, I guess you could add it to your packages... 10:38
El_Che yes, that's another can of worms 10:39
I was thinking more of a single file/tupperware container with rakudo and the app
lizmat but still, please test it yourself please... with 138 command line options, there are bound to be some combinations not doing the right thing
El_Che most of my peers moved to rg, while I have been keeping using ack 10:40
lizmat as was i
nine Camelia makes an appearance at 8:20 :) youtu.be/pEfrdAtAmqk?t=500 11:06
lizmat yeah, but no mention of Raku :-( 11:10
or did I miss something?
weekly: youtu.be/pEfrdAtAmqk?t=500
notable6 lizmat, Noted! (weekly)
nine Nah, Raku is not mentioned. Still it's nice to see us in a list of modern languages :)
lizmat indeed :-) 11:13
cameo :-)
Nemokosch yes, no Raku mentioned 11:14
also watched it a couple of days ago
also no Perl mentioned, btw
tbrowder hi, is there any way to get num days in a year other than this: 11:47
m: say Date.new(2022, 12,31).day-of-year 11:48
camelia 365
lizmat I'd say, barring a special Date method, is pretty much descriptive 11:51
tbrowder ah, you rose to the bait! how about a new Date method?
tbrowder should be fairly easy. i was going to file issue and take it on if no objections 11:54
but i don't want to get in a long convo with nay sayers 11:55
yr support would swing a lot of weight 11:56
lizmat github.com/rakudo/rakudo/pull/5084 # tbrowder 12:23
tbrowder cool!! thnx 13:02
like Superman: "faster than a speeding bullet, more powerful than a locomotive!" 13:03
lizmat almost right :-) 13:08
elcaro if you'd like to see Raku as an option on 'week.golf', consider signing up & voting for it: week.golf/newLanguage.php 13:31
elcaro voting form will not display properly, but they are doing some kind of elimination bracket 13:31
currently Raku up against BQN, 5 votes to 7 13:32
El_Che elcaro: I don't understand nothing of that page 13:35
NaN againt Nan
N
snipboard.io/yadqf2.jpg 13:36
Nemokosch for me, it's just ? against ? 13:49
anyway, I don't trust this site 13:52
elcaro Hmm, seems I only finished half a thought above... where I said *"voting will not display properly"* I got to say *"unless you are logged in"* 14:17
Xliff In the case of sub ( :$optional is rw ) { ... } -- how can I tell if $optional contains a valid container? 14:18
Or is there a way to make the logic moot?
sub ( :$optional is rw = $) # for example? 14:19
Ah. There is no way to make an optional parameter rw.
Fahrvergnügen, 14:20
elcaro Several users on the array languages discord (APL Farm) use the site (as it features APL and J as languages). I've not seen any complaints about anything dodgy. I signed up to vote for Raku, so far so good, but I'd rather solve some of these challenges in Raku, which is not available, and getting Raku more exposure is generally a good thing 14:24
tonyo m: Date.new(2020,12,31).day-of-year.say 16:13
camelia 366
El_Che m: Date.new(2020,2,11).day-of-year.say 16:34
camelia 42
El_Che \o/
tbrowder \o/ 17:36
guifa_ tbrowder; that's an interesting question re days in the year 22:16
in my mind it doesn't work for Date, because it's really an attribute of the year, rather than of the date 22:17
although I guess we do have is-leap-year 22:18
but in retrospect I'd probably poo poo that lol 22:19
Date.new(:2022year).is-leap-year ?? 366 !! 365
tonyo the weirdness it gets into is when week-of-year can encompass the first few days of the year, so it might be that week 53 actually ends jan 3 (as it did in 2020) so should 2021-12-31 actually be the 365-3 day of the year or something else 22:24
tbrowder guifa_: i see what you mean, theoretically, but then raku life could get real complicated in a hurry going down that route. i absolutely love the rake time and date types--so much easier than using Perl's time stud
*stuff 22:25
tbrowder week-of-year can be interesting. see my Easter and other church year modules. 22:27
guifa_ week of year is like day of week, unfortunately. We use an ISO definition (Which is sensible), but it is certainly slightly deceptive to people as different locales handle that differently 22:33
guifa_ Nemokosch: you just got an official cro update ;-) 23:29
tellable6 guifa_, I'll pass your message to Nemokosch