frontpage.
newsnewestaskshowjobs

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•1y ago

Comments

yxhuvud•1y ago
Eww, pretending to support utf8 matchers while not supporting them at all was not pretty to see.
gitroom•1y ago
Honestly that part bugs me, fake support is worse than no support imo
kayodelycaon•1y 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•1y 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•1y 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•1y 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.

Command and Conquer Generals natively ported to macOS, iPhone, iPad using Fable

https://github.com/ammaarreshi/Generals-Mac-iOS-iPad/tree/main
446•asronline•9h ago•176 comments

If you're a button, you have one job

https://unsung.aresluna.org/if-youre-a-button-you-have-one-job/
68•nozzlegear•3h ago•17 comments

GPT-5.5 Codex reasoning-token clustering may be leading to degraded performance

https://github.com/openai/codex/issues/30364
206•maille•7h ago•70 comments

Google Books (or similar) all book scans – $200k bounty (2025)

https://software.annas-archive.gl/AnnaArchivist/annas-archive/-/work_items/234
396•Cider9986•12h ago•211 comments

Jellyfish can heal wounds in minutes. Scientists want their secrets

https://www.mbl.edu/news/jellyfish-can-heal-wounds-minutes-scientists-want-their-secrets
76•hhs•6h ago•16 comments

Artful Cats: Feline-Inspired Art and Artifacts

https://www.si.edu/spotlight/art-cats
12•jruohonen•3d ago•0 comments

Leaking YouTube creators' private videos

https://javoriuski.com/post/youtube
541•javxfps•12h ago•307 comments

Atomic Force Microscope high-speed video, stainless etching, bacteria, and more

https://www.youtube.com/watch?v=DyIQkqBXhS0
34•mhb•2d ago•2 comments

Shadcn/UI now defaults to Base UI instead of Radix

https://ui.shadcn.com/docs/changelog
5•dabinat•30m ago•0 comments

Binary Coverage the Wrong Way

https://redvice.org/2026/coverage-the-wrong-way/
3•matt_d•37m ago•0 comments

Better Models: Worse Tools

https://lucumr.pocoo.org/2026/7/4/better-models-worse-tools/
132•leemoore•9h ago•41 comments

Moby Dick Workout

https://www.hogbaysoftware.com/posts/moby-dick-workout/
4•helloplanets•46m ago•1 comments

My ASN Journey series (2024)

https://www.animmouse.com/p/my-asn-journey/
3•antonalekseev•47m ago•1 comments

Meta's Un-Stable Signature

https://hackerfactor.com/blog/index.php?/archives/1098-Metas-Un-Stable-Signature.html
51•ementally•3d ago•2 comments

Potential session/cache leakage between workspace instances or consumer accounts

https://github.com/anthropics/claude-code/issues/74066
282•chatmasta•15h ago•129 comments

Zig: All Package Management Functionality Moved from Compiler to Build System

https://ziglang.org/devlog/2026/#2026-06-30
165•tosh•12h ago•34 comments

Return of the Nigerian Prince Redux: Beware Book Club and Book Review Scams (2025)

https://writerbeware.blog/2025/09/19/return-of-the-nigerian-prince-redux-beware-book-club-and-boo...
31•Anon84•4h ago•6 comments

Record-breaking solo rower Kelsey Pfendler arrives in Hawaii

https://www.hawaiinewsnow.com/2026/07/04/record-breaking-solo-rower-kelsey-pfendler-arrives-hawaii/
19•MaysonL•3h ago•1 comments

"Beyond the limit": Satellites and mirrors in space pose threat to the night sky

https://www.eso.org/public/news/eso2607/
120•Breadmaker•11h ago•208 comments

Show your hands honor for the power they bring you

https://aresluna.org/show-your-hands-honor/
3•aua•1h ago•0 comments

Drone Autonomy Crash Course

https://www.cggonzalez.com/blog/index.html
26•cgg1•5h ago•2 comments

President pardons 9 for Clean Air violations for 'fixing their car'

https://www.msn.com/en-us/news/crime/trump-pardons-9-for-clean-air-violations-for-fixing-their-ca...
26•OutOfHere•1h ago•1 comments

The Log Is the Agent

https://arxiv.org/abs/2605.21997
7•iacguy•2h ago•0 comments

What ORMs have taught me: just learn SQL (2014)

https://wozniak.ca/blog/2014/08/03/1/index.html
147•ciconia•4d ago•185 comments

Backon – Python retry (zero deps, circuit breaker, async native)

https://github.com/Llucs/backon
5•Llucs•2h ago•0 comments

University of Oxford Is Older Than the Aztec Empire and Other Facts of History (2013)

https://www.smithsonianmag.com/smart-news/university-oxford-older-than-aztec-empire-other-facts-w...
40•thunderbong•2h ago•9 comments

The Preemptive Draw and Preemptive Grip in the Cash-in-Transit Sector

https://gutsgatesguards.wordpress.com/2026/06/23/the-preemptive-draw-and-preemptive-grip-in-the-c...
3•stmw•1h ago•0 comments

Efficacy and Safety of Psilocybin in Treatment-Resistant Major Depression

https://jamanetwork.com/journals/jamapsychiatry/fullarticle/2846478
20•cpncrunch•3h ago•5 comments

Drone Physics

https://iahmed.me/post/drone-physics/
99•wrxd•4d ago•29 comments

As downtown Seattle offices empty, city facing years of 'zombie' towers

https://www.seattletimes.com/business/local-business/as-downtown-seattle-offices-empty-city-facin...
95•petethomas•10h ago•127 comments