Elektrine lite

โ† Feed

@sminez@hachyderm.io

Post #2280780

2025-11-01 16:45 UTC

@oac@fosstodon.org @jbert@hachyderm.io sounds fun! I have an idea for how to do stream based but it relies on using my own regex engine and won't work for the regex crate as that needs to match against a &str. (Which isn't great as my engine is suuuuuuuper slow ๐Ÿ˜…) I've tried to take a look at how @burntsushi@programming.dev handles matching against stdin in multiline mode with ripgrep but there is a LOT going on in that crate so I'm going to need to make a pot of coffee and spend an afternoon just reading through the source (and fantastic comments) to figure out how its done. If I can get the regex crate to tell me that it has a potential match when it reaches the end of its input and hold that state rather than failing the match, I could buffer and feed it lines as they come through. I'm pretty sure that's not supported in "regex" itself but it might be possible with one of the underlying crates? I've not checked that yet though ๐Ÿ‘€

Replies (0)

No replies.