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.

Muse Spark 1.3

https://developer.meta.com/ai/models/muse-spark/
324•bvaldivielso•4h ago•232 comments

Gemini 3.8 Flash and 3.8 Flash Cyber

https://blog.google/innovation-and-ai/models-and-research/gemini-models/3-8-flash-and-3-8-flash-c...
788•bratao•8h ago•467 comments

METR Report on OpenAI / Hugging Face Hacking Incident

https://metr.org/blog/2026-08-26-openai-hugging-face-incident-investigation/#core-takeaways-about...
33•stikit•40m ago•12 comments

Google avoids a breakup of its ad tech business

https://www.nytimes.com/2026/09/02/technology/google-ad-tech-remedies.html
222•donohoe•9h ago•133 comments

Maybe We Shouldn't Be Reviewing All This Code

https://martinfowler.com/rachels-ramblings/code-review.html
22•ingve•1h ago•20 comments

Launch HN: RonanRX (YC S26) – Personalized Peptides and GLP-1s

https://ronanrx.com/
11•lloydarmbrust•1h ago•13 comments

Reverse Engineering Unknown File Formats with ImHex

https://werwolv.net/posts/file_format_reverse_engineering/
75•carlos-menezes•2d ago•10 comments

Fable 5.1 World Modeling

https://github.com/PhiloLabs/fable51-worlds
117•surreal_•3h ago•42 comments

Uber shuts operations in Nigeria and Uganda with immediate effect

https://www.bbc.com/news/articles/c86xpv8l9y9o
48•yakkomajuri•2h ago•16 comments

Three sites made 215,128 “best software” pages for AI. Perplexity cites them

https://trellner.com/reports/manufactured-sources-behind-ai-recommendations/
284•jakobgreenfeld•9h ago•126 comments

Holden's Lightning Flight

https://en.wikipedia.org/wiki/Holden%27s_Lightning_flight
17•ColinWright•2d ago•0 comments

Nango (YC W23) is hiring across eng, product and GTM (SF and remote)

https://nango.dev/careers
1•bastienbeurier•2h ago

Can I opt out of my input or output data being used for training?

https://help.mistral.ai/en/articles/455207-can-i-opt-out-of-my-input-or-output-data-being-used-fo...
359•teekert•11h ago•155 comments

Wendell Berry has died

https://www.nytimes.com/2026/08/31/us/wendell-berry-dead.html
128•Curiositry•1d ago•65 comments

Altair Basic Interpreter Source Code (1975) [pdf]

https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/34d561c8-cf5c-4e69-af47-3782ea...
37•Eridanus2•3h ago•11 comments

Engineering of the fastest WebAssembly interpreters

https://wasmi-labs.github.io/blog/posts/wasmi-v2.0/
25•herobird•1d ago•0 comments

Reasons robotics is hard

https://secondthoughts.ai/p/14-reasons-robotics-is-hard
14•ddp26•1h ago•1 comments

Qantas Airbus A380 engine failure in 2010 (2023)

https://admiralcloudberg.medium.com/a-matter-of-millimeters-the-story-of-qantas-flight-32-bdaa62d...
66•gumby•5h ago•39 comments

Biggest dark matter detector spots a single weird particle

https://www.science.org/content/article/world-s-biggest-dark-matter-detector-spots-single-weird-p...
231•randycupertino•10h ago•75 comments

Embedded Rust RTOS vs. C RTOS

https://tweedegolf.nl/en/blog/65/async-rust-vs-rtos-showdown/
51•kooi•5h ago•24 comments

Commodore 64 released September 1, 1982

https://dfarq.homeip.net/commodore-64-released-september-1-1982/
324•giuliomagnifico•15h ago•168 comments

Aging brains blend memories together instead of just forgetting them

https://studyfinds.com/aging-brains-blend-memories-together-instead-of-forgetting-them-study-finds/
190•mdp2021•10h ago•86 comments

Exit the Cave

https://turtlespace.blog/p/exit-the-cave
197•akkartik•9h ago•67 comments

I wanna live an NPC life

https://signalundefied.bearblog.dev/i-wanna-live-an-npc-life/
162•conferza•3h ago•156 comments

Earth's organisms developed via evolution. What if the cosmos did, too?

https://www.smithsonianmag.com/science-nature/earths-organisms-developed-via-evolution-some-theor...
56•JulianPGough•6h ago•41 comments

A Selection of Los Alamos Rolodex Business Cards

https://clui.org/collections/los-alamos-business-cards/selection-cards
132•1970-01-01•2d ago•29 comments

Making the Internet Boring

https://cemrehancavdar.com/2026/08/30/making-the-internet-boring/
68•zdw•3d ago•43 comments

Product Backlog Problems: Why Your Hierarchy Is Broken

https://www.prodpad.com/blog/backlog-hierarchy-problem/
11•adrianhoward•2d ago•3 comments

Poisson Disk Sampling

https://stripeacross.com/posts/poisson-disk-sampling/
119•vismit2000•10h ago•17 comments

We could save petabytes of cache storage with Zstandard and Pingora

https://blog.cloudflare.com/cache-transcoding/
55•torutofu•1d ago•25 comments