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.

Toyota, Nissan, and Honda to standardize parts to lower costs

https://www.caranddriver.com/news/a74490092/toyota-nissan-honda-standardize-parts-lower-costs/
211•zdw•2h ago•105 comments

Pill to treat pancreatic cancer hailed as 'biggest breakthrough in decades'

https://www.theguardian.com/society/2026/nov/20/pill-pancreatic-cancer-breakthrough-daraxonrasib
854•rafaelc•1d ago•196 comments

Lean verification of the Riemann Hypothesis

https://leanprover-community.github.io/blog/posts/riemann-hypothesis/
938•g-b-r•15h ago•799 comments

Sandwich Simulator

https://stulle.app/
131•subdomain•6h ago•52 comments

Inkling-2-Mini in 5.4 GB Memory

https://github.com/ShinMegamiBoson/lookatmyquant
421•k__•12h ago•106 comments

Data Processing Incidents on Inference Providers

https://openrouter.ai/blog/announcements/data-processing-incidents-on-inference-providers/
83•sdko•4h ago•30 comments

Detonating a pile of lead azide

https://www.science.org/content/blog-post/detonating-huge-pile-lead-azide-really
579•beginning_end•16h ago•377 comments

Getting the mind to steer the body to steer you

https://notnottalmud.substack.com/p/getting-the-mind-to-steer-the-body
224•jger15•1d ago•70 comments

PcapAnalyzer – self-hosted pcap analyzer with 27 problem detectors

https://github.com/sebaandrada-cell/PcapAnalyzer
96•sebaandrada•8h ago•9 comments

My monitor was cutting my download speed by 75%

https://blog.tymscar.com/posts/studiodisplayethernet/
545•soheilpro•19h ago•264 comments

The Most Popular Car Colors in America

https://www.iseecars.com/most-popular-car-colors-study
20•cisc•3h ago•28 comments

The Mythology of Conscious AI

https://www.noemamag.com/the-mythology-of-conscious-ai/
24•Anon84•4h ago•55 comments

Leonida – PC Recompilation of the Xbox Version of GTA 6

https://github.com/ItsNotRexed/Leonida
115•ebrahimh•5h ago•75 comments

Split Radiance Cascades

https://www.jacktollenaar.top/articles/split-rc.html
8•ibobev•2d ago•0 comments

Upload2Shell (CVE-2026-125396)

https://pwn.ai/upload2shell
103•f311a•11h ago•47 comments

Pandex – Official European Law for AI Agents, over MCP

https://www.pandex.io
60•vasie•9h ago•11 comments

Together.ai: Prompt Leakage for Requests

https://www.together.ai/blog/security-event-prompt-leakage-for-requests-in-june-and-july-of-2026
15•Fe2O3•3h ago•7 comments

Shaping the Loops, Closing the Loops

https://revyl.com/blog/pattern-engineering/
20•based0x10•3d ago•8 comments

Pion Interceptor: WebRTC for Hackers

https://pion.ly/blog/pion-interceptor-webrtc-for-hackers/
3•Sean-Der•3d ago•0 comments

LLMs can read and write executables byte by byte from a hex dump

https://sgiannopoulos.github.io/blog/machine-code-programming/
225•fortran77•3d ago•146 comments

Why there are still no non-WebKit browsers on iOS

https://blog.mozilla.org/en/mozilla/internet-policy/apple-ios-browser-engine-rules/
539•lapcat•1d ago•286 comments

Advice for the next 100 Rust GUIs

https://linebender.org/blog/next-100-guis/
126•raphlinus•9h ago•33 comments

Tasklet (YC P26) Is Hiring Product and Agent Infra Engineers

https://tasklet.ai/careers
1•mayop100•9h ago

Reaktiv Workbook – A spreadsheet where every cell is Python

https://workbook.bui.app/
5•buibuibui•3d ago•1 comments

GnuPG Security Advisory for GPGME

https://lists.gnupg.org/pipermail/gnupg-announce/2026q4/000517.html
247•gdgghhhhh•21h ago•98 comments

PostgreSQL Extensions in Go

https://jespino.github.io/gopgext/
134•valyala•13h ago•23 comments

Show HN: Zero C# – C# without a runtime or GC

https://onurgumus.github.io/zero-csharp/index.html
148•reverseblade2•14h ago•104 comments

Ask HN: I have been unemployed for 2y. 15 years of experience, US. What to do?

663•LetThingsBeDiff•1d ago•758 comments

Exponential Behavior in Magic: The Gathering

https://levineuwirth.org/essays/exponential-magic/
105•neuwirth•3d ago•68 comments

Unit-testing in the Ü programming language

https://panzerschrek.github.io/U-00DC-Sprache-site/2026/11/18/unit-testing.html
9•Panzerschrek•2d ago•2 comments