frontpage.
newsnewestaskshowjobs

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.

Discovery Loop

https://www.discoveryloop.com/
318•xtreak29•3h ago•186 comments

Zed DeltaDB

https://zed.dev/deltadb
44•ahamez•29m ago•4 comments

Born Against, or why hobby programming communities are against LLM usage

https://blog.fogus.me/llm/born-against.html
38•lladnar•44m ago•22 comments

Beating GPT-5.6 Sol on retrieval with 100x cheaper open models

https://neon.com/blog/how-castform-neon-beats-frontier-models-on-price-and-efficiency
43•moonikakiss•1h ago•8 comments

Changes at Google DeepMind: Demis Hassabis from CEO to Chair, Jeff Dean departs

https://blog.google/company-news/inside-google/message-ceo/next-chapter-ai-momentum/
163•colesantiago•3h ago•318 comments

Atlassian Rovo Exfiltrates Data, Bypassing Controls

https://www.promptarmor.com/resources/atlassian-rovo-exfiltrates-data
51•hackerBanana•1h ago•11 comments

GNU Hurd News 2026-Q2

https://www.gnu.org/software/hurd/news/2026-q2.html
31•plaguna•3d ago•8 comments

Sycophantic AI Decreases Prosocial Intentions and Promotes Dependence (2025)

https://arxiv.org/abs/2510.01395
14•robin_reala•1h ago•1 comments

Launch HN: HyperProbe (YC S26) – Agents that do read-only debugging in prod

https://www.hyperprobe.co
25•shailendraht•2h ago•17 comments

Western Sahara

https://en.wikipedia.org/wiki/Western_Sahara
77•brudgers•20h ago•40 comments

The Valley of Webhooks

https://weli.dev/blog/the-valley-of-webhooks/
71•weli•4h ago•31 comments

Phishers are hijacking legitimate cloud infrastructure

https://securelist.com/cloud-platforms-in-phishing/120832/
21•lschueller•2h ago•5 comments

Cloudflare OS: an open platform for agents, apps, and work

https://blog.cloudflare.com/cloudflare-os/
353•speckx•5h ago•197 comments

Celld: Self-hosted, distributed Durable Objects

https://github.com/denoland/celld
31•calvinfo•2h ago•1 comments

Discovery of a multicomponent alloy forged by the Hiroshima atomic blast

https://www.science.org/doi/10.1126/sciadv.aeg8299
71•_____k•5d ago•24 comments

The Entropy of a Markov Chain

https://chillphysicsenjoyer.substack.com/p/the-entropy-of-a-markov-chain
70•surprisetalk•5h ago•2 comments

Aristotle quotes on virtue, knowledge, and happiness

https://www.campion.edu.au/blog/top-25-aristotle-quotes-on-virtue-knowledge-and-happiness/
126•teleforce•5h ago•41 comments

Microsoft's AI Sales Mostly Come from OpenAI, Disclosures Show

https://www.bloomberg.com/news/articles/2026-08-05/microsoft-s-ai-sales-mostly-come-from-openai-d...
34•mapping365•1h ago•5 comments

Rubin Observatory's first LSST Camera release: 500k galaxies in the COSMOS field

https://rubinobservatory.org/news/rubin-new-window-cosmos-field
58•MarcoDewey•5h ago•5 comments

Building an Advanced Agentic Harness

https://data4sci.com/blog/building-an-advanced-agentic-harness
71•Anon84•5h ago•36 comments

Painting with Gaussians

https://yogthos.net/posts/2026-08-03-splat-painter.html
65•yogthos•5h ago•10 comments

Oracle cut its Always Free ARM limits to 2 OCPU / 12GB, enforced Aug 18

https://www.cnelecar.com/blog/oracle-always-free-arm-limits-cut-2026/
138•iplaypc•4h ago•93 comments

Faster Than Ninja

https://build2.org/blog/faster-than-ninja.xhtml
68•elasticdog•5h ago•26 comments

Position: LLMs Can't Jump

https://openreview.net/challenge?redirect=%2Fforum%3Fid%3DklU4737opt
203•theanonymousone•8h ago•139 comments

Civilian plane crash in New Mexico tied to military GPS blocking

https://www.wired.com/story/a-civilian-plane-crashed-in-new-mexico-was-the-militarys-tech-to-blame/
396•dzdt•8h ago•196 comments

The Law of Jante (2015)

https://www.theparisreview.org/blog/2015/02/11/the-law-of-jante/
19•NaOH•1d ago•1 comments

Energizing a vacuum-tube flip-flop module from a 1948 IBM system

https://www.righto.com/2026/07/ibm-604-trigger-tube-module.html
35•Jimmc414•5d ago•6 comments

Proxmox VE now available for ARM64

https://forum.proxmox.com/threads/proxmox-virtual-environment-now-available-for-64-bit-arm-arm64....
13•geerlingguy•4h ago•1 comments

TIME Is Serving AI Bots a Different Website, with Ads Built In

https://www.vincentschmalbach.com/time-serves-ai-bots-a-different-website/
208•vincent_s•6h ago•88 comments

The "Disability Dongle": Why Silicon Valley Hates Me and You

https://sightlessscribbles.com/disability-dongle/
157•calcifer•4h ago•150 comments