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.

The coolest use for the Vision Pro

https://christianselig.com/2026/07/vision-pro-house/
98•robbiet480•57m ago•37 comments

Kimi K3-256k

https://www.kimi.com/code/docs/en/kimi-code/models
244•monneyboi•2h ago•63 comments

Show HN: Open-source engine running Gemma 4 26B in 2 GB RAM on any M-series Mac

https://github.com/drumih/turbo-fieldfare
549•gitpusher42•6h ago•185 comments

Anatomy of a Frontier Lab Agent Intrusion: A Timeline of the July 2026 Incident

https://huggingface.co/blog/agent-intrusion-technical-timeline
215•artninja1988•1d ago•114 comments

Superlogical

https://www.superlogical.com/
415•yan•5h ago•269 comments

Keychron announces first open-source firmware for gaming mice

https://www.digitalfoundry.net/news/2026/07/keychron-announces-first-open-source-firmware-for-gam...
204•JLO64•5h ago•85 comments

SalesPatriot (YC W25) Is Hiring FDEs

https://www.ycombinator.com/companies/salespatriot/jobs/M46X6YX-forward-deployed-engineer
1•maciejSz•36m ago

KOReader

https://koreader.rocks/
618•Cider9986•10h ago•196 comments

A Trampoline

https://dogdogfish.com/blog/2026/07/29/a-trampoline/
27•matthewsharpe3•1h ago•10 comments

Claude: Elevated errors across all models

https://status.claude.com/incidents/q2kg8n613kr3
208•gregsadetsky•1h ago•177 comments

Theo Conjecture solves 35-year-old math problem, finds a term no one predicted

https://firstprinciples.com/blog-article/ai-system-theo-conjecture-solves-35-year-old-math-conjec...
15•otalp•1h ago•3 comments

Turning a dumb AC unit smart (without losing my security deposit)

https://prilik.com/blog/post/automating-ac-nyc/
55•austinallegro•3h ago•50 comments

A.I. companies are recruiting electricians and carpenters by the thousands

https://www.nytimes.com/2026/07/29/business/economy/data-center-electricians-training.html
174•thm•6h ago•221 comments

Handbook.md shows that long policy documents do not reliably govern agents

https://arxiv.org/abs/2607.25398
267•spIrr•8h ago•170 comments

Document-borne AI worms can self-propagate through Copilot for Word

https://enklypesalt.com/posts/context-collapse-part3-ai-worming-through-word/
307•Canopy9560•9h ago•231 comments

Commodification of Intelligence: Good, Bad, and Ugly Circular AI Deals

https://www.emergingtrajectories.com/lh/commodification-and-circularity/
32•cl42•2h ago•21 comments

AI's top startups are barely publishing their research

https://www.science.org/content/article/ai-s-top-startups-are-barely-publishing-their-research
6•YeGoblynQueenne•11m ago•0 comments

Show HN: CheapFoodMap – A map of good meals under $10

https://cheapfoodmap.com/
79•jaep1•4h ago•85 comments

Some thoughts about Anthropic's new cryptanalysis results

https://blog.cryptographyengineering.com/2026/07/29/some-notes-about-anthropics-new-results/
76•supermatou•4h ago•42 comments

How to not die by a thousand cuts or how to think about software quality (2023)

https://www.evalapply.org/posts/how-to-not-die-by-a-thousand-cuts/index.html
33•adityaathalye•2h ago•15 comments

Launch HN: Tokenless (YC S26) – Automatic model switching to save money

https://usetokenless.com/
45•rohaga•5h ago•40 comments

Darktable

https://www.darktable.org/
252•siatko•9h ago•125 comments

How much can you delegate to agents?

https://newsletter.posthog.com/p/agent-autonomy
25•duck•2h ago•0 comments

The Rust on ESP Book

https://docs.espressif.com/projects/rust/book/
96•AlexeyBrin•4d ago•9 comments

Self-hosting Kimi K3: 20% more hardware cost, 20% better task resolution

https://aistack.imec-int.com/blog/gpu-self-hosting
102•flifenstein•6h ago•34 comments

Hamburg's Stadtpark: A Park Built to Be Used

https://alsterrunde.com/hamburgs-stadtpark-a-park-built-to-be-used/
90•mertbio•2d ago•24 comments

Shipping Godot VR and Porting to PSVR2: A Partial Post Mortem

https://www.claire-blackshaw.com/blog/2026/07/shipping-godot-vr-and-porting-to-psvr2-a-partial-po...
99•ibobev•8h ago•11 comments

GPT-5.6 vs. Claude Fable 5 for Physical AI, which performs best?

https://juliahub.com/blog/frontier-models-physical-ai-evaluation
74•mbauman•6h ago•18 comments

Show HN: Qwen Scribe – local transcription and dictation for Apple Silicon

https://github.com/VladUZH/qwen-scribe
66•sidclaw•6h ago•17 comments

User Interfaces of the Demo Scene

https://www.datagubbe.se/scenegui/
384•zdw•17h ago•68 comments