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•10mo ago

Comments

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

Statement from Dario Amodei on our discussions with the Department of War

https://www.anthropic.com/news/statement-department-of-war
1551•qwertox•8h ago•806 comments

The Hunt for Dark Breakfast

https://moultano.wordpress.com/2026/02/22/the-hunt-for-dark-breakfast/
136•moultano•3h ago•49 comments

What Claude Code chooses

https://amplifying.ai/research/claude-code-picks
359•tin7in•12h ago•144 comments

80386 Protection

https://nand2mario.github.io/posts/2026/80386_protection/
25•nand2mario•2d ago•2 comments

Layoffs at Block

https://twitter.com/jack/status/2027129697092731343
640•mlex•9h ago•669 comments

AirSnitch: Demystifying and breaking client isolation in Wi-Fi networks [pdf]

https://www.ndss-symposium.org/wp-content/uploads/2026-f1282-paper.pdf
342•DamnInteresting•15h ago•162 comments

Parakeet.cpp – Parakeet ASR inference in pure C++ with Metal GPU acceleration

https://github.com/Frikallo/parakeet.cpp
26•noahkay13•3h ago•2 comments

Julia: Performance Tips

https://docs.julialang.org/en/v1/manual/performance-tips/
9•tosh•3d ago•1 comments

What does " 2>&1 " mean?

https://stackoverflow.com/questions/818255/what-does-21-mean
223•alexmolas•11h ago•127 comments

Dear Time Lords: Freeze Computers in 1993

https://graydon2.dreamwidth.org/322461.html
49•zdw•2h ago•14 comments

I rendered 1,418 confusables over 230 fonts. Most aren't confusable to the eye

https://paultendo.github.io/posts/confusable-vision-visual-similarity/
30•paultendo•1d ago•11 comments

An Introduction to the Codex Seraphinianus, the Strangest Book Ever Published

https://www.openculture.com/2026/02/an-introduction-to-the-codex-seraphinianus.html
58•vinhnx•3d ago•13 comments

Launch HN: Cardboard (YC W26) – Agentic video editor

https://www.usecardboard.com/
107•sxmawl•12h ago•55 comments

Move tests to closed source repo

https://github.com/tldraw/tldraw/issues/8082
31•nilsbunger•1d ago•22 comments

Smartphone market forecast to decline this year due to memory shortage

https://www.idc.com/resource-center/press-releases/wwsmartphoneforecast4q25/
214•littlexsparkee•8h ago•208 comments

OsmAnd's Faster Offline Navigation (2025)

https://osmand.net/blog/fast-routing/
144•todsacerdoti•12h ago•46 comments

LiteLLM (YC W23): Founding Reliability Engineer – $200K-$270K and 0.5-1.0% equity

https://www.ycombinator.com/companies/litellm/jobs/unlCynJ-founding-reliability-performance-engineer
1•ij23•5h ago

Hydroph0bia – fixed SecureBoot bypass for UEFI firmware from Insyde H2O (2025)

https://coderush.me/hydroph0bia-part3/
51•transpute•8h ago•1 comments

I baked a pie every day for a year

https://www.theguardian.com/lifeandstyle/2026/feb/22/a-new-start-after-60-i-baked-a-pie-every-day...
258•NaOH•3d ago•169 comments

Palm OS User Interface Guidelines (2003) [pdf]

https://cs.uml.edu/~fredm/courses/91.308-spr05/files/palmdocs/uiguidelines.pdf
179•spiffytech•14h ago•86 comments

Museum of Plugs and Sockets

https://plugsocketmuseum.nl/index.html
102•ohjeez•3d ago•35 comments

BuildKit: Docker's Hidden Gem That Can Build Almost Anything

https://tuananh.net/2026/02/25/buildkit-docker-hidden-gem/
168•jasonpeacock•16h ago•62 comments

Show HN: Hacker Smacker – Spot great (and terrible) HN commenters at a glance

https://hackersmacker.org
109•conesus•2d ago•119 comments

A Nationwide Book Ban Bill Has Been Introduced in the House of Representatives

https://bookriot.com/hr7661-book-ban-legislation/
108•LostMyLogin•3h ago•67 comments

Show HN: Deff – Side-by-side Git diff review in your terminal

https://github.com/flamestro/deff
93•flamestro•13h ago•53 comments

Two insider cases we've recently closed

https://news.kalshi.com/p/kalshi-trading-violation-enforcement-cases
18•fortran77•5h ago•47 comments

Show HN: Linex – A daily challenge: placing pieces on a board that fights back

https://www.playlinex.com/
59•Humanista75•2d ago•20 comments

Understanding the Go Runtime: The Memory Allocator

https://internals-for-interns.com/posts/go-memory-allocator/
54•valyala•3d ago•9 comments

Intel Foundry boss leaves for Qualcomm

https://www.tomshardware.com/tech-industry/semiconductors/intel-foundry-boss-leaves-for-qualcomm-...
6•teleforce•30m ago•0 comments

Nano Banana 2: Google's latest AI image generation model

https://blog.google/innovation-and-ai/technology/ai/nano-banana-2/
547•davidbarker•14h ago•510 comments