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

Comments

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

Show HN: We built an open source, zero webhooks payment processor

https://github.com/flowglad/flowglad
74•agreeahmed•1h ago•55 comments

Google Antigravity Exfiltrates Data

https://www.promptarmor.com/resources/google-antigravity-exfiltrates-data
25•jjmaxwell4•12m ago•2 comments

FLUX.2: Frontier Visual Intelligence

https://bfl.ai/blog/flux-2
108•meetpateltech•2h ago•38 comments

Launch HN: Onyx (YC W24) – Open-source chat UI

98•Weves•4h ago•87 comments

The 101 of analog signal filtering (2024)

https://lcamtuf.substack.com/p/the-101-of-analog-signal-filtering
51•harperlee•4d ago•3 comments

It is ok to say "CSS variables" instead of "custom properties"

https://blog.kizu.dev/css-variables/
35•eustoria•1h ago•15 comments

Human brains are preconfigured with instructions for understanding the world

https://news.ucsc.edu/2025/11/sharf-preconfigured-brain/
340•XzetaU8•12h ago•228 comments

Making Crash Bandicoot (2011)

https://all-things-andy-gavin.com/video-games/making-crash/
147•davikr•6h ago•10 comments

Trillions spent and big software projects are still failing

https://spectrum.ieee.org/it-management-software-failures
98•pseudolus•6h ago•85 comments

Ozempic does not slow Alzheimer's, study finds

https://www.semafor.com/article/11/25/2025/ozempic-does-not-slow-alzheimers-study-finds
50•danso•2h ago•37 comments

Python is not a great language for data science

https://blog.genesmindsmachines.com/p/python-is-not-a-great-language-for
35•speckx•2h ago•30 comments

how to repurpose your old phone into a web server

https://far.computer/how-to/
11•louismerlin•3d ago•0 comments

Most Stable Raspberry Pi? Better NTP with Thermal Management

https://austinsnerdythings.com/2025/11/24/worlds-most-stable-raspberry-pi-81-better-ntp-with-ther...
245•todsacerdoti•12h ago•76 comments

LPLB: An early research stage MoE load balancer based on linear programming

https://github.com/deepseek-ai/LPLB
10•simonpure•6d ago•0 comments

Roblox is a problem but it's a symptom of something worse

https://www.platformer.news/roblox-ceo-interview-backlash-analysis/
87•FiddlerClamp•2h ago•123 comments

Unpowered SSDs slowly lose data

https://www.xda-developers.com/your-unpowered-ssd-is-slowly-losing-your-data/
660•amichail•23h ago•273 comments

Jakarta is now the biggest city in the world

https://www.axios.com/2025/11/24/jakarta-tokyo-worlds-biggest-city-population
34•skx001•12h ago•7 comments

Broccoli Man, Remastered

https://mbleigh.dev/posts/broccoli-man-remastered/
118•mbleigh•6d ago•59 comments

Nearby peer discovery without GPS using environmental fingerprints

https://www.svendewaerhert.com/blog/nearby-peer-discovery/
52•waerhert•4d ago•17 comments

Brain has five 'eras' with adult mode not starting until early 30s

https://www.theguardian.com/science/2025/nov/25/brain-human-cognitive-development-life-stages-cam...
200•hackernj•5h ago•181 comments

APT Rust requirement raises questions

https://lwn.net/SubscriberLink/1046841/5bbf1fc049a18947/
208•todsacerdoti•4h ago•357 comments

PRC elites voice AI-skepticism

https://jamestown.org/prc-elites-voice-ai-skepticism/
80•JumpCrisscross•22h ago•13 comments

Claude Advanced Tool Use

https://www.anthropic.com/engineering/advanced-tool-use
607•lebovic•23h ago•245 comments

Orion 1.0

https://blog.kagi.com/orion
175•STRiDEX•2h ago•103 comments

Hollywood's vision of ancient Rome is all wrong, according to Mary Beard

https://www.openculture.com/2025/11/why-your-vision-of-ancient-rome-is-all-wrong-according-to-his...
50•bookofjoe•6d ago•51 comments

Using an Array of Needles to Create Solid Knitted Shapes

https://dl.acm.org/doi/10.1145/3746059.3747759
66•PaulHoule•3d ago•19 comments

Show HN: I built an interactive HN Simulator

https://news.ysimulator.run/news
456•johnsillings•1d ago•202 comments

Three Years from GPT-3 to Gemini 3

https://www.oneusefulthing.org/p/three-years-from-gpt-3-to-gemini
337•JumpCrisscross•2d ago•270 comments

How the Atomic Tests Looked Like from Los Angeles

https://www.amusingplanet.com/2016/09/how-atomic-tests-looked-like-from-los.html
108•ohjeez•3d ago•79 comments

Pebble Watch software is now open source

https://ericmigi.com/blog/pebble-watch-software-is-now-100percent-open-source
1190•Larrikin•23h ago•212 comments