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

SQLite is all you need for durable workflows

https://obeli.sk/blog/sqlite-is-all-you-need-for-durable-workflows/
135•tomasol•2h ago•65 comments

The dead economy theory

https://www.owenmcgrann.com/p/the-dead-economy-theory
337•WillDaSilva•4h ago•452 comments

Notes from the Mistral AI Now Summit in Paris

https://koenvangilst.nl/lab/mistral-ai-now-summit
218•vnglst•3h ago•53 comments

On Rendering Diffs

https://pierre.computer/writing/on-rendering-diffs
41•amadeus•52m ago•3 comments

Bijou64: A variable-length integer encoding

https://www.inkandswitch.com/tangents/bijou64/
173•justinweiss•4h ago•63 comments

Rothko for your current weather conditions

https://rothko.joonas.wtf/
51•jxmorris12•1h ago•6 comments

It's hard to justify buying a Framework 12

https://www.jeffgeerling.com/blog/2026/its-hard-to-justify-framework-12/
130•watermelon0•5h ago•225 comments

GTA 6 Developers Unionize

https://rockstarintel.com/gta-6-developers-announce-rockstar-games-union/
422•AndrewKemendo•4h ago•259 comments

Liquid AI reveals 8B-A1B MoE trained on 38T

https://www.liquid.ai/blog/lfm2-5-8b-a1b
57•simjnd•3h ago•11 comments

Show HN: TV Explorer. Adding advanced UI to free online TV

https://tvexplorer.live
45•dtagames•3h ago•7 comments

Letter from the Duke of Wellington to the British Foreign Office (1809)

https://wellsoc.org/society-member-pages/anecdotes-of-wellington/
21•backuprestore•2h ago•2 comments

CAPTCHAs can still detect AI agents

https://research.roundtable.ai/captchas-detect-ai/
50•timshell•4h ago•31 comments

Is AI causing a repeat of frontend’s lost decade?

https://mastrojs.github.io/blog/2026-05-23-is-AI-causing-a-repeat-of-frontends-lost-decade/
210•xyzal•8h ago•193 comments

CVE-Bench: testing LLM agents on real-world vulnerability patches

https://giovannigatti.github.io/cve-bench/
4•logickkk1•28m ago•1 comments

Robinhood now lets your AI agents trade stocks

https://techcrunch.com/2026/05/27/robinhood-now-lets-your-ai-agents-trade-stocks/
58•wapasta•2h ago•92 comments

High Density Living, 2000 Years Ago: Inside the Roman Apartment Building

https://commonedge.org/high-density-living-2000-years-ago-inside-the-roman-apartment-building/
127•surprisetalk•7h ago•43 comments

We should be more tired than the model

https://vickiboykis.com/2026/05/28/we-should-be-more-tired-than-the-model/
121•tosh•7h ago•99 comments

Shift will clean homes for free to train future robots

https://www.theverge.com/ai-artificial-intelligence/939765/ai-training-data-startup-shift-free-cl...
6•evilsimon•41m ago•4 comments

I am retiring from tech to live offline

https://openpath.quest/2026/i-am-retiring-from-tech-to-live-offline/
610•PinkG•5h ago•421 comments

Local Git remotes

https://cblgh.org/posts/local-git-remotes/
69•surprisetalk•7h ago•56 comments

Expertise in the age of AI

https://www.moderndescartes.com/essays/ai_and_expertise/
79•brilee•6h ago•78 comments

Cedana (YC S23) Is Hiring

https://www.ycombinator.com/companies/cedana/jobs/d1vYocG-forward-deployed-engineer-ai-hpc
1•neelm•7h ago

Someone used my open source project to phish people

https://andrej.sh/posts/phishing-through-my-open-source-project
68•andrejsshell•6h ago•38 comments

Real-time LLM Inference on Standard GPUs: 3k tokens/s per request

https://blog.kog.ai/real-time-llm-inference-on-standard-gpus-3-000-tokens-s-per-request/
184•NicoConstant•10h ago•82 comments

ATLAS: Autoformalized Textbook Library At Scale

https://github.com/facebookresearch/atlas-lean
23•vrm•1d ago•3 comments

AI will be used to estimate age of asylum seekers from next year

https://www.bbc.co.uk/news/articles/ce3pe36qe7ro
25•vylorn•1h ago•10 comments

Durable execution, the hard way

https://github.com/hatchet-dev/durable-execution-the-hard-way
41•abelanger•1d ago•3 comments

Poll: How often do you check "newest"?

65•ColinWright•7h ago•81 comments

The Secret Garden of Rock-Paper-Scissors

https://theshamblog.com/the-secret-garden-of-rock-paper-scissors/
31•scottshambaugh•5h ago•7 comments

Orchestrating AI code review at scale

https://blog.cloudflare.com/ai-code-review/
119•pramodbiligiri•3d ago•48 comments