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.

AWS: Inaccurate Estimated Billing Data – $1.7 billion

166•nprateem•5h ago•174 comments

Mozilla: The state of open source AI

https://stateofopensource.ai/
16•rellem•15m ago•0 comments

Minikotlin

https://minikotlin.run
73•frizlab•1h ago•17 comments

Multi-Primary Color Display Emerges as Next-Gen Color Reproduction Technology

https://en.ubiresearchnet.com/multi-primary-color-display-technology-2026/
33•ksec•1h ago•27 comments

Three ways people respond to a problem (other than solving it)

https://improvesomething.today/responses-to-problems/
10•surprisetalk•46m ago•1 comments

First atmosphere found on Earth-like planet in habitable zone of distant star

https://www.bbc.com/news/articles/cy4kdd1e0ejo
14•neversaydie•40m ago•1 comments

AI Meets Cryptography 2: What AI Found in OpenVM's ZkVM

https://blog.zksecurity.xyz/posts/openvm-bugs/
11•duha•25m ago•0 comments

A Road to Lisp: Which Lisp

https://scotto.me/blog/2026-07-17-which-lisp/
9•silcoon•50m ago•0 comments

Apple targets dozens of OpenAI employees with legal letters

https://www.ft.com/content/1b8c9d52-88a9-426b-ba47-f1811f859166
157•merksittich•2h ago•89 comments

Manufact (YC S25) Is Hiring a Senior infra engineer to build the MCP cloud

https://www.ycombinator.com/companies/manufact/jobs/Dh6PYP5-senior-infrastructure-engineer
1•luigipederzani•1h ago

EEG shows brain can simultaneous encode two speech streams

https://journals.plos.org/plosbiology/article?id=10.1371/journal.pbio.3003876
184•giuliomagnifico•8h ago•120 comments

Show HN: Watch bots interact with an SSH honeypot in real time

https://honeypotlive.cc/
5•tusksm•41m ago•1 comments

VulnHunter: Capital One's agentic AI code security tool

https://www.capitalone.com/tech/open-source/announcing-vulnhunter/
19•medina•2h ago•11 comments

PennyLane is an open-source quantum software platform for quantum

https://github.com/PennyLaneAI/pennylane
6•donutloop•1h ago•0 comments

Pebble Mega Update – July 2026

https://repebble.com/blog/pebble-mega-update-july-2026
194•crazysaem•10h ago•110 comments

Evidence of inconsistencies in evaluation process and selection of winners

https://www.kaggle.com/competitions/kaggle-measuring-agi/discussion/724918#3498423
381•twerkmeister•3h ago•214 comments

How Has Roman Concrete Lasted for Millennia? 1,900-Year-Old Latrine Offers Clues

https://www.smithsonianmag.com/smart-news/how-has-roman-concrete-lasted-for-millennia-a-1900-year...
201•divbzero•10h ago•152 comments

Tannakian Reconstruction

https://bartoszmilewski.com/2026/07/14/tannakian-reconstruction/
9•ibobev•3d ago•0 comments

Microsoft Comic Chat is now open source

https://opensource.microsoft.com/blog/2026/07/16/microsoft-comic-chat-is-now-open-source/
746•jervant•22h ago•160 comments

Camera Chase Vehicle

https://transistor-man.com/gimbal_camera_rover.html
87•geerlingguy•1w ago•11 comments

Decoy Font

https://www.mixfont.com/experiments/decoy-font
629•ray__•22h ago•146 comments

An Engineer's Guide to USB Typе-С (2024)

https://www.ti.com/lit/eb/slyy228/slyy228.pdf?ts=1759892558029
236•gregsadetsky•6d ago•36 comments

Kimi K3: Open Frontier Intelligence

https://www.kimi.com/blog/kimi-k3
1844•vincent_s•1d ago•1093 comments

Turn your singing voice into printable notes (in the browser)

https://om-intelligence.ch/projects/vocal-notation/vocal-notation.html
67•busssard•3d ago•22 comments

More Bounce to the Ounce – By Maciej Cegłowski

https://mceglowski.substack.com/p/more-bounce-to-the-ounce
4•pavel_lishin•1h ago•0 comments

LM Studio Bionic: the AI agent for open models

https://lmstudio.ai/blog/introducing-lm-studio-bionic
293•minimaxir•18h ago•106 comments

$100 AI Music Video: Claude Fable 5 vs. GPT-5.6 Sol

https://www.tryai.dev/blog/ai-music-video-arena-claude-vs-gpt-5.6
328•hershyb_•18h ago•448 comments

Solod: Go can be a better C

https://solod.dev
182•koeng•3d ago•111 comments

Ask HN: Any AWS billing issues known? Amazon forecast of 3 billion dollars

161•mstolpm•4h ago•82 comments

NotebookLM is now Gemini Notebook

https://blog.google/innovation-and-ai/products/gemini-notebook/notebooklm-gemini-notebook/
347•xnx•22h ago•168 comments