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.

I've factored the RSA keys of a Certificate Authority from the 90s

https://mcpherrin.ca/2026/09/07/rsa.html
312•ahlCVA•7h ago•54 comments

Among European Companies That Use a CDN, Nearly 9 in 10 Use Cloudflare

https://ciphercue.com/blog/european-cdn-concentration-cloudflare-nine-in-ten
6•adulion•29m ago•5 comments

Mistral raises €3B

https://mistral.ai/news/mistral-makes-sovereign-open-weight-ai-to-frontier/
411•kuberwastaken•4h ago•274 comments

We built our house for LAN parties

https://lanparty.house/
42•fittingopposite•2d ago•19 comments

We have a year to fix security everywhere

https://jyn.dev/a-year-to-fix-security/
216•saikatsg•4h ago•173 comments

My Feed, My Way

https://www.pm.gov.au/media/my-feed-my-way
111•dotcoma•4h ago•77 comments

TALA Is Open-Source

https://d2lang.com/blog/tala-is-open-source/
218•alixanderwang•9h ago•14 comments

There's a new "Google Jail" for independent wikis

https://weirdgloop.org/blog/google-jail
116•pizzaiolo•7h ago•43 comments

Multi-Agents LLM Financial Trading Framework

https://github.com/TauricResearch/TradingAgents
41•fittingopposite•3h ago•33 comments

How well do agents use test/verification techniques?

https://danluu.com/agentic-testing/
79•vinhnx•6h ago•22 comments

Arm Mali G2-Ultra NX GPU: desktop-class mobile gameplay with AI-native graphics

https://newsroom.arm.com/blog/arm-mali-g2-ultra-nx-ai-native-mobile-graphics
38•Re-Tails•5h ago•20 comments

Watch Los Angeles get built, one building at a time (1880–2026)

https://lax-skyline.parcelscope.net/
287•rustywasm•14h ago•142 comments

Jellyfin 12.0

https://jellyfin.org/posts/jellyfin-release-12.0/
347•0xC0ncord•7h ago•138 comments

Leaving VMware just got harder after Broadcom pulled VDDK downloads

https://www.virtualizationhowto.com/2026/09/leaving-vmware-just-got-harder-after-broadcom-pulled-...
189•josephcsible•12h ago•77 comments

anystation: Calling any station A public board shaped like a tree. No account

https://anystation.net/
6•Bluestein•1d ago•5 comments

Understanding Computer Memory Architecture and SSD Internals

https://codingpirate.com/understanding-computer-memory-architecture-ac9320110787
36•Deeptiman•1d ago•2 comments

The VMs Powering Mobile Agents (Instinct, Claude Code)

https://rohanadwankar.github.io/posts/platforms.html
27•RohanAdwankar•4h ago•6 comments

216M Spy TVs – The LG Smart TV Problem [video]

https://www.youtube.com/watch?v=6IFVTcM28KA
749•treve•1d ago•903 comments

WeatherNext 3

https://deepmind.google/science/weathernext/
321•matthieu_bl•4d ago•77 comments

Scientists observe Einstein's gravity in the quantum world

https://www.ox.ac.uk/news/2026-08-28-scientists-observe-einsteins-gravity-in-the-quantum-world
215•mudil•3d ago•53 comments

I tested 10 model/harness combinations on the same Three.js task

https://alvins82.github.io/hangar-harness-model-tests/
78•alvins82•5h ago•45 comments

John Margolies' photographs of roadside America

https://publicdomainreview.org/collection/john-margolies-photographs-of-roadside-america/
80•duck•4d ago•20 comments

Trusting-Trust Attack against an Entire Linux Distribution

https://arxiv.org/abs/2607.24888
207•signa11•2d ago•43 comments

Extinct Tasmanian tiger's 'snap' unlike any living mammal's bite

https://www.cnn.com/2026/09/02/science/tasmanian-tiger-skull-bite-force
28•cisc•4d ago•6 comments

Feather Atlas

https://www.fws.gov/lab/featheratlas/identify.html
10•bookofjoe•1d ago•1 comments

UAE-based Falcon AI NSFW classifier among top global open-source models (2025)

https://www.middleeastainews.com/p/uae-ai-model-tops-50-million-monthly
18•instagraham•2h ago•12 comments

Navier-Stokes – Tristan Buckmaster [pdf]

https://cims.nyu.edu/~tristanb/statement.pdf
218•procedurecall•3h ago•106 comments

Emacs Bedrock 2.0

https://lambdaland.org/posts/2026-09-06-bedrock-v2/
115•ashton314•12h ago•20 comments

GamersNexus and LG: Or why rooting your TV is a bad idea

https://leaflet.pub/p/did:plc:yhgc5rlqhoezrx6fbawajxlh/3muwrqenzfk2n
87•drasticactions•5h ago•89 comments

Icy Moons Are Ocean Worlds

https://mceglowski.substack.com/p/icy-moons-are-ocean-worlds
174•worldvoyageur•1d ago•22 comments