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

Comments

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

Ghostty is leaving GitHub

https://mitchellh.com/writing/ghostty-leaving-github
1586•WadeGrimridge•5h ago•501 comments

ChatGPT serves ads. Here's the full attribution loop

https://www.buchodi.com/how-chatgpt-serves-ads-heres-the-full-attribution-loop/
92•lmbbuchodi•1h ago•40 comments

Before GitHub

https://lucumr.pocoo.org/2026/4/28/before-github/
242•mlex•3h ago•64 comments

Claude system prompt bug wastes user money and bricks managed agents

https://github.com/anthropics/claude-code/issues/49363
43•thomashobohm•1h ago•12 comments

Carrot Disclosure: Forgejo

https://dustri.org/b/carrot-disclosure-forgejo.html
88•bo0tzz•2h ago•27 comments

OpenAI models coming to Amazon Bedrock: Interview with OpenAI and AWS CEOs

https://stratechery.com/2026/an-interview-with-openai-ceo-sam-altman-and-aws-ceo-matt-garman-abou...
174•translocator•5h ago•64 comments

Claude for Creative Work

https://www.anthropic.com/news/claude-for-creative-work
21•elsewhen•1h ago•14 comments

I won a championship that doesn't exist

https://ron.stoner.com/How_I_Won_a_Championship_That_Doesnt_Exist/
75•SEJeff•4h ago•53 comments

Intel Arc Pro B70 Review

https://www.pugetsystems.com/labs/articles/intel-arc-pro-b70-review/
104•zdw•4d ago•61 comments

Behavioral timescale synaptic plasticity rewires the brain after an experience

https://www.quantamagazine.org/a-new-type-of-neuroplasticity-rewires-the-brain-after-a-single-exp...
53•ibobev•1d ago•0 comments

GitHub RCE Vulnerability: CVE-2026-3854 Breakdown

https://www.wiz.io/blog/github-rce-vulnerability-cve-2026-3854
238•bo0tzz•8h ago•59 comments

CJIT: C, Just in Time

https://dyne.org/cjit/
85•smartmic•5h ago•25 comments

Your phone is about to stop being yours

https://keepandroidopen.org/en/
950•doener•9h ago•464 comments

Who owns the code Claude Code wrote?

https://legallayer.substack.com/p/who-owns-the-claude-code-wrote
243•senaevren•13h ago•285 comments

Warp is now open-source

https://www.warp.dev/blog/warp-is-now-open-source
149•meetpateltech•9h ago•51 comments

I have officially retired from Emacs

https://nullprogram.com/blog/2026/04/26/
177•Fudgel•2d ago•112 comments

Localsend: An open-source cross-platform alternative to AirDrop

https://github.com/localsend/localsend
732•bilsbie•13h ago•229 comments

Patch applies fake diffs from commit messages

https://samizdat.dev/phantom-patch/
76•reconquestio•1d ago•22 comments

APL\? (1990)

https://dl.acm.org/doi/epdf/10.1145/97811.97845
19•tosh•4d ago•6 comments

A playable DOOM MCP app

https://chrisnager.com/blog/doom-runs-in-chatgpt-and-claude/
76•chrisnager•5h ago•28 comments

Show HN: Drive any macOS app in the background without stealing the cursor

https://github.com/trycua/cua
51•frabonacci•9h ago•22 comments

Infisical (YC W23) Is Hiring Full Stack Software Engineers (Remote)

https://jobs.ashbyhq.com/infisical/782b9da8-20e1-48b2-919e-6c5430c58628
1•vmatsiiako•8h ago

VibeVoice: Open-source frontier voice AI

https://github.com/microsoft/VibeVoice
316•tosh•13h ago•168 comments

UAE to leave OPEC

https://www.ft.com/content/8c354f2d-3e66-47f1-aad4-9b4aa30e386d
328•bazzmt•12h ago•460 comments

Waymo in Portland

https://waymo.com/blog/shorts/waymo-in-portland/
244•xnx•6h ago•361 comments

An update on GitHub availability

https://github.blog/news-insights/company-news/an-update-on-github-availability/
313•salkahfi•15h ago•208 comments

Talkie: a 13B vintage language model from 1930

https://talkie-lm.com/introducing-talkie
639•jekude•1d ago•259 comments

Claude.ai unavailable and elevated errors on the API

https://status.claude.com/incidents/9l93x2ht4s5w
267•shorsher•7h ago•223 comments

Drone pilot makes US rescind no-fly zones around unmarked, moving ICE vehicles

https://arstechnica.com/gadgets/2026/04/no-fly-zones-around-moving-ice-vehicles-this-drone-pilot-...
170•Bender•4h ago•57 comments

Show HN: Live Sun and Moon Dashboard with NASA Footage

https://www.lumara-space.app/
158•beeswaxpat•11h ago•56 comments