🦋 Welcome to Raku! raku.org/ | evalbot usage: 'p6: say 3;' or /msg camelia p6: ... | irclog: colabti.org/irclogger/irclogger_log/raku
Set by ChanServ on 14 October 2019.
Kaiepi releasable6, status 00:04
releasable6 Kaiepi, Next release will happen when it's ready. 3 blockers. 166 out of 356 commits logged (⚠ 3 warnings)
Kaiepi, Details: gist.github.com/9ecaa05af8d30f49f1...7f6175d507
Kaiepi there are a couple features in the design docs i find interesting 00:05
one's WHENCE and the other's the COMPOSE phaser
the COMPOSE phaser in particular would remove a lot of boilerplate from Trait::Traced
since how it works with types is it mixes in a role to the type's HOW that adds behaviour to composition 00:06
lizmat clickbaits rakudoweekly.blog/2020/04/27/2020-...g-cleanup/ 09:46
El_Che great service, lizmat, thx 09:54
moritz indeed, lizmat++
El_Che Everytime I read it I think how it doesn't take long to consume it, but it takes a lot of work to produce it 09:55
AlexDaniel lizmat++ 09:59
lichtkind lizmat++ 10:02
is there a way to disable inheritance in raku?
lizmat lichtkind: you mean, that it doesn't inherit from Any / Mu ? 10:03
lichtkind like removing keyword is and does
lizmat m: class A { }; dd A.^mro
camelia (A, Any, Mu)
lizmat if you remove "is" and "does", then it would still inherit from Any / Mu 10:04
if you want to disable "is" / "does", you could create local versions of sub trait_mod:<is> and sub trait_mod:<does> 10:05
lichtkind lizmat: to me is important that classes you write are not able to use is or does
lichtkind lizmat: yes thanks sounds like a solution, I just ponder if its possible to port KBOS to raku 10:06
jnthn lichtkind: Write a MOP module that 1) subclasses Metamodel::ClassHOW and overrides `add_parent` and `add_role` to throw an exception, 2) use the EXPORTHOW mechanism to have it replace the metaclass for the `class` keyword. 10:07
jnthn The trouble with replacing is/does traits is that they do a lot more than just inheritance :) 10:07
lizmat true 10:08
lichtkind allright so im stuck with same solution like in perl where you cant inherit kbos classes becasue they life in their own world 10:09
lizmat why wouldn't that work in Raku ?
lichtkind they have their own compilation phase where there resolved to data structures so they never appear as classes
that would work in raku 10:10
just that i cant bring down th thumb of god and forbid inherticance
lizmat well, in Perl it's just about messing with a class's @ISA, no? 10:11
samebchase- Hi, What Graph library recommendations do you have for Raku? 10:19
samebchase- I was not able to find any Raku Modules, other than one module which computes the Strongly Connected Components of a graph 10:20
samebchase- Is there any general purpose graph library available? 10:20
lizmat modules.raku.org/search/?q=Graph didn't give you anything you could use ? 10:21
samebchase- didn't find anything 😞 10:22
lizmat does Python have libraries you could use? then maybe Inline::Python might be something for you ? 10:27
samebchase- lizmat: there are a lot of Perl libraries on CPAN that seem promising. Is Inline::Perl or Inline::Python expected to work better? 10:35
lizmat Inline::Perl5 should do the trick for you then, I'd say 10:36
it's the best developed interface to another language that Raku has
samebchase- awesome.
Hopefully someone implements a pure-Raku Graph library someday 😏 10:37
lizmat indeed :-)
Geth ecosystem/JJ-patch-8: 5d8dc4ace4 | (Juan Julián Merelo Guervós)++ (committed using GitHub Web editor) | META.list
Add Services::PortMapping to the ecosystem
11:05
ecosystem: JJ++ created pull request #488:
Add Services::PortMapping to the ecosystem
11:09
ecosystem: 5d8dc4ace4 | (Juan Julián Merelo Guervós)++ (committed using GitHub Web editor) | META.list
Add Services::PortMapping to the ecosystem
11:10
ecosystem: d150545cc8 | (Elizabeth Mattijsen)++ (committed using GitHub Web editor) | META.list
Merge pull request #488 from Raku/JJ-patch-8

