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

Comments

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

New Apple Silicon M4 and M5 HiDPI Limitation on 4K External Displays

https://smcleod.net/2026/03/new-apple-silicon-m4-m5-hidpi-limitation-on-4k-external-displays/
96•smcleod•1h ago•25 comments

The Cognitive Dark Forest

https://ryelang.org/blog/posts/cognitive-dark-forest/
300•kaycebasques•8h ago•139 comments

Voyager 1 runs on 69 KB of memory and an 8-track tape recorder

https://techfixated.com/a-1977-time-capsule-voyager-1-runs-on-69-kb-of-memory-and-an-8-track-tape...
420•speckx•11h ago•173 comments

Philly courts will ban all smart eyeglasses starting next week

https://www.inquirer.com/news/philadelphia/smart-glasses-ai-meta-courts-20260326.html
96•Philadelphia•1h ago•33 comments

ChatGPT won't let you type until Cloudflare reads your React state

https://www.buchodi.com/chatgpt-wont-let-you-type-until-cloudflare-reads-your-react-state-i-decry...
376•alberto-m•7h ago•280 comments

15 Years of Forking

https://www.waterfox.com/blog/15-years-of-forking/
65•MrAlex94•2d ago•4 comments

DoesItAgeVerify: The age verification status of Open Source Operating Systems

https://github.com/BryanLunduke/DoesItAgeVerify
29•pkaeding•2h ago•27 comments

Claude Code runs Git reset –hard origin/main against project repo every 10 mins

https://github.com/anthropics/claude-code/issues/40710
200•mthwsjc_•5h ago•133 comments

Interview: Nobonoko, Master of the Minimal Sequencer

https://fi-le.net/nobo/
15•fi-le•2d ago•0 comments

Pretext

https://simonwillison.net/2026/Mar/29/pretext/
3•lumpa•55m ago•0 comments

Pretext: TypeScript library for multiline text measurement and layout

https://github.com/chenglou/pretext
215•emersonmacro•1d ago•41 comments

There is No Spoon. A software engineers primer for demystified ML

https://github.com/dreddnafious/thereisnospoon
71•jmatthews•5h ago•16 comments

I'll buy your electronics to feed our robot

https://www.dayworkx.com/
63•skholinn•3d ago•12 comments

C++26 is done ISO C++ standards meeting, Trip Report

https://herbsutter.com/2026/03/29/c26-is-done-trip-report-march-2026-iso-c-standards-meeting-lond...
178•pjmlp•9h ago•144 comments

The road signs that teach travellers about France

https://www.bbc.com/travel/article/20260327-the-road-signs-that-teach-travellers-about-france
61•1659447091•7h ago•20 comments

About the Atmosphere

https://toni.org/2026/03/27/about-the-atmosphere/
35•Kye•2d ago•4 comments

More on Version Control

https://bramcohen.com/p/more-on-version-control
63•velmu•8h ago•13 comments

Ohm's Peg-to-WASM Compiler

https://ohmjs.org/blog/2026/03/12/peg-to-wasm
44•azhenley•2d ago•15 comments

The RISE RISC-V Runners: free, native RISC-V CI on GitHub

https://riseproject.dev/2026/03/24/announcing-the-rise-risc-v-runners-free-native-risc-v-ci-on-gi...
123•thebeardisred•3d ago•30 comments

Coding Agents Could Make Free Software Matter Again

https://www.gjlondon.com/blog/ai-agents-could-make-free-software-matter-again/
122•rogueleaderr•5h ago•117 comments

Kyushu Railway Company Train Varieties

https://www.jrkyushu.co.jp/english/train/index.html
67•NaOH•8h ago•9 comments

Show HN: Crazierl – An Erlang Operating System

https://crazierl.org/demo/
49•toast0•6h ago•13 comments

LinkedIn uses 2.4 GB RAM across two tabs

641•hrncode•18h ago•378 comments

The rise and fall of IBM's 4 Pi aerospace computers: an illustrated history

https://www.righto.com/2026/03/ibm-4-pi-computer-history.html
80•zdw•11h ago•24 comments

Creating West Coast Buddhism (2024)

https://letter.palladiummag.com/p/creating-west-coast-buddhism
55•surprisetalk•3d ago•37 comments

Neovim 0.12.0

https://github.com/neovim/neovim/releases/tag/v0.12.0
307•pawelgrzybek•9h ago•163 comments

Miasma: A tool to trap AI web scrapers in an endless poison pit

https://github.com/austin-weeks/miasma
298•LucidLynx•17h ago•214 comments

Nitrile and latex gloves may cause overestimation of microplastics

https://news.umich.edu/nitrile-and-latex-gloves-may-cause-overestimation-of-microplastics-u-m-stu...
522•giuliomagnifico•17h ago•237 comments

Show HN: QuickBEAM – run JavaScript as supervised Erlang/OTP processes

https://github.com/elixir-volt/quickbeam
86•dannote•1d ago•13 comments

Quantum Control Plane

https://github.com/mareksuchodolski12-hash/kwantowy
5•ProEloElo•1d ago•1 comments