Latest Tech News

Stay updated with the latest in technology, AI, cybersecurity, and more

Filtered by: regex Clear Filter

Adding lookbehinds to rust-lang/regex

In a previous blogpost, Erik wrote about how he implemented the linear time matching algorithm from [RegElk+PLDI24] in the popular regex engine RE2. In this one, we're looking at how to do the same thing for the official regex engine from the Rust language. Namely, we add support for unbounded captureless lookbehinds. First, let's discover the newly supported feature and its limitations. Lookbehinds allow regexes to make assertions about things preceding some part of the regex pattern without c

More than 1 in 5 Show HN posts are now AI-related, get > half the votes/comments

More than 1 in 5 Show HN posts are now AI-related, but get less than half the votes or comments. _ The idea for this article didn't exist in my brain before this morning. But there I was, scrolling the New page and even more tired of all the AI-related Show HN posts than usual. I was confident that their numbers were multiplying and wanted proof. Exactly how much more AI crap is on my lawn compared to last year? Full disclosure: I'm not a data guy. Everything below was off the top of my head. N

The fastest way to detect a vowel in a string

Austin Z. Henley Associate Teaching Professor Carnegie Mellon University [email protected] @austinzhenley github/AZHenley The fastest way to detect a vowel in a string 6/13/2025 I was nerdsniped recently: What is the best way to detect if a string has a vowel in it? This is trivial, right? But as I started getting into it, I realized there is much more to this. I challenged myself to come up with as many ways to detect a vowel as possible. I even asked a few friends to give it a go. Whi