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.

Claude Fable 5

https://www.anthropic.com/news/claude-fable-5-mythos-5
664•Philpax•1h ago•414 comments

Apple decided not to roll out Siri in EU after denied request for exemption

https://www.reuters.com/business/apple-failed-make-its-ai-tool-comply-eu-regulations-eu-commissio...
163•flanged•2h ago•284 comments

System Card: Claude Fable 5 and Claude Mythos 5 [pdf]

https://www-cdn.anthropic.com/d00db56fa754a1b115b6dd7cb2e3c342ee809620.pdf
160•scrlk•1h ago•41 comments

Where is the AI jobs crisis?

https://www.apollo.com/wealth/the-daily-spark/where-is-the-ai-jobs-crisis
35•bwestergard•46m ago•25 comments

Making Graphics Like it's 1993

https://staniks.github.io/articles/catlantean-3d-blog-1/
549•sklopec•7h ago•87 comments

A giant star may have destroyed itself in one of the rarest explosions

https://phys.org/news/2026-05-giant-star-destroyed-universe-rarest.html
58•wglb•21h ago•12 comments

Microsoft's open source tools were hacked to steal passwords of AI developers

https://techcrunch.com/2026/06/08/microsofts-open-source-tools-were-hacked-to-steal-passwords-of-...
455•raffael_de•10h ago•161 comments

Launch HN: Transload (YC P26) – Measuring freight items with CCTV

18•nils_spatial•1h ago•5 comments

The LD_DEBUG environment variable (2012)

https://bnikolic.co.uk/blog/linux-ld-debug.html
7•tanelpoder•46m ago•0 comments

Biff.core: system composition for Clojure web apps

https://biffweb.com/p/core/
32•jacobobryant•2h ago•9 comments

Is Grep All You Need? How Agent Harnesses Reshape Agentic Search

https://arxiv.org/abs/2605.15184
69•Anon84•4h ago•32 comments

Can LLMs Beat Classical Hyperparameter Optimization Algorithms?

https://arxiv.org/abs/2603.24647
63•galsapir•3h ago•9 comments

FCC wants to kill burner phones by forcing telecoms to get all customers' IDs

https://www.404media.co/fcc-wants-to-kill-burner-phones-by-forcing-telecoms-to-get-all-customers-...
186•berlianta•2h ago•118 comments

OpenCV 5 Is Here: The Biggest Leap in Years for Computer Vision

https://opencv.org/opencv-5/
563•ternaus•3d ago•101 comments

Show HN: GentleOS – A pair of hobby OSes for vintage 32-bit and 16-bit PCs

https://github.com/luke8086/gentleos32
51•luke8086•2d ago•76 comments

Let's Encrypt bans certificate usage in any US sanctioned territory [pdf]

https://letsencrypt.org/documents/LE-SA-v1.7-June-04-2026-diff.pdf
136•piskov•19h ago•93 comments

The iPhone's Last Stand?

https://stratechery.com/2026/the-iphones-last-stand/
121•swolpers•8h ago•163 comments

Emerge Career (YC S22) Is Hiring a Founding Growth Marketer

https://www.ycombinator.com/companies/emerge-career/jobs/v0S1AEG-founding-growth-marketer
1•gabesaruhashi•6h ago

Show HN: Gravity – interactive solar-system simulator, from Newton to Einstein

https://qunabu.github.io/Gravity/
92•qunabu•6h ago•23 comments

Unified Controllable and Faithful Text-to-CAD Generation with LLMs

https://arxiv.org/abs/2604.19773
39•PaulHoule•4h ago•9 comments

Rayforce

https://github.com/RayforceDB/rayforce
4•tosh•2d ago•0 comments

'Sloppenheimer:' Amazon Employees Mock the Company's AI on Slack

https://www.404media.co/sloppenheimer-amazon-employees-mock-the-companys-ai-on-slack/
140•doener•2h ago•66 comments

Forever Young: how one molecule can lock plants in a youthful state (2025)

https://omnia.sas.upenn.edu/story/biologist-scott-poethig-plants-never-age
107•bryanrasmussen•9h ago•62 comments

Show HN: Learn from 30 historical figures, open source, nonprofit, self-hosted

https://github.com/chipmates/agoracosmica
12•micstradev•6h ago•5 comments

Using Optical Aberrations to Distinguish Real Astronomical Transients

https://arxiv.org/abs/2606.08319
18•solarist•3h ago•2 comments

The Effective Sample Size

https://alex.smola.org/posts/40-effective-sample-size/
15•jxmorris12•4d ago•1 comments

Painting the Internet: A Different Kind of Warhol Worm [pdf]

https://cspages.ucalgary.ca/~aycock/papers/artworm.pdf
6•jruohonen•1d ago•0 comments

Thi.ng – open-source building blocks for computational design and art

https://thi.ng
160•nmstoker•1d ago•21 comments

Cleaning up after AI rockstar developers

https://www.codingwithjesse.com/blog/rockstar-developers/
370•BrunoBernardino•9h ago•268 comments

An introduction to functional analysis for science and engineering

https://arxiv.org/abs/1904.02539
98•Anon84•2d ago•13 comments