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.

A Preview of DuckDB v2.0

https://duckdb.org/2026/08/17/duckdb-20-highlights
372•ibotty•5h ago•58 comments

Qwen3.8 27B scores 52 on Artificial Analysis

https://artificialanalysis.ai/models/qwen3-8-27b
117•anana_•1h ago•56 comments

AI-Generated GitHub Copilot “Autofix” Allowed Compromise of Snowflake's Jira

https://www.wiz.io/blog/red-agent-snowflake-copilot-cicd-bug
209•galnagli•4h ago•96 comments

The Lonely Men Who Work in Patagonia, at the End of the World

https://www.newyorker.com/culture/photo-booth/the-lonely-men-at-the-end-of-the-world
28•bookofjoe•35m ago•4 comments

Incident with Github.com

https://www.githubstatus.com/incidents/zkxwbgr0cnmx
318•SpyCoder77•5h ago•757 comments

How to disable or avoid intrusive AI

https://www.librarian.net/notoai/
165•ColinWright•5h ago•72 comments

Launch HN: Speko (YC S26) – OpenRouter for Voice AI

https://speko.ai/
64•abdik•3h ago•35 comments

GPT 5.6 Sol is the best "vision" model OpenAI ever released

https://blog.roboflow.com/openai-gpt-5-6/
235•plurby•6h ago•126 comments

Sun Clock

https://sunclock.net/
47•Gecko4072•2h ago•21 comments

Judge sets framework for Nine PBS to retrieve archival data

https://current.org/2026/08/judge-sets-framework-for-nine-pbs-to-retrieve-archival-data/
44•qingcharles•2h ago•10 comments

GPU Offload in Rust: Portable, Safe, and Fast

https://arxiv.org/abs/2608.13759
12•linggen•1h ago•0 comments

Olo (Color)

https://en.wikipedia.org/wiki/Olo_(color)
163•inigyou•5d ago•40 comments

We Are Forking dotenvy into dotenv-ng

https://secretspec.dev/blog/we-are-forking-dotenvy-into-dotenv-ng/
11•linggen•1h ago•4 comments

Llama.cpp v0.1.0

https://github.com/ggml-org/llama.cpp/releases/tag/v0.1.0
16•satvikpendem•1h ago•4 comments

Ask HN: Alternatives to GitHub

362•dhruv3006•5h ago•233 comments

How I Over-Engineered My Book

https://ben.balter.com/2026/08/17/how-i-over-engineered-my-book/
8•benbalter•54m ago•8 comments

How to put 170 atoms in an atom

https://signoregalilei.com/2026/08/02/how-to-put-170-atoms-in-an-atom/
73•surprisetalk•4h ago•9 comments

Roboflow Playground: Try and Compare 30 Computer Vision Models

https://blog.roboflow.com/roboflow-playground/
4•Bluestein•41m ago•0 comments

Marketers are Addicted to Bad Data (2020)

https://www.jacquescorbytuech.com/writing/marketers-addicted-bad-data
5•zbentley•4d ago•4 comments

How I developed an Am29000 C compiler and web browser

https://nanochess.org/am29000_c_compiler_web_browser.html
60•nanochess•22h ago•9 comments

Anthropic's ‘watermark’ text adulteration in Claude is a perversion of writing

https://daringfireball.net/2026/08/anthropics_watermark_text_adulteration_in_claude_is_a_perversi...
710•ropbear•21h ago•617 comments

Meta faces 'astronomical' consequences as legal fight reaches critical moment

https://www.cnbc.com/2026/08/17/meta-attorneys-general-california-federal-trial-astronomical-cons...
35•root-parent•1h ago•27 comments

Show HN: Sokoban AI Solver

https://mkornreich.me/projects/sokoban/
53•enjoyyourlife•6h ago•32 comments

Show HN: Saggar, a Mac terminal that keeps sessions and your attention organized

https://saggar.marginalutility.dev/
33•mcclowes•4h ago•28 comments

A particle made of force: physicists say they've found mysterious 'glueball'

https://www.nature.com/articles/d41586-026-02498-1
34•Brajeshwar•5d ago•1 comments

Show HN: Learn Flags Quiz

https://flagquizzes.com/
31•artiomyak•4h ago•15 comments

Apple's App Tracking Transparency treated its own apps better than rivals

https://www.bundeskartellamt.de/SharedDocs/Meldung/EN/Pressemitteilungen/2026/08_17_2026_Apple_AT...
212•nyku•5h ago•79 comments

How to ship a database every day

https://turbopuffer.com/blog/control-plane
50•tarunnnp•5h ago•7 comments

On AI regulation and messaging

https://twitter.com/DarioAmodei/status/2088758816376807762
215•jacquesm•17h ago•445 comments

Amazon, which started off selling books, is destroying rare texts to train AI

https://techcrunch.com/2026/08/17/amazon-once-an-online-bookseller-is-destroying-rare-books-to-tr...
18•rzk•59m ago•2 comments