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.

Tailcat – Like netcat, but over Tailscale’s data plane

https://github.com/tailscale/tailcat
332•nderjung•3h ago•57 comments

GLM-5.3-Flash

https://z.ai/blog/glm-5.3-flash
745•Philpax•7h ago•362 comments

Dallas startup enriches Uranium

https://www.actinideinc.com/press/actinide-becomes-first-startup-to-ever-enrich-natural-uranium-t...
92•dsalzman•1h ago•39 comments

AWS Acquires DuckLabs

https://ducklabs.com/news/2026/08/26/ducklabs-to-join-aws
885•onderkalaci•8h ago•261 comments

An ongoing 3D-printer AGPL violation

https://lwn.net/SubscriberLink/1089390/46116614cc74b814/
198•Velocifyer•3h ago•96 comments

GitHub Outage Tracker: Is GitHub Cooked?

https://isgithubcooked.com/
61•toomanyrichies•1h ago•14 comments

Serve Markdown to AI Agents with Accept Headers

https://acceptmarkdown.com/
36•tilt•1h ago•10 comments

CoMaps: The Offline App That Guided Rescuers Without a Signal in Venezuela

https://hotosm.org/en/news/comaps-the-offline-app-that-guided-rescuers-without-a-signal-in-the-ve...
133•gedankenstuecke•3h ago•32 comments

Qwen3.8-Flash-Next

https://qwen.ai/blog?id=qwen3.8-flash-next
561•tosh•8h ago•182 comments

Nebula Sans

https://www.nebulasans.com
284•GavinAnderegg•6h ago•115 comments

FDA Approves First in Class Targeted Therapy for Metastatic Pancreatic Cancer

https://www.fda.gov/news-events/press-announcements/fda-approves-first-class-targeted-therapy-met...
104•leopoldj•4h ago•19 comments

Disruption with Some GitHub Services

https://www.githubstatus.com/incidents/hcbtzksccj2f
229•blimmer•5h ago•140 comments

Twitter Viewer – View Twitter Without Account

https://twitterwebviewer.com/
230•motownphilly•7h ago•112 comments

Tim Curry has died

https://www.theguardian.com/film/2026/aug/26/tim-curry-dies-rocky-horror-show-stephen-king-it-leg...
475•mykowebhn•5h ago•172 comments

IBM Unveils Next Generation Dual-Architecture Processor

https://newsroom.ibm.com/2026-08-24-ibm-unveils-next-generation-dual-architecture-processor-for-i...
11•porridgeraisin•45m ago•2 comments

Product Development is being Rewritten

https://revyl.com/blog/product-development-is-being-rewritten/
8•anamhira•44m ago•2 comments

Show HN: Every push-up becomes an attack in a camera-counted RPG game

https://pushup.quest/
5•not_wowinter13•29m ago•1 comments

What will be left for us to work on

https://ICML.cc/virtual/2026/invited-talk/67274
7•Cloudly•35m ago•1 comments

Taylor Farms: How One Company's Reach Became a National Risk

https://farmaction.us/taylorfarmsreport/
191•speckx•6h ago•133 comments

YouTube Format IDs

https://gist.github.com/MartinEesmaa/2f4b261cb90a47e9c41ba115a011a4aa
72•ksec•3h ago•30 comments

Just say something people want

https://www.gkogan.co/say-something-people-want/
10•gk1•9h ago•3 comments

It’s so hard to finish an idea that is not yours and is just suggested by AI

https://www.ssp.sh/brain/using-obsidian-with-ai/
130•zazuke•5h ago•75 comments

The Tariff Cost: analysis of the costs to Americans from new tariffs on Canada

https://thetariffcost.com/
118•mikestorrent•3h ago•113 comments

Show HN: We built the smallest dual-band aircraft tracker

https://pantsforbirds.com/the-worlds-smallest-dual-band-ads-b-receiver-module/
8•CoolNamesAllTkn•39m ago•1 comments

Proliferate (YC S25) Is Hiring

https://www.ycombinator.com/companies/proliferate/jobs/OgpCKYJ-founding-product-engineer
1•pablo24602•9h ago

mold: A Parallel Linker

https://arxiv.org/abs/2608.23228
8•matt_d•41m ago•0 comments

A Thread-Register Decoupled GPU Execution Model for Efficient Tensor Computation

https://arxiv.org/abs/2608.19628
13•matt_d•2h ago•0 comments

Stalking the Wily Hacker: 40 years later – Cliff Stoll [video]

https://www.youtube.com/watch?v=656058JxTM0
268•zoenolan•4d ago•85 comments

RAG Is Simpler Than You Think

https://www.lighthousenewsletter.com/p/rag-is-simpler-than-you-think
404•j0selit0•12h ago•175 comments

PageRank explained

https://praveshkoirala.com/2026/08/26/you-could-have-invented-pagerank/
102•pkoird•6h ago•76 comments