frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Fast(er) regular expression engines in Ruby

https://serpapi.com/blog/faster-regular-expression-engines-in-ruby/
60•davidsojevic•9mo ago

Comments

yxhuvud•9mo ago
Eww, pretending to support utf8 matchers while not supporting them at all was not pretty to see.
gitroom•9mo ago
Honestly that part bugs me, fake support is worse than no support imo
kayodelycaon•9mo ago
> Another nuance was found in ruby, which cannot scan the haystack with invalid UTF-8 byte sequences.

This is extremely basic ruby: UTF-8 encoded strings must be valid UTF-8. This is not unique to ruby. If I recall correctly, python 3 does the same thing.

    2.7.1 :001 > haystack = "\xfc\xa1\xa1\xa1\xa1\xa1abc"
    2.7.1 :003 > haystack.force_encoding "ASCII-8BIT"
    => "\xFC\xA1\xA1\xA1\xA1\xA1abc" 
    2.7.1 :004 > haystack.scan(/.+/)
    => ["\xFC\xA1\xA1\xA1\xA1\xA1abc"]
This person is a senior engineer on their Team page. All they had to do was google "ArgumentError: invalid byte sequence in UTF-8". Or ask a coworker... the company has Ruby on Rails applications. headdesk
burntsushi•9mo ago
The nuance is specifically relevant here because neither of the other two regex engines benchmarked have this requirement. It's doubly relevant because that means running a regex search doesn't require a UTF-8 validation step, and is therefore likely beneficial from a perf perspective, dependening on the workload.
kayodelycaon•9mo ago
That’s a good point. I hadn’t considered it because I’ve hit the validation error long before getting to search. It is possible to avoid string operations with careful coding prior to the search.

Edit: After a little testing, the strings can be read from and written to files without triggering validation. Presumably this applies to sockets as well.

DmitryOlshansky•9mo ago
I wonder how std.regex of dlang would fare in such test. Sadly due to a tiny bit of D’s GC use it’s hard to provide as a library for other languages. If there is an interest I might take it through the tests.

Keep Android Open

https://f-droid.org/2026/02/20/twif.html
1372•LorenDB•13h ago•515 comments

Turn Dependabot Off

https://words.filippo.io/dependabot/
408•todsacerdoti•10h ago•107 comments

I found a Vulnerability. They found a Lawyer

https://dixken.de/blog/i-found-a-vulnerability-they-found-a-lawyer
514•toomuchtodo•12h ago•217 comments

Facebook is cooked

https://pilk.website/3/facebook-is-absolutely-cooked
984•npilk•13h ago•543 comments

Ggml.ai joins Hugging Face to ensure the long-term progress of Local AI

https://github.com/ggml-org/llama.cpp/discussions/19759
719•lairv•18h ago•178 comments

CERN rebuilt the original browser from 1989 (2019)

https://worldwideweb.cern.ch
154•tylerdane•8h ago•52 comments

Wikipedia deprecates Archive.today, starts removing archive links

https://arstechnica.com/tech-policy/2026/02/wikipedia-bans-archive-today-after-site-executed-ddos...
399•nobody9999•13h ago•236 comments

What Is OAuth?

https://leaflet.pub/p/did:plc:3vdrgzr2zybocs45yfhcr6ur/3mfd2oxx5v22b
97•cratermoon•6h ago•21 comments

Microsoft team creates 'revolutionary' data storage system that lasts millennia

https://www.nature.com/articles/d41586-026-00502-2
34•gnabgib•2d ago•21 comments

Meta Deployed AI and It Is Killing Our Agency

https://mojodojo.io/blog/meta-is-systematically-killing-our-agency/
112•zenincognito•3h ago•65 comments

Index, Count, Offset, Size

https://tigerbeetle.com/blog/2026-02-16-index-count-offset-size/
70•ingve•2d ago•19 comments

Every company building your AI assistant is now an ad company

https://juno-labs.com/blogs/every-company-building-your-ai-assistant-is-an-ad-company
163•ajuhasz•12h ago•83 comments

OpenScan

https://openscan.eu/pages/scan-gallery
147•joebig•11h ago•7 comments

Cord: Coordinating Trees of AI Agents

https://www.june.kim/cord
69•gfortaine•6h ago•37 comments

Show HN: Mines.fyi – all the mines in the US in a leaflet visualization

https://mines.fyi/
74•irasigman•10h ago•40 comments

Blue light filters don't work – controlling total luminance is a better bet

https://www.neuroai.science/p/blue-light-filters-dont-work
154•pminimax•13h ago•174 comments

Across the US, people are dismantling and destroying Flock surveillance cameras

https://www.bloodinthemachine.com/p/across-the-us-people-are-dismantling
295•latexr•9h ago•134 comments

The path to ubiquitous AI (17k tokens/sec)

https://taalas.com/the-path-to-ubiquitous-ai/
718•sidnarsipur•21h ago•406 comments

Trump's global tariffs struck down by US Supreme Court

https://www.bbc.com/news/live/c0l9r67drg7t
1366•blackguardx•16h ago•1113 comments

SwiftForth IDE for Windows, Linux, macOS

https://www.forth.com/swiftforth/
18•tosh•3d ago•5 comments

Lil' Fun Langs

https://taylor.town/scrapscript-000
112•surprisetalk•14h ago•16 comments

The true story behind the Toronto mystery tunnel

https://macleans.ca/society/elton-mcdonald-and-the-incredible-true-story-behind-the-toronto-myste...
61•mhb•3d ago•12 comments

Reproducible and traceable configuration for Conan C and C++ package manager

https://blog.conan.io/cpp/conan/configuration/reproducibility/lockfile/2026/02/17/Reproducible-Co...
15•ibobev•2d ago•3 comments

Making frontier cybersecurity capabilities available to defenders

https://www.anthropic.com/news/claude-code-security
113•surprisetalk•13h ago•51 comments

Show HN: A native macOS client for Hacker News, built with SwiftUI

https://github.com/IronsideXXVI/Hacker-News
205•IronsideXXVI•17h ago•142 comments

Untapped Way to Learn a Codebase: Build a Visualizer

https://jimmyhmiller.com/learn-codebase-visualizer
219•andreabergia•22h ago•37 comments

Building a model that visualizes strategic golf

https://golfcoursewiki.substack.com/p/i-spent-the-last-month-and-a-half
54•scoofy•4d ago•15 comments

How to Review an AUR Package

https://bertptrs.nl/2026/01/30/how-to-review-an-aur-package.html
68•exploraz•4d ago•11 comments

Colorado moves age checks from websites to operating systems

https://www.biometricupdate.com/202602/colorado-moves-age-checks-from-websites-to-operating-systems
22•iamnothere•1h ago•16 comments

I found a useful Git one liner buried in leaked CIA developer docs

https://spencer.wtf/2026/02/20/cleaning-up-merged-git-branches-a-one-liner-from-the-cias-leaked-d...
643•spencerldixon•17h ago•219 comments