From 6fbccaf522ca41dce0aec0da579081ccc7bf3199 Mon Sep 17 00:00:00 2001 From: Manuel Saelices Date: Thu, 2 Apr 2026 11:28:10 +0200 Subject: [PATCH 1/3] Bump mojo-regex to 0.9.0 --- recipes/mojo-regex/recipe.yaml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/recipes/mojo-regex/recipe.yaml b/recipes/mojo-regex/recipe.yaml index a68dcf5b..9d5a5b77 100644 --- a/recipes/mojo-regex/recipe.yaml +++ b/recipes/mojo-regex/recipe.yaml @@ -1,12 +1,13 @@ context: - version: 0.7.0 + version: 0.9.0 mojo_version: "=0.26.2" about: description: "# Mojo Regex\nRegular Expressions Library for Mojo\n\n`mojo-regex` is a\ - \ regex library featuring a hybrid DFA/NFA engine architecture that automatically\ - \ optimizes pattern matching based on complexity.\n\nIt aims to provide a similar\ - \ interface as the [re](https://docs.python.org/3/library/re.html) stdlib package\ - \ while leveraging Mojo's performance capabilities." + \ regex library featuring a hybrid DFA/NFA/PikeVM/LazyDFA engine architecture\ + \ that automatically optimizes pattern matching based on complexity.\n\nIt aims\ + \ to provide a similar interface as the [re](https://docs.python.org/3/library/re.html)\ + \ stdlib package while leveraging Mojo's performance capabilities.\n\nBeats Python's\ + \ C-based `re` module on 96% of benchmarks." homepage: https://github.com/msaelices/mojo-regex license: MIT license_file: LICENSE @@ -29,4 +30,4 @@ requirements: - ${{ pin_compatible('mojo-compiler') }} source: - git: https://github.com/msaelices/mojo-regex.git - rev: 54e49ae347aeea42afe4a5c54f14cabfc4f69805 \ No newline at end of file + rev: 990fb0eef657fdcc7e113cdadb909b222d3acbb1 \ No newline at end of file From ee1fee633bc95245813f42b665942c83fd41e862 Mon Sep 17 00:00:00 2001 From: Manuel Saelices Date: Thu, 2 Apr 2026 21:27:31 +0200 Subject: [PATCH 2/3] Update mojo-regex revision to include lazy DFA inlining (PR #92) Updated rev to include @always_inline on lazy DFA hot path and unchecked state access. Win rate vs Python: 97% (was 96%). --- recipes/mojo-regex/recipe.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/mojo-regex/recipe.yaml b/recipes/mojo-regex/recipe.yaml index 9d5a5b77..0f348043 100644 --- a/recipes/mojo-regex/recipe.yaml +++ b/recipes/mojo-regex/recipe.yaml @@ -7,7 +7,7 @@ about: \ that automatically optimizes pattern matching based on complexity.\n\nIt aims\ \ to provide a similar interface as the [re](https://docs.python.org/3/library/re.html)\ \ stdlib package while leveraging Mojo's performance capabilities.\n\nBeats Python's\ - \ C-based `re` module on 96% of benchmarks." + \ C-based `re` module on 97% of benchmarks." homepage: https://github.com/msaelices/mojo-regex license: MIT license_file: LICENSE @@ -30,4 +30,4 @@ requirements: - ${{ pin_compatible('mojo-compiler') }} source: - git: https://github.com/msaelices/mojo-regex.git - rev: 990fb0eef657fdcc7e113cdadb909b222d3acbb1 \ No newline at end of file + rev: 4bae0ba73497d027ce441091ad1b9c5867888239 \ No newline at end of file From 8f66ec3abd5c08108df571d85af9e39b2e9b3c5e Mon Sep 17 00:00:00 2001 From: Manuel Saelices Date: Thu, 2 Apr 2026 22:10:44 +0200 Subject: [PATCH 3/3] Update mojo-regex revision to include SIMD range optimization (PR #93) Updated rev to include SIMD range comparison for contiguous byte ranges. Win rate vs Python: 100% (61/0). Win rate vs Rust: 57% (32/24). --- recipes/mojo-regex/recipe.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/mojo-regex/recipe.yaml b/recipes/mojo-regex/recipe.yaml index 0f348043..c8bd83ba 100644 --- a/recipes/mojo-regex/recipe.yaml +++ b/recipes/mojo-regex/recipe.yaml @@ -7,7 +7,7 @@ about: \ that automatically optimizes pattern matching based on complexity.\n\nIt aims\ \ to provide a similar interface as the [re](https://docs.python.org/3/library/re.html)\ \ stdlib package while leveraging Mojo's performance capabilities.\n\nBeats Python's\ - \ C-based `re` module on 97% of benchmarks." + \ C-based `re` module on 100% of benchmarks." homepage: https://github.com/msaelices/mojo-regex license: MIT license_file: LICENSE @@ -30,4 +30,4 @@ requirements: - ${{ pin_compatible('mojo-compiler') }} source: - git: https://github.com/msaelices/mojo-regex.git - rev: 4bae0ba73497d027ce441091ad1b9c5867888239 \ No newline at end of file + rev: 762c4569fefe09a0a01f6900d5a351a6a4e76de5 \ No newline at end of file