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•8mo 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.

Television is 100 years old today

https://diamondgeezer.blogspot.com/2026/01/tv100.html
263•qassiov•6h ago•77 comments

Qwen3-Max-Thinking

https://qwen.ai/blog?id=qwen3-max-thinking
349•vinhnx•5h ago•298 comments

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

https://tetrisbench.com/tetrisbench/
29•ykhli•2h ago•8 comments

Dithering – Part 2: The Ordered Dithering

https://visualrambling.space/dithering-part-2/
27•ChrisArchitect•1h ago•4 comments

Fedora Asahi Remix is now working on Apple M3

https://bsky.app/profile/did:plc:okydh7e54e2nok65kjxdklvd/post/3mdd55paffk2o
270•todsacerdoti•2h ago•87 comments

JuiceSSH – Give me my pro features back

https://nproject.io/blog/juicessh-give-me-back-my-pro-features/
101•jandeboevrie•2h ago•44 comments

MapLibre Tile: a modern and efficient vector tile format

https://maplibre.org/news/2026-01-23-mlt-release/
351•todsacerdoti•10h ago•69 comments

The mountain that weighed the Earth

https://signoregalilei.com/2026/01/18/the-mountain-that-weighed-the-earth/
57•surprisetalk•4h ago•9 comments

Find 'Abbey Road when type 'Beatles abbey rd': Fuzzy/Semantic search in Postgres

https://rendiment.io/postgresql/2026/01/21/pgtrgm-pgvector-music.html
51•nethalo•5d ago•13 comments

When AI 'builds a browser,' check the repo before believing the hype

https://www.theregister.com/2026/01/26/cursor_opinion/
84•CrankyBear•1h ago•26 comments

Not all Chess960 positions are equally complex

https://arxiv.org/abs/2512.14319
34•MaysonL•3d ago•11 comments

Google AI Overviews cite YouTube more than any medical site for health queries

https://www.theguardian.com/technology/2026/jan/24/google-ai-overviews-youtube-medical-citations-...
284•bookofjoe•6h ago•149 comments

Google Books removed all search functions for any books with previews

https://old.reddit.com/r/google/comments/1qn1hk1/google_has_seemingly_entirely_removed_search/
100•adamnemecek•2h ago•37 comments

There is an AI code review bubble

https://www.greptile.com/blog/ai-code-review-bubble
77•dakshgupta•5h ago•59 comments

Things I've learned in my 10 years as an engineering manager

https://www.jampa.dev/p/lessons-learned-after-10-years-as
464•jampa•5d ago•121 comments

OpenFlexure Microscope

https://openflexure.org/projects/microscope/
16•o4c•5d ago•2 comments

OSS ChatGPT WebUI – 530 Models, MCP, Tools, Gemini RAG, Image/Audio Gen

https://llmspy.org/docs/v3
91•mythz•5h ago•21 comments

San Francisco Graffiti

https://walzr.com/sf-graffiti
95•walz•10h ago•100 comments

What "The Best" Looks Like

https://www.kuril.in/blog/what-the-best-looks-like/
83•akurilin•4h ago•37 comments

The Hidden Engineering of Runways

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

The Holy Grail of Linux Binary Compatibility: Musl and Dlopen

https://github.com/quaadgras/graphics.gd/discussions/242
192•Splizard•13h ago•151 comments

Show HN: Only 1 LLM can fly a drone

https://github.com/kxzk/snapbench
113•beigebrucewayne•9h ago•67 comments

Exactitude in Science – Borges (1946) [pdf]

https://kwarc.info/teaching/TDM/Borges.pdf
71•jxmorris12•6h ago•22 comments

The browser is the sandbox

https://simonwillison.net/2026/Jan/25/the-browser-is-the-sandbox/
305•enos_feedler•15h ago•162 comments

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

https://twitter.com/lellouchenico/status/2015775970330882319
350•bwb•4h ago•291 comments

Notice of Collective Action Lawsuit Against Workday, INC

https://workdaycase.com
54•mooreds•2h ago•11 comments

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

https://simonwillison.net/2026/Jan/26/chatgpt-containers/
8•simonw•1h ago•2 comments

The Adolescence of Technology

https://www.darioamodei.com/essay/the-adolescence-of-technology
82•jasondavies•3h ago•51 comments

Text Is King

https://www.experimental-history.com/p/text-is-king
133•zdw•5d ago•65 comments

After two years of vibecoding, I'm back to writing by hand

https://atmoio.substack.com/p/after-two-years-of-vibecoding-im
551•mobitar•7h ago•410 comments