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.

DeepSeek V4 Pro 0813

https://openrouter.ai/deepseek/deepseek-v4-pro-0813
700•explosion-s•8h ago•255 comments

Delta

https://zed.dev/blog/introducing-delta
352•khy•5h ago•117 comments

Tailscale Traces Database Corruption to 16y/o SQLite WAL-Reset Bug

https://tailscale.com/blog/sqlite-wal-reset-bug
747•ropbear•9h ago•127 comments

Qwen3.8-2.4T

https://huggingface.co/Qwen/Qwen3.8-2.4T-A95B
465•Philpax•9h ago•101 comments

Show HN: Ballet – Workflow automation that writes integrations against any API

https://www.ballet.dev/
5•danielkimber•9m ago•0 comments

Why Target Common Lisp for Code Generation?

http://funcall.blogspot.com/2026/08/why-vibe-code-in-lisp.html
14•oumua_don17•15h ago•10 comments

2026 Eclipse Webcams

https://jonty.github.io/2026_eclipse_webcams/
454•zoenolan•12h ago•124 comments

Tim King, AmigaDOS developer, has died

https://amiga-news.de/en/news/AN-2026-08-00070-EN.html
224•doener•10h ago•28 comments

HTML over WebSockets: real-time SPAs with barely any JavaScript

https://en.andros.dev/blog/ef4968f5/html-over-websockets-real-time-spas-with-barely-any-javascript/
132•redbell•7h ago•102 comments

Someone is running mass vulnerability scans, spoofing AI bots like ClaudeBot

https://knownagents.com/insights
221•gavinhking•10h ago•143 comments

I built a browser-native SysEx librarian for 80s/90s synthesizers

https://bipluk.com/
7•halfradaition•1h ago•3 comments

Grok 4.6

https://x.ai/news/grok-4-6
368•iLuddite•8h ago•375 comments

Happy 45th Birthday to the IBM PC and Model F/XT

https://sharktastica.co.uk/articles/pc-fxt-45
3•tart-lemonade•20m ago•0 comments

Launch HN: Discovered Materials (YC P26) – AI agents to discover new materials

https://discoveredmaterials.com/research/
111•advaith08•16h ago•20 comments

Why tiny JPEGs look different in Chrome

https://guillaumetech.github.io/posts/jpg-scaling-chrome/
243•gutechh•10h ago•57 comments

Build Wide, Ship Narrow

https://adapt.com/blog/build-wide-ship-narrow
4•ashumz•27m ago•0 comments

uBlock Origin Is Giving Up the Fight to Keep Ads Off Facebook

https://digitalescapetools.com/2026/08/ublock-origin-stops-chasing-facebook-ads.html
265•Markoff•12h ago•371 comments

Pixel Watch 5

https://blog.google/products-and-platforms/devices/pixel/pixel-watch-5/
92•ortusdux•7h ago•167 comments

Apple Leasing Program

https://www.apple.com/shop/apple-upgrade
5•MehrdadKhnzd•35m ago•0 comments

Reflex (YC W23) Is hiring Growth and GTM Roles

https://www.ycombinator.com/companies/reflex/jobs/71x5GFb-growth-engineer
1•apetuskey•7h ago

Process as a Proxy for Motivation

https://bengodfrey.dev/blog/process/
9•sudo-bendg•2h ago•1 comments

A Tale of Dynamic Programming (2022)

https://iagoleal.com/posts/dynamic-programming/
61•Brajeshwar•3d ago•3 comments

Debugging Information for Inlined Functions

https://lwn.net/Articles/1083985/
15•pykello•3d ago•0 comments

Principia Mathematica is modern and insightful

https://okmij.org/ftp/Computation/Impressions/PrincipiaMathematica.html
6•matt_d•44m ago•0 comments

Breaking the WAL

https://antithesis.com/blog/2026/wal-reset-bug/
43•wwilson•4h ago•31 comments

Grok 4.6 scores 61 on the Artificial Analysis Intelligence Index

https://artificialanalysis.ai/articles/grok-4-6-benchmarks-and-analysis
305•wertyk•7h ago•308 comments

Lovable raises $400M Series C

https://lovable.dev/blog/series-c
88•thoughtpeddler•7h ago•81 comments

Shade Map

https://shademap.app
135•fredley•11h ago•38 comments

AI is removing the middle class of software engineering?

https://blog.florianherrengt.com/ai-removing-middle-class-software-engineering.html
679•florianherrengt•10h ago•606 comments

License plate reader searches should require a warrant

https://andrewpwheeler.com/2026/08/12/license-plate-reader-searches-should-require-a-warrant/
530•apwheele•9h ago•325 comments