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.

Deterministic Fully-Static Whole-Binary Translation Without Heuristics

https://arxiv.org/abs/2605.08419
183•matt_d•6h ago•45 comments

Restore full BambuNetwork support for Bambu Lab printers

https://github.com/FULU-Foundation/OrcaSlicer-bambulab
442•Murfalo•12h ago•185 comments

Googlebook

https://googlebook.google/
790•tambourine_man•16h ago•1303 comments

The vi family

https://lpar.ATH0.com/posts/2026/05/the-vi-family/
177•hggh•1w ago•99 comments

Show HN: Needle: We Distilled Gemini Tool Calling into a 26M Model

https://github.com/cactus-compute/needle
471•HenryNdubuaku•16h ago•154 comments

New stainless steel can survive conditions for hydrogen production in seawater

https://www.sciencedaily.com/releases/2026/05/260510030950.htm
53•HardwareLust•2d ago•22 comments

SecurityBaseline.eu

https://internetcleanup.foundation/2026/05/european-governments-3000-tracking-sites-1000-phpmyadm...
157•aequitas•3h ago•71 comments

How to make your text look futuristic (2016)

https://typesetinthefuture.com/2016/02/18/futuristic/
358•_vaporwave_•14h ago•45 comments

Why senior developers fail to communicate their expertise

https://www.nair.sh/guides-and-opinions/communicating-your-expertise/why-senior-developers-fail-t...
590•nilirl•19h ago•258 comments

CERT is releasing six CVEs for serious security vulnerabilities in dnsmasq

https://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2026q2/018471.html
318•chizhik-pyzhik•16h ago•160 comments

Kraftwerk's radical 1976 track

https://www.bbc.com/culture/article/20260511-kraftwerks-radical-1976-track-radioactivity-became-a...
163•tcp_handshaker•11h ago•113 comments

Traceway: MIT-licensed observability stack you can self-host in ~90s

https://github.com/tracewayapp/traceway
113•sebakubisz•2d ago•10 comments

The Boring Part of Bell Labs (2025)

https://acesounderglass.com/2025/11/15/the-boring-part-of-bell-labs/
7•surprisetalk•4d ago•0 comments

When “idle” isn't idle: how a Linux kernel optimization became a QUIC bug

https://blog.cloudflare.com/quic-death-spiral-fix/
95•sbulaev•10h ago•7 comments

Scrcpy v4.0

https://github.com/Genymobile/scrcpy/releases/tag/v4.0
202•xnx•13h ago•28 comments

Rendering the Sky, Sunsets, and Planets

https://blog.maximeheckel.com/posts/on-rendering-the-sky-sunsets-and-planets/
478•ibobev•21h ago•39 comments

My graduation cap runs Rust

https://ericswpark.com/blog/2026/2026-05-12-my-graduation-cap-runs-rust/
152•ericswpark•10h ago•53 comments

Quack: The DuckDB Client-Server Protocol

https://duckdb.org/2026/05/12/quack-remote-protocol
289•aduffy•16h ago•59 comments

What if there was no BASIC in EndBASIC?

https://blogsystem5.substack.com/p/no-basic-in-endbasic
23•rbanffy•3d ago•4 comments

The Future of Obsidian Plugins

https://obsidian.md/blog/future-of-plugins/
379•xz18r•18h ago•143 comments

Reimagining the mouse pointer for the AI era

https://deepmind.google/blog/ai-pointer/
206•devhouse•16h ago•173 comments

Up in Smoke

https://thebaffler.com/odds-and-ends/the-profession-that-does-not-exist-symposium
24•NaOH•2d ago•5 comments

Referer Reality

https://www.robinsloan.com/lab/referer/
40•tobr•2d ago•13 comments

Fc, a lossless compressor for floating-point streams

https://github.com/xtellect/fc
71•enduku•3d ago•14 comments

Tell NYT, Atlantic, USA Today to keep Wayback Machine

https://www.savethearchive.com/newsleaders/
337•doener•11h ago•94 comments

Starship V3

https://www.spacex.com/updates#starship-v3
232•fprog•8h ago•352 comments

I made Rust’s cargo copy but for CPP

https://github.com/user-with-username/crow
13•anybodyy•2d ago•5 comments

As researchers age, they produce less disruptive work

https://nautil.us/is-this-why-science-advances-one-funeral-at-a-time-1280650
75•Brajeshwar•17h ago•77 comments

Show HN: Agentic interface for mainframes and COBOL

https://www.hypercubic.ai/hopper
77•sai18•17h ago•41 comments

Bambu Lab is abusing the open source social contract

https://www.jeffgeerling.com/blog/2026/bambu-lab-abusing-open-source-social-contract/
1275•rubenbe•19h ago•398 comments