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

Comments

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

Changes to OpenTTD Distribution on Steam

https://www.openttd.org/news/2026/03/14/steam-changes
49•canpan•53m ago•13 comments

Show HN: Han – A Korean programming language written in Rust

https://github.com/xodn348/han
50•xodn348•1h ago•9 comments

Claude March 2026 usage promotion

https://support.claude.com/en/articles/14063676-claude-march-2026-usage-promotion
139•weldu•2h ago•84 comments

Anthropic invests $100M into the Claude Partner Network

https://www.anthropic.com/news/claude-partner-network
27•gmays•1h ago•6 comments

Learning Creative Coding

https://stigmollerhansen.dk/resume/learning-creative-coding/
13•ammerfest•55m ago•0 comments

Fedora 44 on the Raspberry Pi 5

https://nullr0ute.com/2026/03/fedora-44-on-the-raspberry-pi-5/
38•jandeboevrie•3h ago•6 comments

Marketing for Founders

https://github.com/EdoStra/Marketing-for-Founders
72•jimsojim•3h ago•15 comments

Bumblebee queens breathe underwater to survive drowning

https://www.smithsonianmag.com/science-nature/bumblebee-queens-breathe-underwater-to-survive-drow...
12•1659447091•2h ago•1 comments

Show HN: Ichinichi – One note per day, E2E encrypted, local-first

50•katspaugh•4h ago•19 comments

Library of Short Stories

https://www.libraryofshortstories.com/
15•debo_•2h ago•0 comments

Montana passes Right to Compute act (2025)

https://www.westernmt.news/2025/04/21/montana-leads-the-nation-with-groundbreaking-right-to-compu...
228•bilsbie•8h ago•197 comments

A Recursive Algorithm to Render Signed Distance Fields

https://pointersgonewild.com/2026-03-06-a-recursive-algorithm-to-render-signed-distance-fields/
23•surprisetalk•3d ago•3 comments

CSMWrap: Legacy BIOS booting on UEFI-only systems via SeaBIOS

https://github.com/CSMWrap/CSMWrap
24•_joel•4d ago•3 comments

Baochip-1x: What it is, why I'm doing it now and how it came about

https://www.crowdsupply.com/baochip/dabao/updates/what-it-is-why-im-doing-it-now-and-how-it-came-...
255•timhh•3d ago•42 comments

Offloading FFmpeg with Cloudflare

https://kentcdodds.com/blog/offloading-ffmpeg-with-cloudflare
12•heftykoo•4d ago•5 comments

An ode to bzip

https://purplesyringa.moe/blog/an-ode-to-bzip/
78•signa11•6h ago•50 comments

Show HN: GitAgent – An open standard that turns any Git repo into an AI agent

https://www.gitagent.sh/
81•sivasurend•9h ago•11 comments

Python: The Optimization Ladder

https://cemrehancavdar.com/2026/03/10/optimization-ladder/
244•Twirrim•4d ago•89 comments

MCP is dead; long live MCP

https://chrlschn.dev/blog/2026/03/mcp-is-dead-long-live-mcp/
92•CharlieDigital•3h ago•82 comments

Generalizing Knuth's Pseudocode Architecture From Algorithms to Knowledge

https://www.researchgate.net/publication/401189185_Towards_a_Generalization_of_Knuth%27s_Pseudoco...
24•isomorphist•3d ago•1 comments

Hostile Volume – A game about adjusting volume with intentionally bad UI

https://hostilevolume.com/
65•Velocifyer•4h ago•49 comments

An interactive presentation about the Grammar of Graphic

https://timeplus-io.github.io/gg-vistral-introduction/
3•gangtao•3d ago•0 comments

9 Mothers Defense (YC P26) Is Hiring in Austin

https://jobs.ashbyhq.com/9-mothers?utm_source=x8pZ4B3P3Q
1•ukd1•9h ago

Sunsetting Jazzband

https://jazzband.co/news/2026/03/14/sunsetting-jazzband
116•mooreds•5h ago•40 comments

It's time to move your docs in the repo

https://www.dein.fr/posts/2026-03-13-its-time-to-move-your-docs-in-the-repo
82•gregdoesit•3h ago•54 comments

Postgres with Builtin File Systems

https://db9.ai/
7•ngaut•1h ago•0 comments

Starlink militarization and its impact on global strategic stability

https://interpret.csis.org/translations/starlink-militarization-and-its-impact-on-global-strategi...
104•msuniverse2026•13h ago•135 comments

Megadev: A Development Kit for the Sega Mega Drive and Mega CD Hardware

https://github.com/drojaazu/megadev
114•XzetaU8•13h ago•7 comments

XML is a cheap DSL

https://unplannedobsolescence.com/blog/xml-cheap-dsl/
220•y1n0•10h ago•232 comments

1M context is now generally available for Opus 4.6 and Sonnet 4.6

https://claude.com/blog/1m-context-ga
1096•meetpateltech•1d ago•471 comments