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.

Restore full BambuNetwork support for Bambu Lab printers

https://github.com/FULU-Foundation/OrcaSlicer-bambulab
247•Murfalo•6h ago•104 comments

Googlebook

https://googlebook.google/
659•tambourine_man•10h ago•1113 comments

Starship V3

https://www.spacex.com/updates#starship-v3
138•fprog•2h ago•78 comments

My graduation cap runs Rust

https://ericswpark.com/blog/2026/2026-05-12-my-graduation-cap-runs-rust/
93•ericswpark•3h ago•26 comments

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

https://github.com/cactus-compute/needle
327•HenryNdubuaku•9h ago•117 comments

Kraftwerk's radical 1976 track

https://www.bbc.com/culture/article/20260511-kraftwerks-radical-1976-track-radioactivity-became-a...
87•tcp_handshaker•4h ago•27 comments

How to make your text look futuristic (2016)

https://typesetinthefuture.com/2016/02/18/futuristic/
246•_vaporwave_•7h ago•31 comments

CERT is releasing six CVEs for serious security vulnerabilities in dnsmasq

https://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2026q2/018471.html
262•chizhik-pyzhik•9h ago•121 comments

Why senior developers fail to communicate their expertise

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

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

https://github.com/tracewayapp/traceway
31•sebakubisz•1d ago•3 comments

Referer Reality

https://www.robinsloan.com/lab/referer/
16•tobr•2d ago•1 comments

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

https://blog.cloudflare.com/quic-death-spiral-fix/
32•sbulaev•4h ago•1 comments

Tell NYT, Atlantic, USA Today to keep Wayback Machine

https://www.savethearchive.com/newsleaders/
221•doener•4h ago•53 comments

Rendering the Sky, Sunsets, and Planets

https://blog.maximeheckel.com/posts/on-rendering-the-sky-sunsets-and-planets/
428•ibobev•14h ago•37 comments

Quack: The DuckDB Client-Server Protocol

https://duckdb.org/2026/05/12/quack-remote-protocol
221•aduffy•10h ago•48 comments

The vi family

https://lpar.ATH0.com/posts/2026/05/the-vi-family/
10•hggh•6d ago•2 comments

Fc, a lossless compressor for floating-point streams

https://github.com/xtellect/fc
31•enduku•2d ago•7 comments

Reimagining the mouse pointer for the AI era

https://deepmind.google/blog/ai-pointer/
167•devhouse•10h ago•135 comments

Lanzaboote – NixOS Secure Boot

https://x86.lol/generic/2022/11/26/lanzaboote.html
59•evilmonkey19•3d ago•6 comments

The Future of Obsidian Plugins

https://obsidian.md/blog/future-of-plugins/
327•xz18r•12h ago•133 comments

Foucault's Order of Things Explained with Trading Cards [video]

https://www.youtube.com/watch?v=1TbHYjGvS68
25•surprisetalk•1d ago•16 comments

Launch HN: Voker (YC S24) – Analytics for AI Agents

https://voker.ai
44•ttpost•12h ago•19 comments

Show HN: Agentic interface for mainframes and COBOL

https://www.hypercubic.ai/hopper
62•sai18•10h ago•38 comments

Bambu Lab is abusing the open source social contract

https://www.jeffgeerling.com/blog/2026/bambu-lab-abusing-open-source-social-contract/
1141•rubenbe•13h ago•373 comments

Scrcpy v4.0

https://github.com/Genymobile/scrcpy/releases/tag/v4.0
61•xnx•7h ago•9 comments

EFF to 4th Circuit: Electronic Device Searches at the Border Require a Warrant

https://www.eff.org/deeplinks/2026/05/eff-fourth-circuit-electronic-device-searches-border-requir...
137•hn_acker•6h ago•19 comments

When life gives you lemons, write better error messages

https://wix-ux.com/when-life-gives-you-lemons-write-better-error-messages-46c5223e1a2f
122•luispa•4d ago•43 comments

Show HN: Statewright – Visual state machines that make AI agents reliable

https://github.com/statewright/statewright
83•azurewraith•13h ago•27 comments

Dead.Letter (CVE-2026-45185) – How XBOW found an unauthenticated RCE on Exim

https://xbow.com/blog/dead-letter-cve-2026-45185-xbow-found-rce-exim
65•fedek_•10h ago•34 comments

Show HN: Gigacatalyst – Extend your SaaS with an embedded AI builder

43•namanyayg•11h ago•17 comments