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.

Ggml v1.0.0

https://github.com/ggml-org/ggml/releases/tag/v1.0.0
198•cobychapple•5h ago•32 comments

Nvidia allegedly engineered scarcity by funding AI startups to buy its GPUs

https://www.techpowerup.com/354814/nvidia-allegedly-engineered-scarcity-by-funding-ai-startups-to...
419•speckx•4h ago•221 comments

Terminal borders that don't cost a cell

https://www.joshka.net/cell-borders/
208•vinhnx•8h ago•86 comments

FAA issues national ground stop – lifted 4.5 hours later

https://www.nbcnews.com/news/us-news/faa-orders-nationwide-ground-stop-departing-flights-reasons-...
1505•zulln•10h ago•1147 comments

Unsloth Qwen3.8-27B Quantizations – Dynamic v3.1 Update

https://unsloth.ai/docs/models/qwen3.8
106•Retro_Dev•7h ago•20 comments

What happened to 3Com?

https://dfarq.homeip.net/what-happened-to-3com/
120•gvieri•7h ago•63 comments

Show HN: Live map of U.S. flights during tonight's FAA nationwide ground stop

https://grounds.top/
127•gvsi•8h ago•15 comments

Live airband on all frequencies from KORS. Victoria, CA also ground stopped

https://orcasairband.com/
255•mmaunder•9h ago•60 comments

Found: A protein that drives ageing without unleashing inflammation

https://www.nature.com/articles/d41586-026-03638-3
178•gumby•12h ago•27 comments

FM-1 Workbench

https://open.m-vave.com/fm1-workbench
225•simonebrunozzi•12h ago•154 comments

Jonathan Blow – If AI solved coding, why is my software still the same? [video]

https://www.youtube.com/watch?v=IRK8h67ol7Q
257•helloplanets•16h ago•264 comments

After 600 experiments, here's what I discovered about JEPA world models

https://haddyalchaer.com/jepa
248•halcdev•13h ago•40 comments

Extending LLDB to Debug Applications That Span CPUs and GPUs

https://engineering.fb.com/2026/11/09/developer-tools/extending-lldb-to-debug-applications-that-s...
4•JDevlieghere•3d ago•0 comments

Nvidia director sold nearly $1B in stock weeks before the Jensen Huang scandal

https://finance.yahoo.com/markets/stocks/articles/nvidia-director-sold-nearly-1b-160000846.html
200•LopRabbit•5h ago•42 comments

How Not to Build a Music Player

https://alichraghi.github.io/blog/how-not-to-build-a-music-player/
83•vinhnx•8h ago•36 comments

Elephants found to be increasingly isolated leading to fractured social networks

https://today.ucsd.edu/story/elephants-found-to-be-increasingly-isolated-leading-to-fractured-soc...
120•gmays•5h ago•21 comments

Monkey Island: all 13 versions side by side

https://monkeyisland.pages.dev/
14•maximilianburke•3h ago•2 comments

Perplexity Decider v1.3: Training, eval, and use cases

https://www.perplexity.ai/hub/blog/perplexity-decider
122•gmays•12h ago•21 comments

Show HN: Isometric SF – A pixel-art map of the SF Bay Area

https://isometricsf.com/
200•juscha1•13h ago•69 comments

Amtrak booking system experiencing major issues amid nationwide FAA ground stop

https://www.fox5dc.com/news/amtrak-outage-ticket-booking-faa-ground-stop-november-13-2026
161•snow_mac•6h ago•50 comments

Live-migration support in FreeBSD and bhyve coming

https://gyptazy.com/blog/freebsd-bhyve-live-migration-support-rfc/
95•JohnDohnBohn•11h ago•23 comments

A technical vision for the Haskell ecosystem

https://discourse.haskell.org/t/a-technical-vision-for-the-haskell-ecosystem/15078
198•cosmic_quanta•17h ago•107 comments

Minnesota guitarist's "palmfrets" invention strikes a new chord

https://www.echopress.com/business/minnesota-guitarists-invention-strikes-a-new-chord
162•bookofjoe•16h ago•94 comments

Reverse engineering my Coway air purifier to ditch the cloud

https://scottjg.com/posts/2026-11-11-reverse-engineering-my-coway-air-purifier-to-ditch-the-cloud/
736•scottjg•1d ago•211 comments

Philip Roth and David Remnick getting personal (2001)

https://salmagundi.skidmore.edu/articles/2001-philip-roth-david-remnick
14•Caiero•7h ago•0 comments

Security Agencies Worldwide Found to Use Ad-Based Surveillance System

https://citizenlab.ca/security-agencies-worldwide-found-to-use-ad-based-surveillance-system/
74•billybuckwheat•5h ago•5 comments

Autonomous (YC F25) is hiring MTS to build AI agents that manage your wealth

https://atg.science/careers
1•dkobran•10h ago

The Other Nefertiti (2015)

https://alloversky.com/puzzlepieces/the-other-nefertiti
11•dmbche•2d ago•1 comments

Cabo Pulmo, John Steinbeck, and the village that wouldn't give up

https://blue-continuum.com/the-village-that-gave-back-its-sea
5•dnetesn•1d ago•1 comments

Ctrl+C, Ctrl+v, Ctrl+cve: Bypassing Android's Clipboard Read Security Measures

https://toninoble.com/post/ctrlc-ctrlv-ctrlcve
81•dethmasque•13h ago•37 comments