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.

Xiaomi: New CPU matches Apple cores single threaded, much faster multithreaded

https://twitter.com/lemire/status/2091894299289874926
343•tosh•2h ago•196 comments

MS Paint and Photos inivisibly watermark even locally generated output with GUID

https://xusheng.dev/posts/reversing/mspaint_invisible_watermark/main/
191•ComputerGuru•2h ago•77 comments

IPFS Maintainers Winding Down

https://ipshipyard.com/blog/2026-the-end-of-ipfs-at-shipyard/
125•iand•1h ago•43 comments

A Blackstone real estate company exposed SSN digits, DOBs, addresses and more

https://alexschapiro.com/security/vulnerability/2026/07/16/beam-living-graphql-data-exposure
50•bearsyankees•1h ago•17 comments

Public services are increasingly strained by LLM-written appeals for benefits

https://arxiv.org/abs/2608.16603
31•lensecat•1h ago•35 comments

How Europe is killing makers and micro-entrepreneurs

https://lectronz.com/u/lectronz/articles/how-europe-is-killing-makers-and-micro-entrepreneurs
676•l-one-lone•4h ago•452 comments

The entire city of San Francisco as a video game

https://sf.thijs.gg/
20•centrosphere•29m ago•1 comments

OpenAI: GPT 5.6 Sol price reduction (until at least Nov 21)

https://developers.openai.com/api/docs/pricing
146•tosh•2h ago•136 comments

Hot Chips 2026: CUDA Targets RISC-V – By Chester Lam

https://chipsandcheese.com/p/hot-chips-2026-cuda-targets-risc
16•rbanffy•42m ago•1 comments

Jabber/XMPP: 25 Years of Digital Independence

https://gultsch.de/posts/25-years-of-digital-independence/
35•inputmice•1h ago•13 comments

Where Did All the Public Bathrooms Go?

https://daily.jstor.org/where-did-all-the-public-bathrooms-go/
10•herbertl•27m ago•3 comments

SeL4 security proofs now complete on AArch64

https://proofcraft.systems/news-2026/#2026-08-21
137•snvzz•6h ago•31 comments

I were 17, I'd learn how to build LLMs from scratch

https://twitter.com/paulg/status/2091544343589060625
404•bilsbie•20h ago•519 comments

Show HN: PicoMQ – Durable Streams over HTTP, on object storage

https://picomq.com/
16•adesh_nalpet•1h ago•0 comments

Hot Chips 2026: Applying High Bandwidth Flash (HBF)

https://chipsandcheese.com/p/hot-chips-2026-applying-high-bandwidth
31•ksec•2h ago•10 comments

Coding expertise is going to collapse from AI reliance

https://larsfaye.com/articles/ai-coding-will-prevent-expertise
168•larsfaye•1h ago•208 comments

Show HN: GlassBox – what the browser reveals, and how identifiable you are

https://glassbox.codecanary.org
22•tke248•1h ago•5 comments

EuroHPC Launches 6 Quantum Calls with €119M in Funding

https://www.hpcwire.com/off-the-wire/eurohpc-launches-6-quantum-calls-with-e119m-in-funding/
5•rbanffy•48m ago•1 comments

Curvature Beziers – Improving on a timeless recipe

https://acko.net/blog/curvature-beziers/
14•boxed•5d ago•0 comments

Adafruit USB Type C CC Resistor Fixer

https://www.adafruit.com/product/6323
30•RicoElectrico•2h ago•10 comments

Could We Dredge the Netherlands Without Fossil Fuels?

https://solar.lowtechmagazine.com/2018/08/could-we-dredge-the-netherlands-without-fossil-fuels
18•at1as•2h ago•9 comments

Executable Is a SQLite Database

https://fzakaria.com/2026/08/23/your-executable-is-a-sqlite-database
357•setheron•12h ago•69 comments

Hot Chips 2026: Samsung and HBM Base Die Opportunities

https://chipsandcheese.com/p/hot-chips-2026-samsung-and-hbm-base
9•rbanffy•2h ago•2 comments

FDA clears blood test to aid evaluation for Alzheimer's disease

https://medicine.washu.edu/news/fda-clears-blood-test-to-aid-evaluation-for-alzheimers-disease/
149•dabinat•11h ago•70 comments

Show HN: A techno machine in one HTML file, with verifiable renders

https://ssx360.github.io/rack-02/?src=hn
72•ssx360•4h ago•15 comments

Man Dressed as Darth Vader Defends Flock Cameras to San Diego City Council

https://thehill.com/policy/technology/6042349-darth-vader-flock-surveillance/
22•mooreds•53m ago•2 comments

Anna's Archive Owes $340 Million, Lost Several Domains, but It's Still Online

https://torrentfreak.com/annas-archive-owes-340-million-lost-several-domains-but-its-still-online/
150•Brajeshwar•2h ago•92 comments

NetBSD GSoC 2026 Improving RAIDframe

https://blog.netbsd.org/tnf/entry/gsoc2026_raidframe
13•jaypatelani•2h ago•1 comments

Three Generations in E7

https://johncarlosbaez.wordpress.com/2026/08/12/three-generations-in-e7/
7•surprisetalk•1h ago•1 comments

Fast drilldown dashboards from a single Parquet file

https://www.hamiltonulmer.com/customer-dashboards-r2-hyparquet/
135•v3gas•9h ago•12 comments