🦋 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
Nemokosch legendary 00:26
Geth doc: 2colours++ created pull request #4193:
NFG link modifications
00:56 ispyhumanfly joined 01:01 cokebot9000 joined, freeside left 01:03 ispyhumanfly left 01:13 japhb left, freeside joined 01:18 Manifest0 left, freeside left
tonyo m: use NativeCall; 01:31
camelia ( no output )
01:34 japhb joined 01:42 melezhik joined
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]
01:47 freeside joined 01:48 spacekookie left 01:51 melezhik left 01:52 freeside left
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
doc/main: 62a84d94d8 | (Will Coleda)++ | .circleci/config.yml
Remove CI that tested build
02:07 freeside joined
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
02:19 cokebot9000 left 02:23 melezhik joined
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]
02:26 melezhik left
el does raku use refcounting 02:49
Nemokosch github.com/MoarVM/MoarVM/blob/mast...c.markdown 02:52
rf Goodnight folks. 02:54
02:55 rf left
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
03:14 jpn joined 03:15 jgaz left 03:19 jpn left 03:22 gabiruh left 03:25 gabiruh joined 03:29 Nemokosch left
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
04:29 linkable6 left, evalable6 left 04:30 evalable6 joined 04:31 linkable6 joined 04:32 deoac joined
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
05:15 deoac left
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:28 ispyhumanfly joined 05:32 ispyhumanfly left 05:51 freeside left 06:00 reportable6 left 06:03 reportable6 joined 07:03 bloatable6 left, notable6 left, sourceable6 left, greppable6 left, committable6 left, benchable6 left, bisectable6 left, shareable6 left, unicodable6 left, squashable6 left, quotable6 left, coverable6 left, reportable6 left, releasable6 left, nativecallable6 left, statisfiable6 left, evalable6 left, tellable6 left, linkable6 left, coverable6 joined, evalable6 joined, sourceable6 joined 07:04 statisfiable6 joined, releasable6 joined, reportable6 joined, tellable6 joined, notable6 joined, bisectable6 joined, nativecallable6 joined, committable6 joined, linkable6 joined, benchable6 joined 07:05 greppable6 joined, shareable6 joined, unicodable6 joined, quotable6 joined 07:06 bloatable6 joined, squashable6 joined 07:18 freeside joined 07:38 razetime joined, sena_kun joined 07:43 Sgeo left 07:47 ircuser joined 07:53 jpn joined 07:58 freeside left 07:59 jpn left 08:02 razetime left 08:21 razetime joined 08:22 freeside joined 08:25 dustinm`_ left 08:31 jpn joined 08:48 dustinm`_ joined 08:51 human-blip left 08:58 Manifest0 joined 09:02 freeside left 09:08 dakkar joined 09:37 ab5tract joined 09:55 freeside joined 10:01 freeside left 10:05 lichtkind joined 10:07 jpn left 10:10 freeside joined 10:12 jpn joined 10:15 freeside left 10:19 jpn left 10:30 sena_kun left
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
10:36 spacekookie joined
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
10:53 jpn joined
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
10:59 freeside joined
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
11:04 freeside left
lizmat it would require a radically different approach, as Raku does not have, and will not have, any source filters 11:04
11:05 razetime left
Nemokosch I'm tempted to see Tcl in Raku but probably isn't gonna manifest, just a fun idea 11:12
11:12 freeside joined
talking about diehard C stuff 11:12
11:13 woei left 11:17 freeside left 11:31 razetime joined 12:00 reportable6 left, reportable6 joined 12:03 freeside joined 12:08 freeside left
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
12:46 freeside joined
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
12:51 freeside left
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
12:58 ispyhumanfly joined
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
13:03 ispyhumanfly left
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
13:14 razetime left
guifa is afk 13:15
13:49 deoac joined
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
13:59 ispyhumanfly joined 14:06 jpn left 14:07 jpn joined 14:19 freeside joined 14:23 freeside left, Maylay joined
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
14:34 ab5tract left 14:37 epony left 14:41 freeside joined 14:44 epony joined 14:45 Nemokosch joined
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
15:23 pingu joined 15:36 Sgeo joined
tonyo the harder part of the transpilers is getting the actions right 15:41
16:03 deoac left 16:07 razetime joined 16:57 n1to joined 17:11 razetime left 17:13 n1to left 17:22 codesections joined 17:29 Nemokosch left, Nemokosch joined 17:31 saint- joined, clarjon1 joined 17:37 dakkar left 17:42 melezhik joined
melezhik . 17:42
.tell [Coke] - github.com/Raku/doc/issues/4195
tellable6 melezhik, I'll pass your message to [Coke]
17:43 melezhik left
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
18:00 reportable6 left 18:01 reportable6 joined
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>
18:18 jpn left 18:19 jpn joined 18:36 sena_kun joined 18:47 freeside left 18:48 ab5tract joined 18:49 derpydoo joined 18:58 freeside joined 19:17 deoac joined 20:17 bisectable6 left, bloatable6 left, notable6 left, nativecallable6 left, committable6 left, statisfiable6 left, tellable6 left, sourceable6 left, shareable6 left, unicodable6 left, releasable6 left, benchable6 left, greppable6 left, reportable6 left, evalable6 left, squashable6 left, coverable6 left, linkable6 left 20:18 squashable6 joined, sourceable6 joined, greppable6 joined, reportable6 joined, bisectable6 joined, evalable6 joined, releasable6 joined, bloatable6 joined 20:19 benchable6 joined, unicodable6 joined, coverable6 joined, notable6 joined, shareable6 joined, linkable6 joined, tellable6 joined, committable6 joined 20:20 nativecallable6 joined, statisfiable6 joined
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
21:10 jpn left 21:11 freeside left 21:23 freeside joined 21:28 freeside left 21:36 jpn joined 21:45 freeside joined 21:54 bigdata joined 22:04 jpn left 22:05 jpn joined
Nemokosch from the readme of rakuast: 22:09
> gets the resolution if their is one, or throws an exception if not
22:09 sena_kun left
so it's not only me who types by phonetic approximation 😌 22:10
"their is one", probably meant "there is one"
22:20 jpn left 22:21 deoac left 22:32 clarjon1 left, clarjon1 joined 22:49 jpn joined 22:54 freeside left 23:03 derpydoo left 23:05 freeside joined
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
23:40 BarrOff joined 23:42 jpn left
pingu well, it depends 23:45
I was just learning regex