You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
changed the title [-]remove oniguruma[/-][+]https://github.com/uutils/coreutils/issues/1145[/+]on Jun 11, 2026
changed the title [-]https://github.com/uutils/coreutils/issues/1145[/-][+]Replace Oniguruma[/+]on Jun 11, 2026
It adds a GNU BRE/ERE syntax adapter, uses regex-automata for regular patterns, and falls back to fancy-regex for backreferences and unsupported assertions. Leftmost-longest selection is a separate anchored pass after finding the leftmost start. Oniguruma remains the default and supplies -P when both features are enabled; the Rust-only configuration builds for WASIp1 and explicitly rejects -P.
There are still substantial compatibility gaps. In an adversarial 1,159-probe comparison with GNU grep 3.12, 87 previously different cases agree and 31 previously agreeing cases differ; these are correlated probes, not a compatibility percentage. The remaining differences include Unicode character-class policies and explicit errors guarding known stock fancy-regex byte-handling bugs. The fallback also exhausts its backtracking budget on (a|aa)+\1 with only 28 a bytes. Those restrictions make this an experimental feature rather than a proposed default switch.
The feature matrix passes all 15 jobs, covering the applicable tests and Clippy on Linux/macOS/Windows in all three configurations, all-target checks on Rust 1.88, and a Rust-only WASIp1 build.
The CLI benchmarks also show a tradeoff: several scan workloads improve, while fresh-process startup/compilation of a bounded Unicode word expression is substantially slower (about 68 ms versus 0.83 ms for Oniguruma in the final Linux run). Error cases and differing outputs are excluded from speedup ratios. GNU grep is used only as a black-box reference; no GNU implementation source was used.
Would maintaining an experimental feature along these lines be useful here, or would you prefer the engine/input and compatibility gaps to be resolved before considering a grep PR? I'm looking for agreement on the direction before proposing the integration upstream.
Apologies, an LLM posted the comment above before I had approved posting it or decided this work was ready to propose upstream. I’m still evaluating the approach and its tradeoffs. If you don't mind looking at LLM output feel free to look above, but I plan to finish my own evaluation/implementation before submitting an actual proposal.
Activity
[-]remove oniguruma[/-][+]https://github.com/uutils/coreutils/issues/1145[/+][-]https://github.com/uutils/coreutils/issues/1145[/-][+]Replace Oniguruma[/+]lhecker commentedon Jun 11, 2026
...thank you, GitHub copy/paste feature. 😄 (Regarding the title change.)
oech3 commentedon Jun 28, 2026
wasm32 is unrelated (already on playground)... RedoxOS is still related.
sylvestre commentedon Jun 28, 2026
what would you replace it with?
oech3 commentedon Jun 28, 2026
https://github.com/fancy-regex/fancy-regex I failed to do at
expr.macovedj commentedon Oct 23, 2026
Would you be interested in an opt-in backend combining
regex-automataandfancy-regex? I have an experimental implementation here:It adds a GNU BRE/ERE syntax adapter, uses
regex-automatafor regular patterns, and falls back tofancy-regexfor backreferences and unsupported assertions. Leftmost-longest selection is a separate anchored pass after finding the leftmost start. Oniguruma remains the default and supplies-Pwhen both features are enabled; the Rust-only configuration builds for WASIp1 and explicitly rejects-P.There are still substantial compatibility gaps. In an adversarial 1,159-probe comparison with GNU grep 3.12, 87 previously different cases agree and 31 previously agreeing cases differ; these are correlated probes, not a compatibility percentage. The remaining differences include Unicode character-class policies and explicit errors guarding known stock
fancy-regexbyte-handling bugs. The fallback also exhausts its backtracking budget on(a|aa)+\1with only 28abytes. Those restrictions make this an experimental feature rather than a proposed default switch.The feature matrix passes all 15 jobs, covering the applicable tests and Clippy on Linux/macOS/Windows in all three configurations, all-target checks on Rust 1.88, and a Rust-only WASIp1 build.
The CLI benchmarks also show a tradeoff: several scan workloads improve, while fresh-process startup/compilation of a bounded Unicode word expression is substantially slower (about 68 ms versus 0.83 ms for Oniguruma in the final Linux run). Error cases and differing outputs are excluded from speedup ratios. GNU grep is used only as a black-box reference; no GNU implementation source was used.
Would maintaining an experimental feature along these lines be useful here, or would you prefer the engine/input and compatibility gaps to be resolved before considering a grep PR? I'm looking for agreement on the direction before proposing the integration upstream.
macovedj commentedon Oct 23, 2026
Apologies, an LLM posted the comment above before I had approved posting it or decided this work was ready to propose upstream. I’m still evaluating the approach and its tradeoffs. If you don't mind looking at LLM output feel free to look above, but I plan to finish my own evaluation/implementation before submitting an actual proposal.