frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•9mo ago

Comments

yxhuvud•8mo ago
Eww, pretending to support utf8 matchers while not supporting them at all was not pretty to see.
gitroom•8mo ago
Honestly that part bugs me, fake support is worse than no support imo
kayodelycaon•8mo 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•8mo 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•8mo 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•8mo 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.

Celebrities say they are being censored by TikTok after speaking out against ICE

https://www.pride.com/culture/celebrities/tiktok-censoring-megan-stalter-and-finneas
111•saubeidl•44m ago•30 comments

Heathrow scraps liquid container limit

https://www.bbc.com/news/articles/c1evvx89559o
264•robotsliketea•3d ago•370 comments

Kimi Released Kimi K2.5, Open-Source Visual SOTA-Agentic Model

https://www.kimi.com/blog/kimi-k2-5.html
188•nekofneko•4h ago•59 comments

A list of fun destinations for telnet

https://telnet.org/htm/places.htm
100•tokyobreakfast•6h ago•18 comments

The Universal Pattern Popping Up in Math, Physics and Biology

https://www.quantamagazine.org/in-mysterious-pattern-math-and-nature-converge-20130205/
30•kerim-ca•4d ago•3 comments

The hidden engineering of runways

https://practical.engineering/blog/2026/1/20/the-hidden-engineering-of-runways
314•crescit_eundo•6d ago•71 comments

Apple introduces new AirTag with longer range and improved findability

https://www.apple.com/newsroom/2026/01/apple-introduces-new-airtag-with-expanded-range-and-improv...
444•meetpateltech•20h ago•532 comments

ChatGPT Containers can now run bash, pip/npm install packages and download files

https://simonwillison.net/2026/Jan/26/chatgpt-containers/
328•simonw•15h ago•248 comments

There is an AI code review bubble

https://www.greptile.com/blog/ai-code-review-bubble
264•dakshgupta•18h ago•181 comments

AI code and software craft

https://alexwennerberg.com/blog/2026-01-25-slop.html
173•alexwennerberg•16h ago•91 comments

Windows 11's Patch Tuesday nightmare gets worse

https://www.windowscentral.com/microsoft/windows-11/windows-11s-botched-patch-tuesday-update-nigh...
297•01-_-•19h ago•212 comments

Dithering – Part 2: The Ordered Dithering

https://visualrambling.space/dithering-part-2/
196•ChrisArchitect•14h ago•23 comments

JuiceSSH – Give me my pro features back

https://nproject.io/blog/juicessh-give-me-back-my-pro-features/
315•jandeboevrie•16h ago•134 comments

Russia using Interpol's wanted list to target critics abroad, leak reveals

https://www.bbc.com/news/articles/c20gg729y1yo
81•breve•3h ago•27 comments

RIP Low-Code 2014-2025

https://www.zackliscio.com/posts/rip-low-code-2014-2025/
225•zackliscio•18h ago•107 comments

I let ChatGPT analyze a decade of my Apple Watch data, then I called my doctor

https://www.msn.com/en-us/news/technology/i-let-chatgpt-analyze-a-decade-of-my-apple-watch-data-t...
110•zdw•11h ago•107 comments

People who know the formula for WD-40

https://www.wsj.com/business/the-secret-society-of-people-who-know-the-formula-for-wd-40-e9c0ff54
150•fortran77•13h ago•226 comments

Knapsack Offline Internet Solution (satellite datacasting)

https://www.netfreedompioneers.org/knapsack-content-station/
20•us321•3d ago•8 comments

New York Times games are hard: A computational perspective

https://arxiv.org/abs/2509.10846
24•PaulHoule•4d ago•5 comments

Model Market Fit

https://www.nicolasbustamante.com/p/model-market-fit
55•nbstme•6d ago•11 comments

Over 36,500 killed in Iran's deadliest massacre, documents reveal

https://www.iranintl.com/en/202601255198
456•mhb•1d ago•222 comments

France Aiming to Replace Zoom, Google Meet, Microsoft Teams, etc.

https://twitter.com/lellouchenico/status/2015775970330882319
734•bwb•17h ago•602 comments

Porting 100k lines from TypeScript to Rust using Claude Code in a month

https://blog.vjeux.com/2026/analysis/porting-100k-lines-from-typescript-to-rust-using-claude-code...
209•ibobev•20h ago•129 comments

Television is 100 years old today

https://diamondgeezer.blogspot.com/2026/01/tv100.html
598•qassiov•19h ago•218 comments

Show HN: TetrisBench – Gemini Flash reaches 66% win rate on Tetris against Opus

https://tetrisbench.com/tetrisbench/
99•ykhli•15h ago•37 comments

The Adolescence of Technology

https://www.darioamodei.com/essay/the-adolescence-of-technology
188•jasondavies•17h ago•130 comments

All In – a small tool to check real buyin after decisions

https://www.cognu.app/all-in
6•anticlickwise•1w ago•6 comments

San Francisco Graffiti

https://walzr.com/sf-graffiti
184•walz•1d ago•194 comments

Fedora Asahi Remix is now working on Apple M3

https://bsky.app/profile/did:plc:okydh7e54e2nok65kjxdklvd/post/3mdd55paffk2o
533•todsacerdoti•16h ago•199 comments

Qwen3-Max-Thinking

https://qwen.ai/blog?id=qwen3-max-thinking
464•vinhnx•19h ago•408 comments