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.

Toyota Fluorite: "console-grade" Flutter game engine

https://fluorite.game/
144•bsimpson•2h ago•59 comments

Claude Code Is Being Dumbed Down

https://symmetrybreak.ing/blog/claude-code-is-being-dumbed-down/
137•WXLCKNO•44m ago•100 comments

NetNewsWire Turns 23

https://netnewswire.blog/2026/02/11/netnewswire-turns.html
30•robin_reala•1h ago•5 comments

GLM-5: From Vibe Coding to Agentic Engineering

https://z.ai/blog/glm-5
192•meetpateltech•2h ago•109 comments

GLM-OCR: Accurate × Fast × Comprehensive

https://github.com/zai-org/GLM-OCR
142•ms7892•4d ago•51 comments

WiFi Could Become an Invisible Mass Surveillance System

https://scitechdaily.com/researchers-warn-wifi-could-become-an-invisible-mass-surveillance-system/
173•mgh2•4d ago•82 comments

We rendered and embedded one million CAD files

https://cad-search-three.vercel.app/
23•DavidFerris•19h ago•6 comments

It's not finance, it's your pensions

https://theloop.ecpr.eu/its-not-finance-its-your-pensions/
37•kome•5d ago•38 comments

A shortage of tenors

https://www.economist.com/culture/2026/02/09/the-world-is-suffering-from-a-shortage-of-tenors
34•petethomas•1d ago•15 comments

Single bone in Spain offers first direct evidence of Hannibal's war elephants

https://phys.org/news/2026-02-hannibal-famous-war-elephants-bone.html
16•Archelaos•4d ago•2 comments

It's all a blur

https://lcamtuf.substack.com/p/its-all-a-blur
282•zdw•5d ago•58 comments

FAA halts all flights at El Paso airport for 10 days

https://www.nytimes.com/2026/02/11/us/faa-el-paso-flight-restrictions.html
245•edward•10h ago•427 comments

Show HN: AI agents play SimCity through a REST API

https://hallucinatingsplines.com
122•aed•2d ago•44 comments

Should your developer company go open source?

https://extremefoundership.substack.com/p/should-your-developer-company-go
11•paraphrenia•1h ago•5 comments

Why Vampires Live Forever

https://machielreyneke.com/blog/vampires-longevity/
170•machielrey•3h ago•73 comments

Rome is studded with cannon balls (2022)

https://essenceofrome.com/rome-is-studded-with-cannon-balls
79•thomassmith65•4d ago•6 comments

Exposure Simulator

http://www.andersenimages.com/tutorials/exposure-simulator/
98•sneela•7h ago•37 comments

The Day the Telnet Died

https://www.labs.greynoise.io/grimoire/2026-02-10-telnet-falls-silent/
468•pjf•20h ago•340 comments

AI-First Company Memos

https://the-ai-native.company/
83•bobismyuncle•3h ago•134 comments

Show HN: Renovate – The Kubernetes-Native Way

https://github.com/mogenius/renovate-operator
31•JanLepsky•4h ago•13 comments

Lessons you will learn living in a snowy place

https://eukaryotewritesblog.com/2026/01/21/very-snowy-place/
248•surprisetalk•5d ago•244 comments

Communities are not fungible

https://www.joanwestenberg.com/communities-are-not-fungible/
164•tardibear•11h ago•74 comments

Railway (PaaS) global outage

https://status.railway.com
71•TealMyEal•3h ago•56 comments

The Feynman Lectures on Physics (1961-1964)

https://www.feynmanlectures.caltech.edu/
441•rramadass•1d ago•116 comments

Windows Notepad App Remote Code Execution Vulnerability

https://www.cve.org/CVERecord?id=CVE-2026-20841
662•riffraff•12h ago•415 comments

Ask HN: Why are electronics still so unrecyclable?

44•alexandrehtrb•3h ago•83 comments

CoLoop (YC S21) Is Hiring Ex Technical Founders in London

https://www.workatastartup.com/jobs/90016
1•mrlowlevel•12h ago

Chrome extensions spying on users' browsing data

https://qcontinuum.substack.com/p/spying-chrome-extensions-287-extensions-495
402•qcontinuum1•9h ago•167 comments

How Did the FBI Get Nancy Guthrie's Nest Doorbell Footage?

https://lifehacker.com/tech/how-did-the-fbi-get-nancy-guthries-doorbell-footage
6•daft_pink•18m ago•2 comments

A Cosmic Miracle: A Remarkably Luminous Galaxy at z=14.44 Confirmed with JWST

https://astro.theoj.org/article/156033-a-cosmic-miracle-a-remarkably-luminous-galaxy-at-_z_-sub-s...
86•yread•10h ago•43 comments