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.

Jailbreaking my car's navigation system just so I can change the time

https://blog.nns.ee/2026/11/02/renault-hack/
456•xx_ns•1d ago•176 comments

Stringman, an $800 open-source room scale gripper robot

https://neufangled.com/
175•nharada•4h ago•85 comments

Qwen 3.8 27B on my laptop can interpret model weights, too

https://simonwillison.net/2026/Nov/3/qwen-can-interpret-model-weights/
354•theanonymousone•3h ago•118 comments

Postman silently auto-installs AI plugins and attempts to share all API data

https://github.com/postmanlabs/postman-app-support/issues/14370
770•sidgarimella•3h ago•258 comments

Fujifilm to boost tape production 5x as AI fuels archiving demand

https://arstechnica.com/gadgets/2026/10/fujifilm-to-boost-tape-production-5x-as-ai-fuels-archivin...
315•bookofjoe•1d ago•127 comments

Introduction to Programming in ATS

https://ats-lang.sourceforge.net/DOCUMENT/INT2PROGINATS/HTML/book1.html
28•ibobev•1h ago•4 comments

Preparing for the Flipper One Kickstarter and opening pre-orders

https://flipper.net/pages/flipper-one
110•user_7832•1h ago•49 comments

Show HN: Kairos – Open-source risk and fraud decisioning platform

https://github.com/finic-ai/kairos
4•ayanb9440•4m ago•0 comments

Show HN: HackerTV – HN's most-recommended Youtube videos as 24/7 TV channels

https://hackertv.org
24•dsalzman•20h ago•7 comments

Japan's Jimi 'Mundane' Halloween Costumes of 2026

https://spoon-tamago.com/japan-jimi-mundane-halloween-costumes-2026/
16•zdw•1d ago•6 comments

Mac at Any Scale

https://namespace.so/blog/mac-at-any-scale
256•anner_•6h ago•141 comments

I dumped Apple’s word list

https://helgesver.re/articles/macos-vulgar-word-flags
92•speckx•48m ago•39 comments

The 'Astra can read and write weights to improve Qwen' post is misleading

https://honnibal.dev/blog/astra-read-write-misleading
807•syllogism•9h ago•186 comments

How McDonald's first got its start

https://www.smithsonianmag.com/history/story-how-mcdonalds-first-got-its-start-180960931/
7•bookofjoe•8h ago•0 comments

Ashby (YC W19) Is Hiring EMs

https://www.ashbyhq.com/careers?ashby_jid=695b1ce6-c375-4fad-94ef-61b50a3fbd28&utm_source=hn
1•abhikp•4h ago

Pratt parsing is a black box

https://vinipsmaker.github.io/blog/article/pratt-parsing-is-a-black-box/
14•ibobev•1h ago•6 comments

Writing seen in PHerc. 306B, for the first time in 2000 years

https://scrollprize.substack.com/p/writing-seen-in-pherc-306b-for-the
98•benbreen•1d ago•12 comments

Kalshi and its co-founders face felony charges for violating Utah gambling laws

https://arstechnica.com/tech-policy/2026/10/trump-admin-sues-utah-to-save-kalshi-from-the-states-...
368•rbanffy•5h ago•292 comments

We're Training a Figma-Fluent Editing Model

https://www.figma.com/blog/training-a-figma-fluent-editing-model/
18•gmays•2d ago•9 comments

Could a modern chess engine on a Pentium have defeated Kasparov in 1996?

https://nicholas.carlini.com/writing/2026/algorithmic-improvements-chess.html
395•markusw•13h ago•178 comments

USDB: Scaling Storage for Next-Generation Recommender Systems at ByteDance

https://arxiv.org/abs/2611.02618
33•1equalsequals1•4h ago•6 comments

Antimony: CAD Software Evolved from Lisp Machines and Not Drafting Tables (2015)

https://www.mattkeeter.com/projects/antimony/3/
81•pmkary•1d ago•42 comments

Google will turn off search for schools that reject AI

https://www.nytimes.com/2026/11/03/us/google-search-schools-restrict-ai.html
434•ceejayoz•5h ago•322 comments

Gitbook Breached

122•punchmesan•4h ago•28 comments

Tiny Basic for Arduino

https://dilshan.github.io/tiny-basic/
56•AlexeyBrin•6h ago•15 comments

macOS 27 does not support CoreStorage volumes

https://wadetregaskis.com/macos-27-golden-gate-does-not-actually-support-corestorage-or-hfs-volumes/
8•colejohnson66•1h ago•0 comments

OpenAI seems to be silently re-enabling model training on Codex chats

386•user052919•6h ago•118 comments

Queen of the Bagel Business

https://thehustle.co/originals/the-unlikely-queen-of-the-bagel-business
23•qi104104•1d ago•2 comments

How to write comparison content that doesn't age like milk

https://posthog.com/blog/comparison-content-guide
20•rbaudibert•3h ago•5 comments

Practice speaking Japanese with real YouTube videos, graded line by line

https://jivx.com/yt
59•momentmaker•6h ago•19 comments