frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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.

SimCity 3k in 4k

https://www.thran.uk/writ/hdid/2025/12/simcity-3k-in-4k.html
35•speckx•30m ago•3 comments

DuckDuckGo search saw 28% more visits after Google said people love AI mode

https://www.pcgamer.com/hardware/duckduckgos-ai-free-search-saw-nearly-28-percent-more-visits-in-...
214•HelloUsername•1h ago•87 comments

Last.fm is now independent

https://support.last.fm/t/last-fm-is-now-independent/118591
301•twistslider•2h ago•90 comments

Mini Micro Fantasy Computer

https://miniscript.org/MiniMicro/index.html#about
195•nicoloren•8h ago•69 comments

I think Anthropic and OpenAI have found product-market fit

https://simonwillison.net/2026/May/27/product-market-fit/
83•simonw•1h ago•75 comments

Tech CEOs are apparently suffering from AI psychosis

https://techcrunch.com/2026/05/27/tech-ceos-are-apparently-suffering-from-ai-psychosis/
236•IAmGraydon•2h ago•102 comments

Gemini, Gophers, and Fingers. Oh My Alternative Internets Beyond HTTPS

https://brennan.day/gemini-gophers-and-fingers-oh-my-alternative-internets-beyond-https/
7•ChrisArchitect•42m ago•0 comments

Reflex (YC W23) Is Hiring SWEs, Growth, and GTM Roles

https://www.ycombinator.com/companies/reflex/jobs
1•apetuskey•1h ago

Matrix Multiplications on GPUs Run Faster When Given "Predictable" Data (2024)

https://www.thonking.ai/p/strangely-matrix-multiplications
111•tosh•4d ago•32 comments

Show HN: I made an emergency page for my family

https://help.delduca.org
40•delduca•3h ago•50 comments

Multi-Agent LLM System for Automated Vulnerability Discovery and Reproduction

https://arxiv.org/abs/2605.21779
3•root-parent•24m ago•0 comments

A Comma and a Question Mark, Redux: Quick Terminal Helpers Using Pi

https://z3ugma.github.io/2026/05/25/a-comma-and-a-question-mark/
13•z3ugma•1d ago•1 comments

All of human cooking compressed into 2 megabytes

https://arxiv.org/abs/2605.22391
274•josefchen•9h ago•99 comments

Theseus: Translating Win32 to WASM

https://neugierig.org/software/blog/2026/05/theseus-wasm.html
38•ingve•2d ago•9 comments

Training our own AI models

https://posthog.com/blog/training-ai-models
132•tartieret•1h ago•95 comments

My new obsession: A horse-racing board game of pure luck

https://alexanderbjoy.com/horse-race-board-game/
34•surprisetalk•2d ago•21 comments

XLIDE: VBA without excel

https://github.com/WilliamSmithEdward/xlide_vscode
50•sts153•5h ago•16 comments

Incident with Pull Requests, Issues, Git Operations and API Requests

https://www.githubstatus.com/incidents/xy1tt3hs572m
201•maxnoe•5h ago•158 comments

Phloto for My Photo Flow

https://cceckman.com/writing/phloto/
27•evakhoury•20h ago•2 comments

The Melancholy of Slaying Monsters

https://thereader.mitpress.mit.edu/the-strange-melancholy-of-slaying-monsters/
242•prismatic•22h ago•112 comments

In-Browser Container Builds

https://ochagavia.nl/blog/fully-in-browser-container-builds/
4•wofo•2d ago•0 comments

Cloudflare Flagship

https://developers.cloudflare.com/flagship/
324•tjek•18h ago•164 comments

I'm Tired of Talking to AI

https://orchidfiles.com/im-tired-of-ai-generated-answers/
1716•theorchid•7h ago•822 comments

Raft Consensus with a Minority of Nodes

https://padhye.org/raft-minority/
104•moarbugs•1d ago•16 comments

Show HN: Open-source Workspace (mail,docs,spreadsheet,drive) web/iOS

https://tinycld.org/
22•nathanstitt•3h ago•12 comments

Private Equity Bought America's Essential Services

https://rubbishtalk.com/economy/how-private-equity-bought-americas-essential-services/
330•NoRagrets•6h ago•385 comments

Claude Code as a Daily Driver: Claude.md, Skills, Subagents, Plugins, and MCPs

https://arps18.github.io/posts/claude-code-mastery/
271•arps18•12h ago•202 comments

Atomically precise mechanosynthesis of carbon structures on hydrogenated Silicon

https://arxiv.org/abs/2605.27250
34•gene-h•6h ago•5 comments

Canada to order military plane fleet from Sweden in shift from US suppliers

https://www.theguardian.com/world/2026/may/27/canada-sweden-saab-globaleye-aircraft
14•tosh•1h ago•1 comments

The worst job interview I ever had

https://www.oliverio.dev/blog/the-worst-job-interview-i-had
572•oliverio•21h ago•464 comments