🦋 Welcome to the MAIN() IRC channel of the Raku Programming Language (raku.org). *** CONFERENCE TIME conf.raku.org *** This channel is logged for the purpose of keeping a history about its development | evalbot usage: 'm: say 3;' or /msg camelia m: ... | Log inspection is still being worked out
Set by lizmat on 6 August 2021.
Od1n /join #gcu 13:11
oops sorry
Altreus GNU cinematic universe? 14:01
melezhik Can I insert perl5 regexp into Raku regexps? 14:06
Altreus instinctively I would say no, but I am not an expert here 14:07
you can probably use Inline::Perl5 to run a Perl5 regex independently, though
melezhik I rings a bell with me, I saw something in Raku regexp docs
`m:Perl5` 14:09
looks like way to go
Altreus oo that's nice 14:10
shows what I know
sena_kun keep in mind that is a "semi-broken feature lying around" as per github.com/rakudo/rakudo/issues/2624 14:14
so please avoid it at all costs. :)
melezhik thanks sena_kun 14:15
Altreus :)
so actually using Inline::Perl5 to run Perl5 code with a Perl5 regex in might be best? 14:16
sena_kun Altreus, I guess. The ticket conversation describes there are some issues, but I don't see any harm in them. 14:29
And if there are others, it's better to report and get those fixed than use something like :P5 modifier, really.
melezhik m: '"hello123" ~~ /:perl5 hello\d/ ' 14:54
camelia WARNINGS for <tmp>:
Useless use of constant string "\"hello123\" ~~ /:perl5 hello\\d/ " in sink context (line 1)
melezhik m: 'say "hello123" ~~ /:perl5 hello\d/ '
camelia WARNINGS for <tmp>:
Useless use of constant string "say \"hello123\" ~~ /:perl5 hello\\d/ " in sink context (line 1)
melezhik m: 'say "hello123" ~~ m:Perl5/hello\d/ ' 14:55
camelia WARNINGS for <tmp>:
Useless use of constant string "say \"hello123\" ~~ m:Perl5/hello\\d/ " in sink context (line 1)
melezhik m: say "hello123" ~~ m:Perl5/hello\d/
camelia 「hello1」
melezhik m: say "hello123" ~~ /:perl5 hello\d/
camelia 5===SORRY!5=== Error while compiling <tmp>
Unrecognized regex modifier :perl5
at <tmp>:1
------> 3say "hello123" ~~ /:7⏏5perl5 hello\d/
expecting any of:
term
melezhik looks like I can't insert `m:Perl5` modifier inside regexp, don't I?
m: say "hello123" ~~ /:Perl5 hello\d/ 14:56
camelia 5===SORRY!5=== Error while compiling <tmp>
Unrecognized regex modifier :Perl5
at <tmp>:1
------> 3say "hello123" ~~ /:7⏏5Perl5 hello\d/
expecting any of:
term
melezhik m: say "hello123" ~~ /:i hello\d/ 14:57
camelia 「hello1」
melezhik m: say "hello123" ~~ /:p5 hello\d/
camelia 5===SORRY!5=== Error while compiling <tmp>
Unrecognized regex modifier :p5
at <tmp>:1
------> 3say "hello123" ~~ /:7⏏5p5 hello\d/
expecting any of:
term
melezhik m: say "hello123" ~~ /:perl5 hello\d/
camelia 5===SORRY!5=== Error while compiling <tmp>
Unrecognized regex modifier :perl5
at <tmp>:1
------> 3say "hello123" ~~ /:7⏏5perl5 hello\d/
expecting any of:
term
sena_kun m: say 'hello123' ~~ m:P5/hello\d/; 14:58
camelia 「hello1」
melezhik m: say "hello123" ~~ /:P5 hello\d/ 14:59
camelia 5===SORRY!5=== Error while compiling <tmp>
Unrecognized regex modifier :P5
at <tmp>:1
------> 3say "hello123" ~~ /:7⏏5P5 hello\d/
expecting any of:
term
melezhik m: say "hello123" ~~ /(:P5 hello\d)/ 15:00
camelia 5===SORRY!5=== Error while compiling <tmp>
Unrecognized regex modifier :P5
at <tmp>:1
------> 3say "hello123" ~~ /(:7⏏5P5 hello\d)/
expecting any of:
term
melezhik so sadly I can't use `:Perl5` modifier inside regexp ... 15:03
locally
because this probably only works for adverbs 15:04
if there is any method btw to convert perl5 regexp into Raku ones?
sena_kun melezhik, not really, I think for a long time it is lazily speculated one can write a compiler similar to github.com/edumentab/p6-ecma262regex 15:05
melezhik ok, NP 15:06
Oscar Hello. Thinking of writing a blowfish module as I think its desired. Any thoughts? 16:06
lizmat Oscar: what would it do *exactly* ? 16:12
Oscar It is in a desired modules list I found, it would simply allow the blowfish cipher algorithm to be used to encrypt/decrypt data github.com/Raku/raku-most-wanted/b...modules.md 16:14
lizmat sounds like a plan then :-) 16:19
sena_kun Oscar, my thought is that it's a nice idea, good luck. 16:22
lizmat and yet another Rakudo Weekly News hits the Net: rakudoweekly.blog/2021/08/09/2021-...tcon-done/ 19:22
moritz lizmat++ 19:53
jdv i wonder if rmah on hn is the rmah i know. 20:01
yup 20:10