🦋 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:01 reportable6 joined 00:04 squashable6 left 00:07 squashable6 joined 01:07 linkable6 left, evalable6 left, linkable6 joined 01:09 evalable6 joined 01:16 razetime joined
tbrowder__ i look at most raku blogs and want to give like or thumbs up but stopped by various login stupidities (like having to enter a password i can’t see or captcha pictures 5mm square 01:41
well, larger but dull 01:42
hard to see anyway
02:16 evalable6 left, linkable6 left 02:17 linkable6 joined 02:18 evalable6 joined 02:41 coleman joined 03:31 hythm left 03:37 xs joined 03:56 razetime left 04:19 xs left 05:19 greppable6 left, unicodable6 left, committable6 left, tellable6 left, sourceable6 left, bisectable6 left, coverable6 left, statisfiable6 left, evalable6 left, notable6 left, releasable6 left, quotable6 left, benchable6 left, bloatable6 left, squashable6 left, shareable6 left, nativecallable6 left, reportable6 left, linkable6 left 05:20 linkable6 joined, evalable6 joined, committable6 joined, reportable6 joined, squashable6 joined, releasable6 joined 05:21 bloatable6 joined, shareable6 joined, nativecallable6 joined, unicodable6 joined, quotable6 joined 05:22 tellable6 joined, bisectable6 joined, notable6 joined, sourceable6 joined, greppable6 joined, benchable6 joined, statisfiable6 joined, coverable6 joined 05:41 siavash joined 06:00 reportable6 left, jpn joined 06:03 reportable6 joined 07:03 squashable6 left, linkable6 left, bisectable6 left, bloatable6 left, evalable6 left, nativecallable6 left, greppable6 left, statisfiable6 left, notable6 left, quotable6 left, benchable6 left, coverable6 left, unicodable6 left, sourceable6 left, committable6 left, shareable6 left, tellable6 left, releasable6 left, reportable6 left, nativecallable6 joined, notable6 joined 07:04 bloatable6 joined, reportable6 joined, benchable6 joined, evalable6 joined, bisectable6 joined 07:05 sourceable6 joined, coverable6 joined, greppable6 joined, tellable6 joined, squashable6 joined, committable6 joined, quotable6 joined, unicodable6 joined, linkable6 joined, statisfiable6 joined, releasable6 joined 07:06 shareable6 joined 07:08 jpn left 07:11 jpn joined 07:39 jpn left 07:46 jpn joined 08:15 tea3po joined, teatwo left 08:16 tea3po left, tea3po joined 08:17 tea3po left 08:38 sena_kun joined 08:48 razetime joined 08:56 jpn left 09:13 teatime joined 09:54 Sgeo left
xinming What is the best way to pass an customized array string to a raku script? I don't like the eval approach, But I feel it probably the only way to do so. 10:03
10:03 jpn joined
nemokosch What does "customized array string" mean? 10:06
10:08 jpn left
antononcube @xinming For the CLI scripts of “Text::Plot” I do ad hoc parsing of the “customized arrays”. I.e. strings specifying lists of points. 10:14
10:15 NemokoschKiwi joined 10:23 NemokoschKiwi left 10:24 vrurg_ joined 10:26 vrurg left 10:36 siavash left 11:36 linkable6 left, evalable6 left 11:39 linkable6 joined, evalable6 joined 11:51 jpn joined 11:52 jpn joined
xinming nemokosch, flat array can be handled with simple string split with delimiter, But multi dimentional array is hard to do in this case 11:55
antononcube thanks
11:57 jpn left 12:00 reportable6 left 12:03 reportable6 joined 12:48 jpn joined 12:53 jpn left
nemokosch yeah well, you could parse it recursively 12:54
depends on how formal your input is
if it has some simple formalism, then maybe it's still better to parse it than to EVAL it; if it really is some arbitrary Raku content then obviously you can't beat EVAL 12:55
antononcube @xinming I thinking this might be a good use case for "Text::SubParsers" -- I face similar problems when dealing LLM outputs. (I strategically do what @nemokosch outlined above.) 13:19
13:33 razetime left 13:43 jpn joined 13:46 sena_kun left 13:47 sena_kun joined 13:51 jpn left 13:59 Matthew|m left 14:04 Altai-man joined 14:05 Geth left 14:07 sena_kun left
librasteve I would like to get my blog added to planet.raku.org ... seems that Roman Baumer is listed as the contact. Does he ever stop by here? By what name? 14:11
lizmat librasteve what's the RSS feed URL ?
librasteve planet.raku.org/atom.xml 14:12
lizmat no, I mean of your blog :-) 14:13
librasteve rakujourney.wordpress.com
lizmat gimme a o 14:14
ok, updated... should be live in an hour or so 14:22
nemokosch pretty sure Roman Baumer stopped being the contact but who is it then 14:31
lizmat I put myself in for now 14:32
14:33 NemokoschKiwi joined 14:36 Tirifto_ left 14:39 Tirifto joined 14:40 Tirifto left 14:41 Tirifto joined 14:54 RakuIRCLogger left, Geth joined, RakuIRCLogger joined 14:58 RakuIRCLogger left, RakuIRCLogger joined
gfldex :q1 14:59
lizmat librasteve you're in! 15:30
15:34 jpn joined 15:39 jpn left
xinming nemokosch, I know we can have EVAl, But that's the last option to choose. 16:12
antononcube, thanks.
nemokosch not sure why you said that though 16:13
xinming nemokosch, EVAL can run all things in the script.
nemokosch I know but why are you saying this? Why is this your takeaway? 16:14
xinming the script will probably run with another user. 16:15
nemokosch okay, I guess I'll never know why you said this 😄 16:27
antononcube @lizmat Please include rakuforprediction.wordpress.com !!! 🙂 16:28
lizmat antononcube will do 16:29
Geth planet.raku.org: 2ac1bacf72 | (Elizabeth Mattijsen)++ | perlanetrc
Add Anton Antonov
lizmat should be live in about an houre
antononcube @lizmat Thanks! 16:33
16:39 linkable6 left, evalable6 left 16:40 evalable6 joined 16:41 linkable6 joined
nemokosch say Foo explodes at compile time but say Foo::Bar only explodes at runtime 16:45
these are such demotivating nonsensical things
even say Foo::{'Bar'} or say Foo::<Bar> will blow up at compile time 16:46
but the one that looks the least like an operation, makes it to runtime
17:09 jpn joined 17:12 rf joined 17:14 jpn left
Geth planet.raku.org: dc4a563cea | (Elizabeth Mattijsen)++ | perlanetrc
Arhg, messed up Anton Antonov's feed URL
lizmat antononcube sorry, will take another hour :-(
17:40 NemokoschKiwi left 18:00 reportable6 left 18:02 reportable6 joined 19:02 evalable6 left 19:03 evalable6 joined
rf What library is recommended for SHA1? 19:12
ugexe m: sub sha1($str) { (CompUnit::Repository::Distribution but role :: { method Str { $str } }).id }; say sha1("abc") 19:17
camelia A9993E364706816ABA3E25717850C26C9CD0D89D
ugexe just use nqp::sha1 by abusing other actual public apis!
xinming Is there a ubuntu repo for newest rakudo compiler? 19:18
I'm using gentoo, so I compile each time with new release, But another machine I manage which is ubuntu. 19:19
rf ugexe nice!
xinming So, looking for a lazyman's way
rf Rakubrew
xinming the built-in raku is 2019.12
rf Is your best friend
xinming Thanks, will check that, I never know that 19:20
19:21 jpn joined
rf ugexe do you know how that performs vs something like Digest::SHA1 native or Digest? 19:21
I've seen that NQP is unearthly fast sometimes 19:22
ugexe i was only joking
rf Lol. I know just pondering 19:23
ugexe nqp::sha1 is probably fairly optimized
rf I'm adding web-sockets to Humming-Bird and you have to do a dance of SHA1 -> Base64 + Magic string to enable comms, that's why this came up 19:24
19:29 justache is now known as reddit-boat, reddit-boat is now known as justache 19:31 ab5tract joined 19:39 jpn left 19:42 jpn joined 19:47 jpn left 19:56 rf left 20:06 ab5tract left
librasteve brilliant - thanks! 20:07
++ 20:09
20:14 teatwo joined 20:17 teatime left 20:21 Sgeo joined 20:24 teatwo left, teatwo joined 20:26 rf joined 20:47 ab5tract joined 21:17 ab5tract left
El_Che xinming: github.com/nxadm/rakudo-pkg 21:19
lizmat for all the vim users: groups.google.com/g/vim_announce/c/tWahca9zkt4 21:25
21:27 rf left
japhb I'm blanking -- is there syntactic relief for passing on an optional named argument *only if it was defined*? In other words, something to clean up the inner call of `method a(:$optional = True) { dd $optional }; method b(:$some, :$optional, :$args) { self.a(|(:$optional if $optional.defined)) }` 21:29
21:31 wafflus joined
lizmat :optional($_) with $optional 21:31
japhb Hmmm 21:32
Will that avoid having to wrap in |() as well?
lizmat no, don't think so 21:33
japhb Gah, that's annoying.
(Although thanks for the idea, lizmat++)
I guess I'm wanting something like a `:?$optional` syntax 21:34
lizmat the other idea, if there are multiple cases like this, is to set up a hash, and than flatten the hash into the arguments
japhb lizmat: Yeah, I do that in a couple places. It doesn't end up being hugely shorter, but sometimes it's at least a bit more clear
22:03 wafflus left 22:08 jpn joined 22:24 hellwolf left, hellwolf joined 22:29 jpn left 22:32 ab5tract joined 22:43 ab5tract left 22:51 Altai-man left 23:51 evalable6 left, unicodable6 left, greppable6 left, nativecallable6 left, committable6 left, tellable6 left, quotable6 left, releasable6 left, shareable6 left, coverable6 left, squashable6 left, benchable6 left, notable6 left, bisectable6 left, sourceable6 left, statisfiable6 left, linkable6 left, bloatable6 left, reportable6 left, quotable6 joined, benchable6 joined, committable6 joined, coverable6 joined 23:52 tellable6 joined, statisfiable6 joined, linkable6 joined, greppable6 joined, reportable6 joined, squashable6 joined, nativecallable6 joined, notable6 joined, unicodable6 joined 23:53 evalable6 joined, shareable6 joined, bloatable6 joined 23:54 releasable6 joined, sourceable6 joined, bisectable6 joined