Re:Rulex – A new, portable, regular expression language
by RcouF1uZ4gsC on Friday June 10, 2022 @03:53PM
(#31698683)
> It used to many years ago via the regex_macros crate, but I abandoned it mostly because of not having enough resources to dedicate to it and its somewhat niche usage.
As an aside, my impression is that Rust developers are using macros less now than they were even a couple of years ago. It seemed a few years ago, a lot of people coming to Rust were impressed by the power of macros (especially procedural) and used them in a lot of libraries. It seems now, people are realizing the costs of macros to tooling and understandability, and are using them more judiciously.
Re:Rulex – A new, portable, regular expression language
by burntsushi on Friday June 10, 2022 @05:14PM
(#31699434)
I don't think I've detected any such shift personally. (I've been using Rust daily since before 1.0 was released.)
The reflex library is interesting, but more like a C++ template hack. Its codegen is impressive, but it's missing (last time I checked) a lot of the classical optimizations that a regex engine typically has. Like a literal prefilter scan.