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•8mo ago

Comments

yxhuvud•8mo ago
Eww, pretending to support utf8 matchers while not supporting them at all was not pretty to see.
gitroom•8mo ago
Honestly that part bugs me, fake support is worse than no support imo
kayodelycaon•8mo 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•8mo 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•8mo 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•8mo 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.

Radicle: The Sovereign Forge

https://radicle.xyz
121•ibobev•3h ago•64 comments

Booting from a vinyl record (2020)

https://boginjr.com/it/sw/dev/vinyl-boot/
157•yesturi•5h ago•42 comments

AI is a horse (2024)

https://kconner.com/2024/08/02/ai-is-a-horse.html
264•zdw•3d ago•139 comments

Show HN: Whosthere: A LAN discovery tool with a modern TUI, written in Go

https://github.com/ramonvermeulen/whosthere
88•rvermeulen98•4h ago•28 comments

Proton Spam and the AI Consent Problem

https://dbushell.com/2026/01/22/proton-spam/
337•dbushell•9h ago•219 comments

I built a light that reacts to radio waves [video]

https://www.youtube.com/watch?v=moBCOEiqiPs
338•codetheweb•10h ago•77 comments

Updates to our web search products and Programmable Search Engine capabilities

https://programmablesearchengine.googleblog.com/2026/01/updates-to-our-web-search-products.html
155•01jonny01•6h ago•140 comments

Show HN: Zsweep – Play Minesweeper using only Vim motions

https://zsweep.com
9•oug-t•5d ago•5 comments

KORG phase8 – Acoustic Synthesizer

https://www.korg.com/us/products/dj/phase8/
14•bpierre•1h ago•12 comments

What has Docker become?

https://tuananh.net/2026/01/20/what-has-docker-become/
148•tuananh•3h ago•160 comments

Three RCEs in Ilias Learning Management System

https://srlabs.de/blog/breaking-ilias-part-2-three-to-rce
3•hack223•44m ago•0 comments

Flying with Photons: Rendering Novel Views of Propagating Light

https://anaghmalik.com/FlyingWithPhotons/
8•pillars•3d ago•3 comments

Show HN: isometric.nyc – giant isometric pixel art map of NYC

https://cannoneyed.com/isometric-nyc/
1136•cannoneyed•23h ago•208 comments

European Alternatives

https://european-alternatives.eu
142•s_dev•3h ago•36 comments

Replacing Protobuf with Rust to go 5 times faster

https://pgdog.dev/blog/replace-protobuf-with-rust
118•whiteros_e•7h ago•76 comments

GPTZero finds 100 new hallucinations in NeurIPS 2025 accepted papers

https://gptzero.me/news/neurips/
898•segmenta•1d ago•475 comments

Show HN: S2-lite, an open source Stream Store

https://github.com/s2-streamstore/s2
45•shikhar•1d ago•11 comments

AI Usage Policy

https://github.com/ghostty-org/ghostty/blob/main/AI_POLICY.md
374•mefengl•6h ago•187 comments

Presence in Death

https://rubinmuseum.org/presence-in-death/
43•tock•4h ago•8 comments

Microsoft mishandling example.com

https://tinyapps.org/blog/microsoft-mishandling-example-com.html
155•mrled•3h ago•55 comments

Tech Is Fun Again: The Tech Monoculture Is Finally Breaking

http://www.jasonwillems.com/technology/2025/12/17/Tech-Is-Fun-Again/
6•at1as•1h ago•0 comments

Capital One to acquire Brex for $5.15B

https://www.reuters.com/legal/transactional/capital-one-buy-fintech-firm-brex-515-billion-deal-20...
349•personjerry•19h ago•286 comments

Why does SSH send 100 packets per keystroke?

https://eieio.games/blog/ssh-sends-100-packets-per-keystroke/
589•eieio•21h ago•308 comments

I was banned from Claude for scaffolding a Claude.md file?

https://hugodaniel.com/posts/claude-code-banned-me/
645•hugodan•21h ago•564 comments

The state of modern AI text to speech systems for screen reader users

https://stuff.interfree.ca/2026/01/05/ai-tts-for-screenreaders.html
57•tuukkao•7h ago•22 comments

Qwen3-TTS family is now open sourced: Voice design, clone, and generation

https://qwen.ai/blog?id=qwen3tts-0115
669•Palmik•1d ago•206 comments

Douglas Adams on the English–American cultural divide over "heroes"

https://shreevatsa.net/post/douglas-adams-cultural-divide/
507•speckx•1d ago•505 comments

Why medieval city-builder video games are historically inaccurate (2020)

https://www.leidenmedievalistsblog.nl/articles/why-medieval-city-builder-video-games-are-historic...
193•benbreen•16h ago•125 comments

Your app subscription is now my weekend project

https://rselbach.com/your-sub-is-now-my-weekend-project
476•robteix•4d ago•324 comments

TI-99/4A: Leaning More on the Firmware

https://bumbershootsoft.wordpress.com/2026/01/17/ti-99-4a-leaning-more-heavily-on-the-firmware/
65•ibobev•4d ago•31 comments