Welcome to the main channel on the development of MoarVM, a virtual machine for NQP and Rakudo (moarvm.org). This channel is being logged for historical purposes.
Set by lizmat on 24 May 2021.
02:30 nine left, nine joined
ShimmerFairy I'm not sure off-hand that the article has anything we could use in Raku's regexes, certainly not directly. It's worth remembering that our regexes secretly aren't regexes at all, but rather PEGs with a regex-y syntax. I spent years struggling to understand how Raku's grammar engine worked because I kept thinking it was comparable at all to those "how to regex engine" tutorials you can find online. 02:44
In particular, any regex optimization that expects you to use a DFA or NFA for the whole thing (like in that article) can't be applied to Raku grammars in general. Could maybe work for some of them, but the worthiness of the effort depends on how many grammars are purely declarative. 02:50
03:26 ShimmerFairy left, ShimmerFairy joined 04:18 [Coke] joined 08:47 librasteve_ joined 09:38 nine left, camelia left 10:07 nine joined 10:12 nine left
timo any optimization or alternative implementation or so that doesn't give you match groups is also not going to satisfy much of our user base 11:36
that blog looks interesting in general, I shall read through more of these posts 11:42
11:43 nine joined 12:35 camelia joined
ShimmerFairy I haven't read all their posts on RE#, but it's clear that it's the sort of regex engine project that's made by people obsessed with that no-good very evil backtracking (eek!), and not much else. I'm particularly amused by one post claiming that AND and NOT operations in regexes haven't existed before them, completely ignoring Raku having them since it adopted PEG grammars. 12:53
timo must be because we're regexp, not regex :D 13:04
16:38 lizmat left 16:50 lizmat joined 17:52 xiaomiao left 18:15 xiaomiao joined 20:59 librasteve_ left 22:14 Geth__ joined, evalable6__ joined, releasable6__ joined, Nicholas_ joined, woodi_ joined 22:17 RakuIRCLogger left, Geth left, evalable6 left, releasable6 left, Nicholas left, woodi left