2
I Use This!
Activity Not Available

Ratings and Reviews

Community Rating
5.0
 

Average Rating:   5.0/5.0
Number of Ratings:   1
Number of Reviews:   1

My Review of IrRegular expressions

You have not rated or reviewed this project.
Click below to rate/review.
My Rating:
0
 
 New Review

Most Helpful Reviews

Peter Bex says:
A great modern implementation of...  
5.0
 
written about 14 years ago

Scheme regular expressions were introduced by Olin Shivers more than 10 years ago as a "100% solution" for doing regular expressions in a clean non-string-based way.

By storing regexes as structured trees instead of opaque strings, they become much more composable and hackable. This means it is much easier to write *readable* expressions, which means regexes are able to scale to arbitrary sizes without becoming unmaintainable.

IrRegex is a great reimplementation of this age-old idea. Instead of being written for one particular Scheme, this is a truly portable implementation which (hopefully) means that other Schemes will now finally adopt this brilliant and eminently practical idea. At least my favorite Scheme, Chicken, has already embraced this library fully, to replace the bug- and vulnerability-laden PCRE library which was a pain to maintain.

IrRegex even improves upon the original SRE notation by getting rid of the awkward macro (making them truly composable), adding back references and adding "named submatches" in a clean way that would even surprise Olin :)

The one disadvantage one could name would be that it's slow. Well, yes, but at least improving that's on the TODO-list. Good code is written by not worrying about performance prematurely.

Did this review help you? |

Most Recent Reviews

Peter Bex says:
A great modern implementation of...  
5.0
 
written about 14 years ago

Scheme regular expressions were introduced by Olin Shivers more than 10 years ago as a "100% solution" for doing regular expressions in a clean non-string-based way.

By storing regexes as structured trees instead of opaque strings, they become much more composable and hackable. This means it is much easier to write *readable* expressions, which means regexes are able to scale to arbitrary sizes without becoming unmaintainable.

IrRegex is a great reimplementation of this age-old idea. Instead of being written for one particular Scheme, this is a truly portable implementation which (hopefully) means that other Schemes will now finally adopt this brilliant and eminently practical idea. At least my favorite Scheme, Chicken, has already embraced this library fully, to replace the bug- and vulnerability-laden PCRE library which was a pain to maintain.

IrRegex even improves upon the original SRE notation by getting rid of the awkward macro (making them truly composable), adding back references and adding "named submatches" in a clean way that would even surprise Olin :)

The one disadvantage one could name would be that it's slow. Well, yes, but at least improving that's on the TODO-list. Good code is written by not worrying about performance prematurely.

Did this review help you? |