🦋 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.
Nemokosch legendary 00:26
Geth doc: 2colours++ created pull request #4193:
NFG link modifications
00:38
tonyo m: use NativeCall; 01:31
camelia ( no output )
melezhik .tell [Coke] I've seen some CI related issues in raku/doc repo , I know you guys probably use GH actions now for the most of things , but feel free to ping me if maybe we can try out SparrowCI fir some tasks ... it supports many Linux distros 01:45
tellable6 melezhik, I'll pass your message to [Coke]
cokebot9000 All the CI there should probably be disabled until we're done with raku/doc-website work. (I bet most of it is obsolete at this point) 01:56
Can you open a ticket in raku/doc and assign dontlaugh for now?
(and me, I guess?) 01:57
oh, he's gone?
.tell melezhik - thanks
tellable6 cokebot9000, I'll pass your message to melezhik
Geth doc/main: fc05e537aa | (Will Coleda)++ | 43 files
Remove build/site code, assets, docs

Superseded by raku/doc-website
01:59
doc/main: 62a84d94d8 | (Will Coleda)++ | .circleci/config.yml
Remove CI that tested build
cokebot9000 Using raku version 2022.07, it takes 815.57s to run -c --doc on all the pod files in the raku/doc repository 02:08
(and that's with .race)
Nemokosch did I read that right...
that's almost an hour and a half 02:09
cokebot9000 m: 815.57 / 60
camelia WARNINGS for <tmp>:
Useless use of "/" in expression "815.57 / 60" in sink context (line 1)
cokebot9000 m: say 815.57 / 60
camelia 13.592833
cokebot9000 no, it's 13 minutes.
Nemokosch xddd
I'm gonna blame it for the late hour
cokebot9000 fair
13m is still slow, and we're trying to run this on each commit
Nemokosch 60 seconds feel like an hour after 3am 02:10
is this a raku built-in option or is there a dedicated script that does this? 02:11
cokebot9000 raku -c --doc validates the pod 02:12
Nemokosch 👍 02:18
melezhik . 02:23
tellable6 2023-02-06T03:01:28Z #raku <tonyo> melezhik add a key `"bundlers": ["Fez::Util::Pax"]` in your ~/.fez-config.json
2023-02-08T01:57:28Z #raku <cokebot9000> melezhik - thanks
melezhik .tell [Coke] , do you mean me , when say "create a ticket" ? 02:25
tellable6 melezhik, I'll pass your message to [Coke]
el does raku use refcounting 02:49
Nemokosch github.com/MoarVM/MoarVM/blob/mast...c.markdown 02:52
rf Goodnight folks. 02:54
Nemokosch oof, just when I saw his message... 02:55
tellable6 2023-01-31T17:29:18Z #raku <nine> Nemokosch: we don't have people who want to manage and we don't have people who would want to be managed. So that line of discussion can only be theoretical until both facts change.
2023-01-31T17:35:58Z #raku <nine> Nemokosch: well volunteered!
2023-01-31T17:51:20Z #raku <ab5tract> Nemokosch: You are referring to the coercers?
2023-01-31T21:27:04Z #raku <ab5tract> Nemokosch: I wish MVM_SPESH_DISABLE noted its existence somewhere in the run output
2023-02-03T14:20:46Z #raku-dev <ab5tract> Nemokosch: I don't totally understand what you mean
2023-02-03T20:04:45Z #raku <jdv> Nemokosch: i think your "push to map" may be the biggest release blocker but i havent confirmed it yet
2023-02-04T20:47:59Z #raku-dev <lizmat> Nemokosch: are you done with Data::MessagePack for now? don't want to interfere
2023-02-05T01:54:29Z #raku <guifa> Nemokosch: that re my answer for pingu or for the XML module?
2023-02-05T02:04:35Z #raku <guifa> Nemokosch: the XML module was clearly designed waaaaaaaaaaay back (it was very likely one of the very first modules ever written for Raku)
2023-02-05T12:46:16Z #raku-dev <ab5tract> Nemokosch: Ah yes, I see your concern
2023-02-05T13:01:15Z #raku <guifa> Nemokosch: I don't have write access for it, but I'll start a fork and up it there
2023-02-05T22:54:24Z #raku <ab5tract> Nemokosch: "they unwrap even if they are in Scalar containers - is this desirable?"
2023-02-07T10:45:07Z #raku <El_Che> Nemokosch: bundling is good
2023-02-07T10:46:07Z #raku <El_Che> Nemokosch: bundling == you are responsable, you need to publish an update
Nemokosch absolute apocalypse 02:56
tonyo guifa: referring to the one the html parser relies upon? 03:38
guifa tonyo: I think so. It's just 'XML' (talk about namespace squatting lol) 04:10
el why does anyone uses xml these days for anything other than markup 04:25
there are far better options for saving data 04:26
deoac p6steve: macOS Ventura 13.1.  I installed rakudo with the Rakudo Star Bundle.  I used your recipe from #raku-beginner 3 February. 04:45
tellable6 deoac, I'll pass your message to p6steve
Geth doc/main: 02998c27c3 | (Márton Polgár)++ (committed using GitHub Web editor) | doc/Language/glossary.pod6
NFG link modifications (#4193)

I added another 6guts blog link that I found particularly useful about the topic - probably more useful than its prequel. Also "deseriousalized" the chat discussion: it's clearly cute and funny if you already kind of grasp the topic but perhaps a newcomer shouldn't take it too seriously, that wouldn't seem good PR. :v
05:21
Nemokosch Perl6::Parser will turn unneeded once the RakuAST frontend works, right? 10:34
lizmat most likely, yes 10:35
Nemokosch yeah seems like Tidy stuff will become easier and less magician tier 10:36
lizmat there's already a basic tidy now: .AST.DEPARSE any code :-) 10:37
m: say 'my $foo = 42'.AST.DEPARSE 10:38
camelia my $foo = 42
lizmat you can actually already create a subclass of RakuAST::Deparse, and pass that to DEPARSE as the argument 10:39
m: use experimental :rakuast; class A is RakuAST::Deparse { }; say 'my $foo = 42'.AST.DEPARSE(A)
camelia my $foo = 42
Nemokosch 🤩 10:43
what is PDL? 10:44
el perl data langauge
Nemokosch is this relevant to Raku in any way? just saw a mention of it on github 10:48
lizmat you can probably use it with Inline::Perl5 10:49
el are there any other perl ffis than inline perl5 10:51
lizmat NativeCall ? 10:53
Nemokosch 🧠
Is Inline::Perl5 not built on NativeCall itself?
lizmat indeed
lizmat that's why I wondered about the question 10:54
Nemokosch btw does NativeCall stuff run outside of MoarVM?
el no i don’t mean C FFI 10:56
lizmat raku.land/?q=Inline%3A%3A 10:57
el inline python real
Nemokosch Inline::Python would need an upgrade - if you feel ambitious, there is a good project for you 😛 11:00
el anyhow have anyone tried to recreate perligata in raku 11:02
lizmat it would require a radically different approach, as Raku does not have, and will not have, any source filters 11:04
Nemokosch I'm tempted to see Tcl in Raku but probably isn't gonna manifest, just a fun idea 11:12
talking about diehard C stuff 11:12
guifa Unfortunately I've found a few nodes don't like to deparse very well (chained operators are one), but that's just a question of adding support for them methinks 12:44
lizmat / Nemokosch ^^
lizmat guifa: provide code samples, and I'm on it 12:45
guifa :D I'll try to get you some this evening when I'm home from work 12:46
guifa also needs to get back working on RAST::PrettyPrint
Also I'd love to upgrade this module github.com/FROGGS/p6-Inline-C/ to work more akin to github.com/alabamenhu/BasicTest 12:48
guifa Only problem is I'd need to be able to detect the final } that completes the code block and isn't part of the C code which means having to parse C code 12:52
lizmat isn't a C grammar pretty... easy ? 13:00
Nemokosch with or without the preprocessor? 😂 13:01
lizmat without I would assume ? 13:02
guifa Should be fairly simple. I looked at the official grammar from ISO and the only problem is that some of its definitions use left expansion 13:05
like a number is defined as
token digit { <[0..9]> }; token number { <number> <digit> } 13:06
so I can't quite C&P everything but it shouldn't be too hard
el token number { <digit>+ } 13:08
or use a LALR parser ig
guifa Right, my point is I will actually have to do a small degree of thinking to write the parser in Raku rather than just copy it all down 13:11
some left expansions are easier to deal with than others
lizmat I wonder whether there aren't any Marpa grammars for C around, and I recall Jeff Goff having worked on a Marpa -> Raku translator ?
Nemokosch with ANTLR surely, that module I've come across recently 13:14
guifa possibly. I just did a quick glance and found the ISO standard and its grammar, I'm sure there are other implementable ones out there if I looked harder haha
guifa is afk 13:15
Anton Antonov I used Jeff Goff's ANLTR-to-Raku package(s) a few times. With small tweaking the results became immediately operational. 13:54
Has anyone worked with connecting Raku to Elasticsearch? If yes, please, share the experience... 🙂 To be clear, I am interested in using Elasiticsearch in Raku. 14:27
moritz I haven't, but elastic just uses a http(s) API, so connecting to it via Cro or so shouldn't be too hard 14:52
Anton Antonov @moritz I was thinking that too. But I was wondering is there some Raku package similar to this Perl5 one: github.com/elastic/elasticsearch-perl . 15:16
tonyo the harder part of the transpilers is getting the actions right 15:41
melezhik . 17:42
.tell [Coke] - github.com/Raku/doc/issues/4195
tellable6 melezhik, I'll pass your message to [Coke]
pingu are regexes mutable if assigned to a scalar 17:53
m: my $regex = /.*a.*/; my $val = 'bar'; if ($val ~~ $regex) { print("regex matches\n"); $regex = /ca.*/; } 17:58
camelia regex matches
pingu ok cool 18:02
moritz you can assign a new value to the variable
but the regex object itself? dunno if that's mutable
m: my $regex = /.*a.*/; $regex.name = 'my-re' 18:03
camelia Cannot modify an immutable Str ()
in block <unit> at <tmp> line 1
tonyo m: my $r = /.*a.*/; $r.name := 're' 18:16
camelia ===SORRY!=== Error while compiling <tmp>
Cannot use bind operator with this left-hand side
at <tmp>:1
------> my $r = /.*a.*/; $r.name := 're'⏏<EOL>
tonyo melezhik: that unattended flag onlyh works in that specific function - working off the dist branch which is introducing dist management stuff and i'll integrate that there if you want to do some pre-testing on that branch 20:25
tellable6 tonyo, I'll pass your message to melezhik
tonyo s/yh/y
Nemokosch from the readme of rakuast: 22:09
> gets the resolution if their is one, or throws an exception if not
so it's not only me who types by phonetic approximation 😌 22:10
"their is one", probably meant "there is one"
Geth ¦ rakudoc: coke self-assigned Deprecated Code github.com/Raku/rakudoc/issues/20 23:09
pingu how do I make my regex match just the first new line so that my for loop can store each line as a new array element 23:20
/[\n\r]+/ isnt working 23:21
it would be nice if it kept blank lines in because people like to use blank lines to separate groups of lines that are going the related 23:22
Nemokosch which of them do you actually want? match just the first new line, or store each line as a new array element? 23:32
pingu store each line in an array 23:37
Nemokosch and I'm taking you don't like .lines? 23:38
pingu well, it depends 23:45
I was just learning regex