Add Services::PortMapping to the ecosystem
sena_kun .seen kjk 11:27
tellable6 sena_kun, I saw kjk 2020-04-19T18:26:29Z in #raku: <kjk> of course, thanks!
lichtkind_ looks grph module is a desirable 12:05
is it on the list of wanted modules?
sena_kun u: ┬╗ 12:21
unicodable6 sena_kun, U+252C BOX DRAWINGS LIGHT DOWN AND HORIZONTAL [So] (┬)
sena_kun, U+2557 BOX DRAWINGS DOUBLE DOWN AND LEFT [So] (╗)
thundergnat Depending on how complicated your plotting needs are, SVG::Plot may be sufficient. See examples: www.rosettacode.org/wiki/Plot_coord...pairs#Raku 13:51
and www.rosettacode.org/wiki/Yellowston...uence#Raku
[Coke] is Blin named after блин? 14:19
timotimo after tanty blinri? 14:24
tasty*
i believe so
vrurg [Coke]: it is.
timotimo: one is 'blin', many are 'bliny' :) 14:25
timotimo OK
[Coke] huh 14:34
ckc Good Day, all. I am successfully parsing to ASTs- how can I get postorder numbers for all nodes? (e.g., "1+2" as 3 nodes: 1 2 +, numbered: node0 node1 node2). If QAST doesn't provide this, is there an obvious way to derive it from the QAST dd ? I intend to use the postorder numbers as register numbers in compiling to assembly, and this is the 15:09
one missing step.
tellable6 2020-04-18T23:49:28Z #raku <guifa2> ckc: what kind of module are you making with Lingua?
ckc Not sure what "kind of module" means, but I've based my work on Shitov's excellent work. I am successfully parsing arithmetical and boolean expressions (as well as declarations, assignments, if, while; scalars only, I removed hashes and arrays), and accurately evaluating them. What I need is assembly output (Torczon's RISC ILOC). If I can 15:14
convert each node into a register/variable {r0, r1, r2, ..} then I think I've got what I need. I can derive preorder numbers from dd, but postorder is what I need.
samebchase- Given a SetHash like so `my $s = <one two three>.SetHash;` I am struggling to understand why `$s<'one'>` returns False. 15:15
If I have `my $str = 'one'`, how do I use the $str variable to find if that string exists in the SetHash or not 15:16
`$s<$str>` returns False. Or put another way, what can I do to `$str` so that I can use it to index the SetHash using the `<>` notation 15:17
Or am I running into the behaviour or `===`, where two strings 'one' and 'one' are not the same object 15:19
jnthn The `<>` notation is for putting a literal string as the index
$s{'one'} and $s{$str} are for when it's code as the index 15:20
samebchase- okay
samebchase- will use {} 15:21
samebchase- Thanks a lot for the help jnthn 15:35
samebchase- I have a grammar and during parsing, I want to discard the rest of the file, after the first part of the file has succeeded. What's the best way of achieving this. 15:58
Say I am only interested in parsing the list of imports at the top of the file, and not the rest of the code
What's the best way to do this?
I have verified using Grammar::Tracer that the part I am interested in matches correctly 15:59
Okay, there seems to be a method called Grammar.subparse
jnthn Yes, subparse is the way to go 16:13
guifa2 Is there a good way to match a <pblock> in an arbitrary regex/grammar? 16:17
moritz no 16:19
guifa2 :-( 16:20
time to get hacky 16:21
melezhik Quite an interesting discussion on Sparrowdo/Raku possible usage happening right now reddit/devops - www.reddit.com/r/devops/comments/g...dium=web2x 16:24
guifa2 Yup, definitely hacky but it works. temporarily using {{ }} but yay, dynamically quantiied variables now 17:24
tbrowder hi, travis is not finding module JSON::Hjson 22:58
but modules.raku.org shows it and i’m using it locally. ideas? 23:00