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

NPMX – a fast, modern browser for the NPM registry

https://npmx.dev
35•slymax•2h ago•13 comments

Show HN: Data Engineering Book – An open source, community-driven guide

https://github.com/datascale-ai/data_engineering_book/blob/main/README_en.md
105•xx123122•6h ago•8 comments

GPT-5.2 derives a new result in theoretical physics

https://openai.com/index/new-result-theoretical-physics/
413•davidbarker•9h ago•272 comments

Common Lisp Screenshots: today's CL applications in action

http://www.lisp-screenshots.org
54•_emacsomancer_•2d ago•10 comments

Building a TUI is easy now

https://hatchet.run/blog/tuis-are-easy-now
164•abelanger•10h ago•115 comments

Adventures in Neural Rendering

https://interplayoflight.wordpress.com/2026/02/10/adventures-in-neural-rendering/
10•ingve•3d ago•0 comments

Font Rendering from First Principles

https://mccloskeybr.com/articles/font_rendering.html
113•krapp•6d ago•15 comments

Gradient.horse

https://gradient.horse
151•microflash•4d ago•35 comments

The EU moves to kill infinite scrolling

https://www.politico.eu/article/tiktok-meta-facebook-instagram-brussels-kill-infinite-scrolling/
410•danso•7h ago•405 comments

gRPC: From service definition to wire format

https://kreya.app/blog/grpc-deep-dive/
103•latonz•4d ago•12 comments

What dating apps are optimizing. Hint: It isn't love

https://phys.org/news/2026-02-dating-apps-optimizing-hint-isnt.html
58•i7l•3h ago•20 comments

OpenAI has deleted the word 'safely' from its mission

https://theconversation.com/openai-has-deleted-the-word-safely-from-its-mission-and-its-new-struc...
398•DamnInteresting•6h ago•210 comments

Monosketch

https://monosketch.io/
734•penguin_booze•16h ago•130 comments

The Blurred Line Between Video Calling and Live Streaming Software

https://www.red5.net/blog/between-video-calling-and-live-streaming-software/
18•mondainx•4d ago•2 comments

I'm not worried about AI job loss

https://davidoks.blog/p/why-im-not-worried-about-ai-job-loss
198•ezekg•9h ago•339 comments

Stanford Review: Is YC for Cowards?

https://stanfordreview.org/is-yc-for-cowards/
20•hedgehog0•1h ago•4 comments

Show HN: I spent 3 years reverse-engineering a 40 yo stock market sim from 1986

https://www.wallstreetraider.com/story.html
56•benstopics•4d ago•22 comments

How did the Maya survive?

https://www.theguardian.com/news/2026/feb/12/apocalypse-no-how-almost-everything-we-thought-we-kn...
112•speckx•13h ago•90 comments

An AI Agent Published a Hit Piece on Me – More Things Have Happened

https://theshamblog.com/an-ai-agent-published-a-hit-piece-on-me-part-2/
287•scottshambaugh•3h ago•153 comments

Show HN: Skill that lets Claude Code/Codex spin up VMs and GPUs

https://cloudrouter.dev/
109•austinwang115•9h ago•29 comments

Advanced Aerial Robotics Made Simple

https://www.drehmflight.com
114•jacquesm•5d ago•9 comments

WolfSSL sucks too, so now what?

https://blog.feld.me/posts/2026/02/wolfssl-sucks-too/
90•thomasjb•18h ago•74 comments

CSS-Doodle

https://css-doodle.com/
138•dsego•20h ago•15 comments

The wonder of modern drywall

https://www.worksinprogress.news/p/the-wonder-of-modern-drywall
79•jger15•1d ago•135 comments

Faster Than Dijkstra?

https://systemsapproach.org/2026/02/09/faster-than-dijkstra/
113•drbruced•4d ago•68 comments

Green’s Dictionary of Slang - Five hundred years of the vulgar tongue

https://greensdictofslang.com/
94•mxfh•5d ago•14 comments

Fix the iOS keyboard before the timer hits zero or I'm switching back to Android

https://ios-countdown.win/
1345•ozzyphantom•14h ago•677 comments

Implementing Auto Tiling with Just 5 Tiles

https://www.kyledunbar.dev/2026/02/05/Implementing-auto-tiling-with-just-5-tiles.html
84•todsacerdoti•6d ago•15 comments

Show HN: Moltis – AI assistant with memory, tools, and self-extending skills

https://www.moltis.org
96•fabienpenso•1d ago•36 comments

Sandwich Bill of Materials

https://nesbitt.io/2026/02/08/sandwich-bill-of-materials.html
213•zdw•5d ago•25 comments