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.

Wine Ported to OpenBSD

https://marc.info/?l=openbsd-ports&m=179236125692175
118•iamnothere•1h ago•15 comments

Linux 7.3 Released

https://lwn.net/Articles/1101143/
461•cjd8•7h ago•194 comments

Timestral: Mistral release time-series foundation models

https://mistral.ai/news/timestral/
273•groar•5h ago•45 comments

Alternatives to Animal Testing Are Finally Taking Off

https://spectrum.ieee.org/alternatives-to-animal-testing
122•rbanffy•4h ago•27 comments

Let's Encrypt is adding two additional remote perspectives for domain validation

https://community.letsencrypt.org/t/lets-encrypt-is-adding-two-additional-remote-perspectives-for...
123•gslin•4h ago•36 comments

Show HN: KiviDB, a faster Redis-compatible memory database and vector cache

https://github.com/kividbio/kividb
24•murtazayusuf•1h ago•2 comments

ESA's Hera Will View Asteroid Scars from DART's Strike

https://spectrum.ieee.org/esa-hera-dimorphos-rendezvous
44•rbanffy•4h ago•0 comments

Show HN: Qwen3-4B with the AI writing tics trained out

https://100toolkit.com/blog/deslop-model/
89•erikkannike•2h ago•62 comments

Gdynia and the Dream of a Maritime Poland

https://engelsbergideas.com/notebook/gdynia-and-the-dream-of-a-maritime-poland/
72•lermontov•2d ago•17 comments

Maybe There Was an Egg Cartel After All

https://www.politico.com/news/magazine/2026/10/18/egg-prices-conspiracy-affordability-issue-01100411
45•iamnothere•50m ago•27 comments

A death, a plagiarism scandal and a quest for revenge: the tale of Otto Z

https://www.theguardian.com/news/ng-interactive/2026/oct/08/a-death-a-plagiarism-scandal-and-a-qu...
15•Hooke•2d ago•0 comments

Hybrid Reasoning Agents: LLM agents that think in latent space, act through text

https://arxiv.org/abs/2610.18861
473•allinonai•18h ago•225 comments

Beyond the Glass

https://longreads.com/2026/10/15/mother-museum-skulls-grief-agni/
10•Petiver•3d ago•0 comments

There's never been a better time to go into math (by: 3blue1brown) [video]

https://www.youtube.com/watch?v=LKrwhjOI8Nc
476•mdp2021•1d ago•627 comments

William Gibson and the trademarking of cyberspace

https://colo.to/cyberspace.html
237•Eric_Gullichsen•15h ago•110 comments

If you don't run your own LLM proxy, how do you know whats going on?

https://jrdsgl.com/if-you-dont-run-your-own-llm-proxy-how-the-fuck-do-you-even-know-whats-going-on/
256•amrrs•18h ago•175 comments

How to Train Your Robot

https://www.construction-physics.com/p/how-to-train-your-robot
106•crescit_eundo•4d ago•34 comments

Rabbits were a medieval royal luxury in England until the Black Death

https://phys.org/news/2026-10-rabbits-medieval-royal-luxury-england.html
119•samizdis•2d ago•113 comments

Someone behind the software

https://karrisaarinen.com/posts/someone-behind-the-software/
511•tosh•22h ago•185 comments

Dogs seem to agree with humans that 'bouba' is round and 'kiki' is spiky

https://www.sciencealert.com/dogs-seem-to-agree-with-humans-that-bouba-is-round-and-kiki-is-spiky
311•gmays•1d ago•177 comments

Laptop Based on 6502 CPU

https://www.maddox.pro/?p=448
178•nanochess•3d ago•87 comments

RepRapMicron

https://github.com/VikOlliver/RepRapMicron/wiki
430•RobotToaster•1d ago•67 comments

The DNS Museum

https://dns.museum
116•zdw•2d ago•15 comments

How Quickly Can the DoD Rebuild and Recast the Munitions Industrial Base?

https://www.csis.org/analysis/how-quickly-can-dod-rebuild-and-recast-munitions-industrial-base
115•gmays•15h ago•170 comments

Harness2 by Google Research – Recursive Agent Harnessing

https://github.com/google-research/harness2
46•irthomasthomas•3h ago•10 comments

Tmux and Claude Code: Sessions, Send-Keys, and the Ceiling

https://crystl.dev/guides/tmux-for-ai-agents/
107•ankitg12•9h ago•75 comments

Superlite: A Faster Alternatie to Superpowers

https://contextfirst.blog/superlite-hand-an-agent-a-spec/
128•iheatuchriswogu•13h ago•58 comments

Free Pascal compiler now supports dynamic packages

https://www.getlazarus.org/dynamic/
186•sysrpl•20h ago•44 comments

Show HN: WhatsApp MCP running free on Cloudflare

https://github.com/finereli/whatsapp-mcp
139•zoozla•17h ago•70 comments

I built a programming language that LLMs can't use

https://blog.picheta.me/post/killswitch-lang/
251•dom96•1d ago•184 comments