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•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.

Googlebook

https://googlebook.google/
436•tambourine_man•4h ago•688 comments

How to make your text look futuristic (2016)

https://typesetinthefuture.com/2016/02/18/futuristic/
77•_vaporwave_•1h ago•9 comments

CERT is releasing six CVEs for serious security vulnerabilities in dnsmasq

https://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2026q2/018471.html
156•chizhik-pyzhik•3h ago•62 comments

Show HN: Needle: We Distilled Gemini Tool Calling into a 26M Model

https://github.com/cactus-compute/needle
164•HenryNdubuaku•3h ago•50 comments

Why senior developers fail to communicate their expertise

https://www.nair.sh/guides-and-opinions/communicating-your-expertise/why-senior-developers-fail-t...
255•nilirl•6h ago•136 comments

The Future of Obsidian Plugins

https://obsidian.md/blog/future-of-plugins/
237•xz18r•6h ago•96 comments

Rendering the Sky, Sunsets, and Planets

https://blog.maximeheckel.com/posts/on-rendering-the-sky-sunsets-and-planets/
359•ibobev•8h ago•34 comments

Quack: The DuckDB Client-Server Protocol

https://duckdb.org/2026/05/12/quack-remote-protocol
98•aduffy•3h ago•23 comments

Reimagining the mouse pointer for the AI era

https://deepmind.google/blog/ai-pointer/
81•devhouse•4h ago•67 comments

Learning Software Architecture

https://matklad.github.io/2026/05/12/software-architecture.html
489•surprisetalk•12h ago•97 comments

Dead.Letter (CVE-2026-45185) – How XBOW found an unauthenticated RCE on Exim

https://xbow.com/blog/dead-letter-cve-2026-45185-xbow-found-rce-exim
47•fedek_•3h ago•20 comments

Launch HN: Voker (YC S24) – Analytics for AI Agents

https://voker.ai
32•ttpost•6h ago•18 comments

Bambu Lab is abusing the open source social contract

https://www.jeffgeerling.com/blog/2026/bambu-lab-abusing-open-source-social-contract/
945•rubenbe•6h ago•326 comments

Beyond Semantic Similarity

https://arxiv.org/abs/2605.05242
18•44za12•1h ago•1 comments

Show HN: Statewright – Visual state machines that make AI agents reliable

https://github.com/statewright/statewright
43•azurewraith•7h ago•11 comments

Is this why science advances one funeral at a time?

https://nautil.us/is-this-why-science-advances-one-funeral-at-a-time-1280650
8•Brajeshwar•4h ago•10 comments

Riding the D in Los Angeles: city hopes new subway stations will be game changer

https://www.theguardian.com/us-news/2026/may/09/los-angeles-subway-public-transportation
23•raybb•1d ago•5 comments

Screenshots of Old Desktop OSes

http://www.typewritten.org/Media/
615•adunk•16h ago•323 comments

Show HN: Agentic interface for mainframes and COBOL

https://www.hypercubic.ai/hopper
40•sai18•4h ago•17 comments

When life gives you lemons, write better error messages

https://wix-ux.com/when-life-gives-you-lemons-write-better-error-messages-46c5223e1a2f
85•luispa•4d ago•24 comments

A Preview of the Future

https://unsung.aresluna.org/a-preview-of-the-future/
15•zdw•1d ago•1 comments

We accidentally recreated old Facebook

https://amrshawky.com/posts/we-accidentally-recreated-fb/
30•amr_shawky•2d ago•21 comments

Canada’s Bill C-22 Is a Repackaged Version of Last Year’s Surveillance Nightmare

https://www.eff.org/deeplinks/2026/05/canadas-bill-c-22-repackaged-version-last-years-surveillanc...
170•Brajeshwar•4h ago•52 comments

Show HN: Gigacatalyst – Extend your SaaS with an embedded AI builder

30•namanyayg•5h ago•8 comments

Instructure pays ransom to Canvas hackers

https://www.insidehighered.com/news/tech-innovation/administrative-tech/2026/05/11/instructure-pa...
193•Cider9986•18h ago•185 comments

Text Blaze (YC W21) Is Hiring for a No-AI Summer Internship

https://www.ycombinator.com/companies/text-blaze/jobs/P4CCN62-the-blaze-no-ai-summer-internship
1•scottfr•9h ago

The Real Story of Troy

https://storica.club/blog/troy-was-real/
43•cemsakarya•2d ago•18 comments

SQL: Incorrect by Construction

https://chreke.com/posts/sql-incorrect-by-construction
21•ingve•3h ago•20 comments

Snowflake Postgres, Lakebase, HorizonDB: Picking the Lock-In You Want

https://thebuild.com/blog/2026/05/12/snowflake-postgres-lakebase-horizondb-picking-the-lock-in-yo...
16•samaysharma•2h ago•4 comments

The Surprisingly Long Life of the Vacuum Tube

https://www.construction-physics.com/p/the-surprisingly-long-life-of-the
53•surprisetalk•1d ago•35 comments