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.

Claude Fable 5.1 and Claude Mythos 5.1

https://www.anthropic.com/claude-fable-and-mythos-5-1
663•denysvitali•3h ago•625 comments

Dyson Launches Toothbrush

https://www.dyson.com/oral-care/electric-toothbrush/camerajet/ceramic-ultra-blue
44•noja•36m ago•20 comments

Refurbishing a Tektronix TDS7104 Oscilloscope

https://tomverbeure.github.io/2026/08/23/Tektronix-TDS7104-Refurbishing.html
30•jwise0•1h ago•7 comments

The ChatGPT/Codex app bundles a full copy of LibreOffice

https://simonwillison.net/2026/Sep/1/codex-libreoffice/
87•timpera•1h ago•52 comments

AnkiDroid: Google Play no longer allowing Open Collective donation link

https://github.com/ankidroid/Anki-Android/issues/21656
764•hexa555•11h ago•219 comments

Launch HN: Nori Robotics (YC S26) – A low-cost humanoid robot for development

https://www.norirobotics.com/
83•AntonioLi•3h ago•28 comments

Show HN: Running 104GB Qwen3.8-Flash-Next on 48GB Mac with at ~12 tok/s

https://github.com/carloslfu/slotstream
105•carloslfu•4h ago•69 comments

Ambient CSS v3 – Blender meets CSS

https://ambientcss.vercel.app/
150•kikkupico•5h ago•57 comments

Movie Scene Map – 13,312 films, series, games, anime and manga

https://moviescenemap.com/
102•Flightmussy•4h ago•23 comments

Play Store blocks AuroraStore, hurting GrapheneOS users

https://gitlab.com/AuroraOSS/AuroraStore/-/work_items/1566
419•erikvanoosten•5h ago•168 comments

Ask HN: Who is hiring? (September 2026)

156•whoishiring•6h ago•168 comments

I trained a small transformer in 1.5hrs and it beats many LLMs

https://mvakde.github.io/blog/44-on-arc-1/
492•porridgeraisin•11h ago•141 comments

Magic eye tube

https://en.wikipedia.org/wiki/Magic_eye_tube
46•peter_d_sherman•3d ago•16 comments

Specifications Don't Exist (2025)

https://www.galois.com/articles/specifications-dont-exist
21•surprisetalk•6d ago•0 comments

Quill (YC W20) Is Hiring a Fullstack SWE

1•R_R•4h ago

How bicycle coaster brakes work (2018)

https://www.dougbarnesauthor.com/2018/06/how-bicycle-coaster-brakes-work.html
25•Vedor•3d ago•24 comments

Apple reveals 'shocking evidence' from ex-employee's MacBook in OpenAI suit

https://9to5mac.com/2026/08/31/apple-openai-forensic-macbook-evidence/
50•colinprince•56m ago•19 comments

The creator of Jujutsu has joined ERSC

https://ersc.io/blog/martin-joins-ersc
129•steveklabnik•3h ago•107 comments

Ask HN: Who wants to be hired? (September 2026)

49•whoishiring•6h ago•187 comments

Atlas: A World Model for Spatial Intelligence

https://www.worldlabs.ai/blog/atlas
86•johnsutor•3h ago•9 comments

American Airlines mechanic Azriel “Al” Blackman has died

https://simpleflying.com/american-airlines-mechanic-passes-away-100-record-80-years/
354•NaOH•2d ago•145 comments

Show HN: HN Match Maker – Matching "Who Wants to Be Hired?" With "Who's Hiring?"

https://hnmatchmaker.com/
3•all2•22m ago•0 comments

OpenAI: Path to Astra: critical capabilities and frontier safeguards

https://openai.com/index/path-to-astra/
10•jithinraj•55m ago•0 comments

Io_uring Without Readahead

https://frn.sh/io-uring/
97•porridgeraisin•7h ago•31 comments

Fastpotify

https://fastpotify.rocks/
788•nreece•18h ago•517 comments

I used Fable to rewrite 65kLoC of Go in Rust. It cost $400

https://iurii.net/en/blog/posts/software-engineering/i-used-fable-to-rewrite-65kloc-to-rust/
13•aka-rider•2h ago•9 comments

Dr. Melvin Scheinman: 40th Anniversary of Catheter Ablation

https://ucsfhealthcardiology.ucsf.edu/facstaff/spotlight/dr-melvin-scheinman-40th-anniversary-cat...
57•efavdb•3d ago•15 comments

Show HN: Newton's Orchard – Browser-based space/gravity playground

https://newtonsorchard.app
4•andrewchilds•4h ago•0 comments

Physically Immutable Optical Archive Libraries

https://savartus.com/solutions/enterprise-laser-storage/
30•thunderbong•2d ago•11 comments

How accurate have Ed Zitron's AI skeptic predictions been?

https://danluu.com/zitron/
162•jatins•2h ago•185 comments