🦋 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:00 reportable6 left 00:03 reportable6 joined 00:40 rf joined 00:54 guifa_ joined 01:06 guifa_ left
antononcube weekly: rakuforprediction.wordpress.com/20...rchatbook/ 02:05
02:06 linkable6 left, evalable6 left, evalable6 joined, linkable6 joined 03:06 reportable6 left, bisectable6 left, coverable6 left, nativecallable6 left, notable6 left, statisfiable6 left, tellable6 left, sourceable6 left, greppable6 left, releasable6 left, benchable6 left, squashable6 left, unicodable6 left, quotable6 left, committable6 left, bloatable6 left, shareable6 left, evalable6 left, linkable6 left 03:07 squashable6 joined, coverable6 joined, unicodable6 joined, quotable6 joined, linkable6 joined, tellable6 joined 03:08 bisectable6 joined, releasable6 joined, nativecallable6 joined, reportable6 joined, shareable6 joined 03:09 evalable6 joined, bloatable6 joined, sourceable6 joined, benchable6 joined, notable6 joined, committable6 joined, greppable6 joined, statisfiable6 joined 03:30 teatime joined 03:31 teatime left 04:11 ab5tract left 04:13 ab5tract joined 04:42 ProperNoun left, ProperNoun joined 04:52 guifa_ joined 05:01 guifa_ left 05:27 swaggboi left 05:28 siavash joined 05:34 ab5tract left 05:37 ab5tract joined 05:41 ab5tract left 05:43 ab5tract joined 06:00 reportable6 left 06:03 reportable6 joined 06:24 jpn joined 06:44 jpn left 06:52 jpn joined 07:33 jpn left 07:50 sena_kun joined 07:51 dakkar joined 07:54 jpn joined 08:21 tea3po left, tea3po joined 08:28 jpn left 08:38 Xliff joined
Xliff \o 08:38
Which module can I used to detect for URLs in strings?
09:02 wafflus joined 09:13 sena_kun left
antononcube @Xliff Does this help: rosettacode.org/wiki/URL_parser#Raku 09:13
@Xliff Here is the "URI" repository: github.com/raku-community-modules/URI 09:17
09:18 jpn joined
Xliff antoncube: Thanks, but no. Those are only useful for when you already have the URL. 09:50
09:51 siavash left
antononcube @Xliff I see. This makes me think I have to include a “URL recognizer” in “Text::SubParsers”. 10:14
10:19 sena_kun joined 10:22 sena_kun left
Xliff antoncube: That would be nice. 10:22
antoncube: Take a look at the this repository -
my token url {
[ $<scheme>=<nodeParts>+ '://']?
[ $<user>=<nodeParts>+ ':' $<pass>=<nodeParts>+ '@' ]?
$<host> = [ (<nodeParts>+) ** { 2 .. Inf } %% '.' ]
[':' $<port> = \d+ ]?
[
'/' 10:23
(<nodeParts>+)+ %% '/' '/'?
['?' <kvPairs>+ %% '&' ]?
]?
}
Ack!
Let's try this again -- replit.com/@Xliff/PigishlyURLDetection
antoncube: That's detecting most if not all of the URLs I can think about.
10:24 Xliff left
antononcube 👍 10:34
10:54 Sgeo left 11:39 jpn left 12:00 reportable6 left, reportable6 joined 12:03 jpn joined 12:08 jpn left 12:19 teatwo joined 12:22 tea3po left
lizmat And yet another Rakudo Weekly hits the Net: rakudoweekly.blog/2023/09/04/2023-...september/ 12:23
12:44 NemokoschKiwi joined 12:46 NemokoschKiwi left 12:50 samebchase joined 12:54 jpn joined 12:59 jpn left 13:00 guifa_ joined 13:10 jpn joined 13:28 jpn left 13:35 manu_ is now known as eseyman
nemokosch chromatic still counting the years, eh 13:35
lizmat: "meanwhile, Python was there" links to news.ycombinator.com/user?id=dale_glass 13:38
13:40 jpn joined 13:53 guifa_ left 13:54 wafflus left
tbrowder__ hi, given a list @arr, how do i show all items except the last 3? i know i can do this clunky way: my $n = @arr.elems, ..., but how do i do that in this fancy form: .say for @arr['some magic rakuism'] 14:11
antononcube @tbrowder @arr.head(*-3) ? 14:20
nemokosch I think @arr.head(* - 3) would be one way
damn
tbrowder__ [] instead of ()? 14:21
nemokosch head is a method
antononcube Does this work? @arr[^(*-2)]
tbrowder__ not yet 14:23
nemokosch seems to me it actually does 14:24
antononcube It should be @arr[^(*-3)] -- and, yes, I just tried it. 14:25
tbrowder__ yes, it does. thanks
nemokosch fair fair
off-by-one errors 14:26
tbrowder__ i also got this to work: say $_ for @arr[0..*-4]
antononcube 🙂 yeah, but precision in Raku counts...
nemokosch I'm kinda surprised that works but it does
0 .. * would be a range but 0 .. * - 1 is a WhateverCode 14:27
antononcube @tbrowder Yeah, I just used the range shorthand because CommaIDE nags about it.
tbrowder__ i like yours. anyone have fewer chars between the []?
antononcube @tbrowder Well, I a thinking now that I should parse and interpret in my DSLs statements like these : 1) "show all elements but last 5", 2) "give me all list elements except the first 2". 14:30
tbrowder__ cool 14:31
i'm trying to show debian bash experts a better way ;-D
nemokosch it would be hard to show them a worse way than using shell 14:32
tbrowder__ agree!! 14:33
thanks, folks, using anyononcube's way is best cause the 3 is the key point 14:34
antononcube Thanks @tbrowder! And --- in your face @nemokosch! Take that! You were too slow!! 14:35
nemokosch www.youtube.com/watch?v=mwnT2AGMMMc 14:36
antononcube Thanks! (Also thank you for mentioning chromatic earlier, I followed the links from Liz's post.) 14:37
nemokosch chromatic was a core engineer (if not THE core engineer) of Parrot 14:38
frankly it's a "just asking for a coffee" situation
antononcube I am not sure what do you mean. 🙂 I am asking for coffee all the time : www.buymeacoffee.com/antonov70 14:41
nemokosch same 14:43
I mean that you can chill while these people are (rightfully) criticizing each other's work, lol
antononcube I see -- yeah. 🙂 14:46
14:48 tea3po joined
@nemokosch The official video seems to have all elements we discussed today: LLMs, arrays. coffee. www.youtube.com/watch?v=H6BEkPzstJQ 14:50
nemokosch I didn't link it because there are weird censorships in the vocals
it's creepypasta material 14:51
14:51 teatwo left
antononcube Agh, I see, I noticed that, but I thought is the download speed. 14:51
nemokosch it would be a good idea to get that album, though
damn it, there was a disc market just yesterday 14:52
didn't know
antononcube "Legion of 💥" 14:56
tbrowder__ antononcube: a sensitive question on yr recent speech in russia, any sense of Russian scientists' opinions on invasion?
back later.. 14:57
antononcube @tbrowder I have a short answer and long answer. 🙂 15:03
15:45 jpn left
tbrowder__ yr choice 15:46
15:55 jpn joined 16:00 jpn left
tbrowder__ but long would be best 16:09
16:39 dakkar left
antononcube @tbrowder Ok, long it is. 🙂 16:43
lizmat nemokosch thanks fixed 16:49
nemokosch 🍬 17:08
17:39 evalable6 left, linkable6 left 17:40 evalable6 joined 17:41 linkable6 joined, teatwo joined 17:43 teatime joined
not sure who said it but I've heard that Rust's famous type safety is a bit overclaimed because it actually disallow doing things that people do want to do 17:44
17:44 tea3po left
and therefore a considerable amount of unsafe code is written anyway 17:44
how this is relevant? I don't know, probably it isn't, just something that bugs me 17:45
17:45 teatwo left 18:00 reportable6 left, reportable6 joined
guifa I mean, it's a bit like RAku in that good practices are made easy, and questionable ones are possible but made to be intentionallly difficult to encourage people to avoid doing them 18:14
I mean take 18:15
www.reddit.com/r/rakulang/comments...wo_arrays/
18:22 jpn joined 18:29 Sgeo joined 19:15 swaggboi joined 19:19 jpn left 19:21 teatwo joined 19:24 teatime left
nemokosch Did you actually understand what the question was? Because I surely didn't 19:38
20:11 mark22k1 joined, silug2 joined, slu_ joined 20:12 slu left, renormalist left, silug left, eseyman left, merp left, m_athias left, silug2 is now known as silug, m_athias_ joined, slu_ is now known as slu, dustinm` left, mark22k left, buffet left, mark22k1 is now known as mark22k 20:13 patrickb left, atweedie left, clarkema left, atweedie joined, renormalist joined, atweedie left, atweedie joined, clarkema joined, dustinm` joined, merp joined 20:14 eseyman joined, patrickb joined 20:16 buffet joined 20:17 m_athias_ is now known as m_athias 20:19 teatwo left, teatwo joined 20:22 teatwo left, teatwo joined 20:25 teatwo left, teatwo joined
vendethiel That’s true of everything 20:47
That’s a dumb claim
20:47 ab5tract left
Except if you go the route of Coq or Agda or Idris maybe 20:48
nemokosch "that's true of everything" is not a useful observation when it's about a supposed qualitative difference 21:15
if all we can observe about Rust is the same we can observe about C or C++, what is the fuss about 21:16
21:42 jpn joined 21:44 silug9 joined 21:45 silug left, silug9 is now known as silug 21:46 dustinm` left 21:47 jpn left, leah2 left, _________ left, sivoais left 21:49 _________ joined, sivoais joined 21:50 dustinm` joined 21:58 wayland76 joined 22:02 leah2 joined 22:08 wayland76 left 22:15 wayland76 joined
antononcube @liz There is no "Anton's corner" in the latest rakudo-weekly. 😢 22:17
I would like to point out that "Jupyter::Chatbook" is expected to make a big splash. 😎 So, it should be more widely promoted! rakuforprediction.wordpress.com/20...rchatbook/ 22:19
23:10 polettix left, polettix joined 23:12 hythm left 23:19 wayland76 left 23:58 Util left, Util joined