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.

Boot a Virtual iPhone via Apple's Virtualization.framework

https://github.com/Lakr233/vphone-cli
84•hentrep•2h ago•23 comments

Does the Sumerian King List Align with Paleoclimate Events?

https://www.vectorian.be/articles/2026-06-07/sumerian-king-list-paleoclimate-alignment-explorer/
46•dev_l1x_be•2h ago•10 comments

GUIs should be fully keyboard-driven

https://ckardaris.com/blog/2026/08/28/keyboard-driven-guis.html
621•ckardaris•10h ago•309 comments

9th Circuit sides with states in Kalshi gambling fight

https://azmirror.com/2026/08/28/9th-circuit-sides-with-states-in-kalshi-gambling-fight-potentiall...
44•hungryhobbit•2h ago•18 comments

Htmx 4.0

https://four.htmx.org/announcements/2026-08-28-htmx-4.0.0-is-released
539•rmsaksida•12h ago•128 comments

U.S. sanctions against the A/I Collective

https://www.inventati.org/
488•exiguus•13h ago•465 comments

PPWR lands another blow to an precarious tabletop industry

https://www.rascal.news/ppwr-lands-another-blow-to-an-already-precarious-tabletop-industry/
22•healsdata•2h ago•11 comments

Just the rumour of a bug is enough to find an exploit these days

https://anil.recoil.org/notes/rumour-is-the-exploit
263•avsm•10h ago•92 comments

StemDeck, a free, open-source and local AI stem separator

https://github.com/stemdeckapp/stemdeck
6•thclpr•36m ago•2 comments

Inception-style curved map for turn-by-turn directions

https://www.orbify.eu/demo/
434•smoser•13h ago•145 comments

Identifying fake cosmetics using AI

https://groverlab.org/hnbfpr/2026-08-26-ai-counterfeit-cosmetics.html
33•wgrover•3h ago•12 comments

Judge rules Trump administration’s blacklisting of Anthropic was illegal

https://www.nytimes.com/2026/08/27/technology/anthropic-government-blacklisting-ruling.html
532•jbegley•23h ago•396 comments

Curvature Beziers: Improving on a timeless recipe

https://acko.net/blog/curvature-beziers/
81•leephillips•4d ago•11 comments

I accidentally turned LLM memory into program analysis

https://pwning.systems/posts/llm-memory-program-analysis/
17•matt_d•2h ago•5 comments

The Twelve-Factor App (2025)

https://12factor.net/
225•jxmorris12•1d ago•121 comments

GLM-5.3 is now open-weight

https://huggingface.co/zai-org/GLM-5.3
596•jeudesprits•10h ago•209 comments

Processing in Memory: DRAM Is About to Do Math

https://ben3d.ca/blog/processing-in-memory
73•bhouston•2d ago•23 comments

Autonomous Mathematical Discovery in an Open-World Multi-Agent Environment

https://arxiv.org/abs/2608.23691
84•stephenchung•8h ago•20 comments

Luanti removed from Google Play due to baseless AI copyright notice

https://blog.luanti.org/2026/08/27/luanti-dmca-tracer-ai/
451•miniBill•19h ago•139 comments

Visual Analysis of Binary Files

https://binvis.io/#/
63•vismit2000•2d ago•18 comments

Show HN: Sesame - a local-first, open-source password manager

https://usesesame.app/
38•d0mkaaa•6h ago•42 comments

Verschlimmbesserung: The Word Your Software Updates Need

https://geekyschmidt.com/post/2026-08-25-verschlimmbesserung/
110•speckx•11h ago•71 comments

Attimet (YC F24) Is Hiring Members of Technical Staff – Engineering and Research

https://www.ycombinator.com/companies/attimet/jobs/6btZFDg-member-of-technical-staff-engineering
1•kbanothu•9h ago

Experiments with Plotter Art

https://sometimes.digital/posts/experiments-with-plotter-art/
6•surprisetalk•4d ago•0 comments

Aspirational Clownmaxxing and Joey's cadillac todo list

https://charlesleifer.com/blog/aspirational-clownmaxxing-and-joey-s-cadillac-todo-list/
25•farlight•6h ago•9 comments

EasyEffects can improve laptop speaker sound quality

https://www.osnews.com/story/145883/easyeffects-should-be-part-of-every-linux-distribution-and-de...
102•birdculture•10h ago•48 comments

Migrating to HTTPX2

https://github.com/openai/openai-python/blob/main/httpx2.md
186•tosh•14h ago•79 comments

An investigation into the state of corvid–human relations

https://www.audubon.org/magazine/are-crows-really-our-friends
115•speckx•13h ago•65 comments

State of the Map 2026

https://2026.stateofthemap.org/
145•lode•12h ago•51 comments

Global demand for sand spawned a worldwide boom in illegal mining (2015)

https://www.wired.com/2015/03/illegal-sand-mining/
57•EndXA•3d ago•24 comments