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.

Europe's new robotics unicorn: Germany's RobCo hits $1B valuation

https://techfundingnews.com/europes-new-robotics-unicorn-germanys-robco-hits-1b-valuation/
84•dachworker•1h ago•41 comments

Web Search API

https://developers.cloudflare.com/changelog/post/2026-10-02-introducing-web-search-api/
67•tosh•1h ago•29 comments

Apple and a Hacker's Future

https://stratechery.com/2026/apple-and-a-hackers-future/
66•maguay•2h ago•29 comments

Denmark Data Breach Exposes 8.8M People's Personal Data

https://www.cpr.dk/cpr-nyt/nyhedsarkiv/2026/okt/omfattende-uautoriseret-adgang-til-borgeres-cpr-o...
221•clan•4h ago•174 comments

Press Release: Nobel Prize in Physiology or Medicine 2026

https://www.nobelprize.org/prizes/medicine/2026/press-release/
29•Anon84•1h ago•9 comments

Huawei and Qualcomm Announce Broad Patent License Agreement

https://www.huawei.com/en/news/2026/10/qualcomm-broad-patent-agreement
82•0xedb•4h ago•54 comments

Run Qwen 3.8 Flash Next (125B) on consumer hardware (RTX 4090) at 100T/s

https://github.com/Niko1221/Strata
831•snehesht•23h ago•366 comments

In the wake of Tippett Studios’ closure, a digital archive appears online

https://filmstories.co.uk/news/tippett-studios-in-the-wake-of-its-closure-a-digital-archive-of-an...
165•rdmuser•15h ago•19 comments

We ported the original Doom to SQL

https://cedardb.com/blog/sqldoom/
172•Vaslo•1d ago•23 comments

A browser-native classic Visual Basic VB6 IDE

https://wieslawsoltes.github.io/VB6/
280•wiso•17h ago•95 comments

The Tao of Backup

http://www.taobackup.com/index.html
171•vntok•3d ago•61 comments

Infidel goes wild

https://blog.zarfhome.com/2026/10/infidel-goes-wild
145•tobr•2d ago•26 comments

Gods in the Classroom: Religion and Education in First Millennium BCE Babylonia

https://www.cambridge.org/core/journals/iraq/article/gods-in-the-classroom-religion-and-education...
47•pseudolus•4d ago•23 comments

Type Safe Generic Data Structures in C

https://danielchasehooper.com/posts/typechecked-generic-c-data-structures/
14•AlexeyBrin•2d ago•0 comments

First Implantable Cochlear Implant Launches

https://spectrum.ieee.org/fully-implantable-cochlear-implant
23•rbanffy•3d ago•16 comments

Turn off Apple Intelligence on macOS 27 and get its disk space back

https://github.com/omlahore/RemoveMacAI
628•privacyisntdead•16h ago•422 comments

Tell HN: Bob Cringely has died

888•paveworld•1d ago•193 comments

Replacement of petroleum based products with plant-based materials (2025)

https://onlinelibrary.wiley.com/doi/10.1002/eng2.70108
79•thelastgallon•7h ago•41 comments

Decision models like Jev don't beat LLM-as-a-judge or traditional classifiers

https://developers.redhat.com/articles/2026/10/02/benchmarking-ai-decision-models-against-traditi...
91•tomncooper•2d ago•32 comments

Automating my 35mm film scanning pipeline

https://shannadige.com/blog/darkroom/
84•shannadige•1d ago•60 comments

Safe Optimistic Lock Coupling

http://databasearchitects.blogspot.com/2026/04/safe-optimistic-lock-coupling.html
27•greghn•3d ago•3 comments

Powerless F1 drivers frustrated by Bahrain F1 software glitch

https://www.motorsport.com/f1/news/horrible-totally-unacceptable-powerless-f1-drivers-frustrated-...
232•llm_nerd•10h ago•202 comments

Improper redaction reveals Google Data Center water and electricity usage

https://www.1011now.com/2026/09/30/more-questions-than-answers-about-lincolns-google-data-center-...
423•sensanaty•16h ago•556 comments

Lace and Labor: Lessons from the actual Luddites

https://articlesofinterest.substack.com/p/lace-and-labor
30•surprisetalk•4d ago•1 comments

Demystifying Tufte's data-ink ratio

https://tuftesrazor.scienceux.org/
54•s4074433•2d ago•25 comments

What is going on with ceiling fans

https://mcmansionhell.com/post/829127919552151552/what-is-going-on-with-ceiling-fans
334•colinprince•4d ago•287 comments

The Philadelphia Inquirer built Scrape, an AI tool to surface hyperlocal news

https://www.lenfestinstitute.org/solutions-resources/philadelphia-inquirer-scrape-ai-hyperlocal-n...
20•giuliomagnifico•3d ago•9 comments

Show HN: Glashütte Trash Clock – A 30-minute pendulum clock made from trash

https://niklasroy.com/gtc/
207•r0r0•3d ago•32 comments

Bill Draper has died

https://www.nytimes.com/2026/09/30/technology/william-draper-dead.html
128•bookofjoe•1d ago•39 comments

Self-hosted HTTP tunnels with SSH and Nginx

https://vincent.bernat.ch/en/blog/2026-http-over-ssh
156•renehsz•13h ago•34 comments