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.

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/
479•scottjg•20h ago•136 comments

A technical vision for the Haskell ecosystem

https://discourse.haskell.org/t/a-technical-vision-for-the-haskell-ecosystem/15078
113•cosmic_quanta•3h ago•39 comments

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

https://haddyalchaer.com/jepa
19•halcdev•43m ago•1 comments

AI unlocks Gödel's notebooks, said to contain hundreds of proved theorems

https://www.theguardian.com/science/2026/nov/13/kurt-godel-notebooks-ai-helps-unlock-hidden-disco...
110•bookofjoe•1h ago•9 comments

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

https://isometricsf.com/
16•juscha1•40m ago•6 comments

Lonewolf 0.3 – A standalone XMPP server written in Rust

https://github.com/lonewolf-im/lonewolf/releases/tag/v0.3.0
83•ortuman•4h ago•15 comments

Doomsday: Friday, 13 November, A.D. 2026 (1960)

https://www.science.org/doi/10.1126/science.132.3436.1291
357•voxleone•6h ago•254 comments

Palmfrets, Minnesota guitarist's invention, strikes a new chord

https://www.echopress.com/business/minnesota-guitarists-invention-strikes-a-new-chord
51•bookofjoe•3h ago•38 comments

Why Zig over C for Systems Programming

https://www.mtsoukalos.eu/2026/11/why-zig-over-c-for-systems-programming/
184•torutofu•4h ago•133 comments

"LibreOffice works 365 days a year. Just saying."

https://twitter.com/LibreOffice/status/2121205272479998268
414•mksaunders2•1h ago•144 comments

Brazil's Caixa insurer breach exposes names and tax IDs of all 7.6M customers

https://filemanager-cdn.mziq.com/published/3972906b-e50b-4f74-ab74-4d0d32125d11/9567a559-d20a-486...
131•dvaplima•2h ago•45 comments

Gnomon. Git for Postgres data, built for agents

https://github.com/bitsinfra/gnomon
7•shawkisukkar•1h ago•0 comments

CERN Built the Large Hadron Collider's Next-Gen Magnets

https://spectrum.ieee.org/large-hadron-collider-superconducting-magnets
31•marc__1•4h ago•2 comments

IceWM

https://ice-wm.org/
336•inatreecrown2•13h ago•189 comments

Elevated errors on claude.ai, Claude Code, and platform.claude.com

https://status.claude.com/incidents/nn11wk485zfn
456•__vivek•8h ago•362 comments

Jensen Huang resigns

https://apnews.com/article/nvidia-megaspeed-china-singapore-huang-5403f152a601cf82ce939f1d24fffa0f
3962•lldb•1d ago•3368 comments

Apify Security Incident

https://status.apify.com/incidents/sxd1dj5j6749
45•cynicalpeace•1h ago•8 comments

Rust 1.100

https://blog.rust-lang.org/2026/11/12/Rust-1.100.0/
853•mbStavola•23h ago•306 comments

Concurrent Shell Command Queues

https://emmer.dev/blog/concurrent-shell-command-queues/
4•speckx•1h ago•1 comments

Brave Search API now accepts agentic payments via the x402 protocol

https://brave.com/blog/search-api-agentic-payments/
235•sjdh76•15h ago•133 comments

North Korean hackers used fake video calls in $400M crypto hack, says FBI

https://www.bbc.com/news/articles/cqdj1ellpd70o
43•saikiran91•1h ago•11 comments

Show HN: Log every LLM call with tokens, cost, latency, and time to first token

https://github.com/garritfra/llmtee
3•garritfra•2d ago•0 comments

Switcher (2004)

https://folklore.org/Switcher.html
136•sammatilda•15h ago•41 comments

Show HN: My $300 embroidery machine needed a subscription, so I built my own app

https://github.com/simpsoka/zigzag
701•simpsoka•1d ago•226 comments

AI Is Destroying the Trust Between Writers and Readers

https://www.theatlantic.com/books/2026/11/ai-literary-scams-amazon/689391/
233•FinnLobsien•7h ago•123 comments

Gemini 4 Hydrogen and Orchestrator

https://antigravity.google/blog/gemini-4-hydrogen-in-google-antigravity/
488•jonbaer•23h ago•160 comments

Former Nvidia CEO Huang had a relationship with a second employee, sources say

https://www.reuters.com/technology/former-nvidia-ceo-huang-had-relationship-with-second-employee-...
426•jbredeche•22h ago•462 comments

EU Digital Identity Wallet rollout: every EU state on one board

https://myid.ie/business/eu-digital-wallet-tracker/
103•mooreds•3h ago•65 comments

Dwarf planet candidate appears which takes roughly 280 years to orbit our sun

https://www.smithsonianmag.com/smart-news/astronomers-found-a-mysterious-object-orbiting-far-beyo...
383•cybermango•23h ago•172 comments

Edge0-145B: Frontier AI Capabilities on Your Own Computer

https://edge0.ai/blog/introducing-edge0-145b-frontier-ai-capabilities-on-your-own-computer
326•sroussey•19h ago•98 comments