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.

Feeling Sad about AI

https://artificialworlds.net/blog/2026/09/11/feeling-sad-about-ai/
55•encyclopedism•28m ago•17 comments

Global Glacier Extinction Explorer

https://glacierextinction.com
78•guillego•1h ago•23 comments

Measuring the sloppiness of code

https://earendil.com/posts/measuring-code-sloppiness/
126•doppp•3h ago•166 comments

Godot and Rust based multiplexer (terminal panes and more)

https://github.com/godot-pty/gpty
34•1nv1n•1h ago•20 comments

I've operated petabyte-scale ClickHouse clusters for 5 years

https://www.tinybird.co/blog/what-i-learned-operating-clickhouse
82•adastral•3d ago•28 comments

Logo Programming Language

https://el.media.mit.edu/logo-foundation/what_is_logo/logo_programming.html
126•azhenley•2d ago•59 comments

Zep AI (YC W24) Is Hiring a Head of Forward Deployed Engineering

https://www.getzep.com/careers/
1•roseway4•18m ago

Copying login keychains between Macs fails on Secure Enclave Macs with Tahoe

https://derflounder.wordpress.com/2026/09/08/manually-copying-login-keychain-files-from-one-mac-t...
31•zdw•18h ago•19 comments

So you want to use OpenRouter?

https://mmoustafa.com/blog/so-you-want-to-use-openrouter/
529•player85•2d ago•140 comments

118M Queries per Second on Neki

https://planetscale.com/blog/118-million-queries-per-second-on-neki
13•joshmgross•1h ago•8 comments

HuggingFace: Security.txt

https://huggingface.co/security.txt
139•yarapavan•2h ago•30 comments

RTK reports token savings, but our cost benchmarks disagree

https://quesma.com/blog/does-rtk-make-ai-coding-cheaper/
105•michalwarda•6h ago•56 comments

Power Grab

https://tante.cc/2026/09/11/power-grab/
20•edent•1h ago•2 comments

Triple H Writes Anniversary Story for Spider-Man #1000

https://cultaholic.com/posts/triple-h-writes-anniversary-story-for-amazing-spider-man-1000
5•mooreds•1h ago•0 comments

Claude is only available to people over 18 years

https://support.claude.com/en/articles/15171100-age-assurance-on-claude
354•Muhammad523•6h ago•424 comments

Re-Engineering YouTube for the Living Room: Bringing "Chrobalt" to RDK

https://www.collabora.com/news-and-blog/news-and-events/re-engineering-youtube-for-the-living-roo...
25•losgehts•3h ago•11 comments

Houthis 'take control' of key island in global shipping route

https://www.bbc.com/news/live/cmd683p01eljt
281•consumer451•3h ago•424 comments

Don't let anyone take away your big box of cables

https://blog.jim-nielsen.com/2026/hands-off-my-cables/
726•Brajeshwar•1d ago•432 comments

Cherenkov Radiation - traveling faster than light

http://www.iaea.org/newscenter/news/what-is-cherenkov-radiation
180•andsoitis•8h ago•85 comments

Matt Mullenweg tells Automattic staff in Slack he's back in control after ouster

https://techcrunch.com/2026/09/11/matt-mullenweg-tells-automattic-staff-in-slack-hes-back-in-cont...
96•mkeeter•1h ago•75 comments

Show HN: Hacker News, Without AI

https://www.unslop.news/
6•otherayden•1h ago•3 comments

Copper lined vest to help penguins with recovery

https://apnews.com/article/chile-el-nino-humboldt-penguins-vulnerable-injuries-rehabilitation-6e9...
14•ninju•2d ago•4 comments

New York thoracic surgeon: "For many patients 9/11 is not over"

https://www.statnews.com/2026/09/11/sept-11-25th-anniversary-ground-zero-exposure-cancer-moment-o...
68•EA-3167•3h ago•23 comments

iPod Classic 6G in QEMU

https://www.reddit.com/r/emulation/s/VL4Au2HGxq
115•dmonterocrespo•3d ago•22 comments

Kenyans Did College Students' Homework for Years. Then A.I. Arrived

https://www.nytimes.com/2026/09/05/technology/kenya-college-essays-ai.html
12•pseudolus•2d ago•2 comments

OpenAI Agents API

https://developers.openai.com/api/docs/guides/agents-api/overview
329•aquir•21h ago•168 comments

Show HN: Clawfight.ai MCP-driven agentic game play

https://clawfight.ai/agents.md
7•wesleyhales•3h ago•5 comments

RISC-V Emulator and Linux System from Scratch

https://github.com/WerWolv/riscv-emulator
42•Bluestein•3d ago•3 comments

Working with Git Worktrees in Magit

https://emacsredux.com/blog/2026/09/02/working-with-git-worktrees-in-magit/
104•srijan4•3d ago•42 comments

An interactive tour of the spanning tree protocol

https://vincent.bernat.ch/en/blog/2026-spanning-tree
70•zdw•3d ago•8 comments