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.

Residential proxies detected on White House network

https://layer3intel.com/blog/residential-proxies-white-house-network
219•Rasbora•1h ago•53 comments

Insects don't swarm at LED lights

https://www.birdsoutsidemywindow.org/2026/11/03/insects-dont-swarm-at-led-lights/
92•speckx•1h ago•47 comments

Ripple-65B Preview: U.S. Open-Weight SOTA on Agentic Coding

https://www.ricursive.com/ripple
139•Philpax•2h ago•52 comments

AI is forcing us to pay off 40 years of technical debt

https://spectrum.ieee.org/ai-in-cybersecurity-php2shell-vulnerability
956•pseudolus•9h ago•583 comments

A new Go API for JSON

https://go.dev/blog/jsonv2
150•olexsmir•3h ago•61 comments

Progress on provable inference for large language models

https://www.anthropic.com/research/provable-inference
145•ltononro•4h ago•72 comments

Qualcomm Cloud AI 100 Ultra – 150W AI Accelerator Card with 128GB at 548GB/s

https://www.qualcomm.com/data-center/products/cloud-ai-100-ultra
49•peter_d_sherman•1h ago•21 comments

Nvidia RTX Spark encrypted firmware slows inference speed to 35% on Linux

https://www.mindstudio.ai/blog/linux-nvidia-rtx-spark-laptop
558•novaRom•13h ago•253 comments

Show HN: After a decade of reversing, I got co-op working in DOS Wing Commander

https://fireflyk64.github.io/wcmulti/
49•daniel_rh•2h ago•4 comments

AR guitar with just a laptop and scissors

https://www.arguitar.com/
10•castlew•54m ago•3 comments

Launch HN: Kino AI (YC S23) – AI media manager and video editor

51•lukeigel•4h ago•24 comments

OpenAI to acquire Pierre Computer Company

https://openai.com/index/openai-to-acquire-pierre/
124•itunpredictable•6h ago•47 comments

Tencent Hy4

https://hy.tencent.ai/research/hy4
149•Philpax•7h ago•43 comments

AMD expects to outsell Intel in Q4 for the first time in history

https://www.tomshardware.com/pc-components/cpus/amd-expects-to-outsell-intel-in-q4-for-the-first-...
383•rbanffy•6h ago•123 comments

Ask HN: What Cryptography book do you recommend for reading with 10 year olds?

12•mike_richards•1d ago•15 comments

Conductor Is Joining Meta

https://www.conductor.build/announcement
49•kenrose•3h ago•26 comments

North Korean fake job interview led to $6.3B Binance heist

https://www.theregister.com/security/2026/11/03/north-korean-fake-job-interview-led-to-63b-binanc...
508•smalltech•7h ago•305 comments

Verification Is Not Knowledge: Science needs more than answers

https://blog.cosmos-institute.org/p/verification-is-not-knowledge
208•ersinesen•12h ago•123 comments

Incident with Pull Requests, Git Operations and Issues

https://www.githubstatus.com/incidents/smtdswd1h2w4
238•kevcampb•11h ago•119 comments

Show HN: I built a tool that prices a prebuilt PC part by part

https://pcdealcheck.com/
76•adlep•6h ago•52 comments

Tell HN: Gemini trains on chat history, even for subscribers (personal accounts)

571•jameslk•11h ago•147 comments

Have I befriended a murderer?

https://longreads.com/2026/11/03/murder-friendship-doubt/
82•gmays•3h ago•43 comments

Kimi K3.1 Pro model weights are out

https://huggingface.co/moonshotai/Kimi-K3.1-Pro
281•abrarthought•6h ago•78 comments

Guerrilla bike lanes: San Francisco makes illicit infrastructure permanent (2016)

https://99percentinvisible.org/article/guerrilla-bike-lanes-san-francisco-makes-illicit-infrastru...
217•zenincognito•6h ago•159 comments

Benchfmt.rs: Bringing Go's benchmarking and benchstat workflow to Rust

https://www.bwplotka.dev/2026/rust-microbenchmarks-benchstat/
25•witcher•3h ago•3 comments

If you're on Replit Pro, you have until November 8 to opt out of arbitration

https://readthediff.substack.com/p/replit-pro-arbitration-opt-out-november-8
21•MiguelSosa•56m ago•0 comments

From wild to mild: Friendly foxes show changes in brain region

https://news.cornell.edu/stories/2026/11/wild-mild-friendly-foxes-show-changes-brain-region
18•gmays•3h ago•2 comments

Evergreen: A Provably Safe Systems Language

https://evergreenlang.net
87•jordan_bonecut•6h ago•79 comments

Everything is an AI scam now

https://www.davidralphlewis.co.uk/posts/everything-is-an-ai-scam-now/
58•speckx•43m ago•16 comments

Kitty 0.50

https://sw.kovidgoyal.net/kitty/changelog/#
348•porridgeraisin•12h ago•214 comments