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

Comments

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

Gaussian Splatting – A$AP Rocky "Helicopter" music video

https://radiancefields.com/a-ap-rocky-releases-helicopter-music-video-featuring-gaussian-splatting
541•ChrisArchitect•12h ago•172 comments

Provide agents with automated feedback

https://banay.me/dont-waste-your-backpressure/
70•ghuntley•1d ago•23 comments

Flux 2 Klein pure C inference

https://github.com/antirez/flux2.c
281•antirez•11h ago•112 comments

The Code-Only Agent

https://rijnard.com/blog/the-code-only-agent
32•emersonmacro•3h ago•10 comments

A Social Filesystem

https://overreacted.io/a-social-filesystem/
344•icy•21h ago•148 comments

Dead Internet Theory

https://kudmitry.com/articles/dead-internet-theory/
165•skwee357•9h ago•219 comments

At least 21 killed in Spain after crash involving high-speed trains

https://www.bbc.com/news/articles/cedw6ylpynyo
55•akyuu•5h ago•33 comments

Fil-Qt: A Qt Base build with Fil-C experience

https://git.qt.io/cradam/fil-qt
54•pjmlp•2d ago•31 comments

Gas Town Decoded

https://www.alilleybrinker.com/mini/gas-town-decoded/
97•alilleybrinker•4d ago•82 comments

AVX-512: First Impressions on Performance and Programmability

https://shihab-shahriar.github.io//blog/2026/AVX-512-First-Impressions-on-Performance-and-Program...
29•shihab•5d ago•8 comments

Show HN: I quit coding years ago. AI brought me back

https://calquio.com/finance/compound-interest
43•ivcatcher•4h ago•27 comments

Poking holes into bytecode with peephole optimisations

https://xnacly.me/posts/2026/purple-garden-first-optimisations/
18•xnacly•4d ago•0 comments

Show HN: Dock – Slack minus the bloat, tax, and 90-day memory loss

https://getdock.io/
90•yadavrh•9h ago•70 comments

Using proxies to hide secrets from Claude Code

https://www.joinformal.com/blog/using-proxies-to-hide-secrets-from-claude-code/
55•drewgregory•5d ago•24 comments

The space and motion of communicating agents (2008) [pdf]

https://www.cl.cam.ac.uk/archive/rm135/Bigraphs-draft.pdf
12•dhorthy•3d ago•1 comments

Command-line Tools can be 235x Faster than your Hadoop Cluster (2014)

https://adamdrake.com/command-line-tools-can-be-235x-faster-than-your-hadoop-cluster.html
335•tosh•20h ago•223 comments

Police Invested Millions in Shadowy Phone-Tracking Software Won't Say How Used

https://www.texasobserver.org/texas-police-invest-tangles-sheriff-surveillance/
279•nobody9999•8h ago•82 comments

Astrophotography visibility plotting and planning tool

https://airmass.org/
9•NKosmatos•3d ago•2 comments

The Cathedral, the Megachurch, and the Bazaar

https://opensourcesecurity.io/2026/01-cathedral-megachurch-bazaar/
144•todsacerdoti•5d ago•118 comments

Sins of the Children

https://asteriskmag.com/issues/07/sins-of-the-children
132•maxall4•12h ago•64 comments

Show HN: Lume 0.2 – Build and Run macOS VMs with unattended setup

https://cua.ai/docs/lume/guide/getting-started/introduction
106•frabonacci•11h ago•30 comments

Ultrathink is deprecated & How to enable 2x thinking tokens in Claude Code

https://decodeclaude.com/ultrathink-deprecated/
19•moona3k•7h ago•1 comments

Simulating the Ladybug Clock Puzzle

https://austinhenley.com/blog/ladybugclock.html
6•azhenley•1d ago•0 comments

Predicting OpenAI's ad strategy

https://ossa-ma.github.io/blog/openads
515•calcifer•15h ago•449 comments

Wine 11.0

https://gitlab.winehq.org/wine/wine/-/releases/wine-11.0
300•zdw•5d ago•60 comments

A free and open-source rootkit for Linux

https://lwn.net/SubscriberLink/1053099/19c2e8180aeb0438/
185•jwilk•20h ago•37 comments

Show HN: Beats, a web-based drum machine

https://beats.lasagna.pizza
53•kinduff•8h ago•13 comments

ASCII characters are not pixels: a deep dive into ASCII rendering

https://alexharri.com/blog/ascii-rendering
1212•alexharri•1d ago•131 comments

CD Projekt issue DMCA takedown notice against popular Cyberpunk VR mod

https://www.patreon.com/posts/another-one-dust-148437771
30•wjdp•3h ago•11 comments

Stirling Cycle Machine Analysis

https://ohioopen.library.ohio.edu/opentextbooks/9/
29•akshatjiwan•8h ago•9 comments