Lurker News
With the quarantine being placed in effect in a lot of cities across the world, we all likely have a little bit more time to focus on personal projects or learning something new from the comfort of our homes. What are you guys up to these days?

Comments (1,237) 697 threads

Show all comments

Showing thread 76 of 697

liquidify1 reply#
I'm making an algebraic filter that looks a lot like grep. Doing it in c++.

the python one lets you go through a log file and filter the lines out based on statements like...
You can currently use it to say "give me all lines that contain "substrA" and "substrB" but not "substrC" or "substrD"."
This current python implementation can only do AND for requirements, and OR for negative requirements.
But, I realized that I wanted to do a filter that could handle things like "give me all the lines that contain ... ("substrA" or "substrB") AND ("substrC" or "substrD")" and that was when I realized that it needs to be an algebraic system.

asfarley1 reply#
Sounds useful. I have repeatedly hit this limitation of regex filtering.
liquidify#
It would really be neat if you could use regex inside of the algebra. Right now it just does a string match.