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

Comments

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

Plasma Bigscreen – 10-foot interface for KDE plasma

https://plasma-bigscreen.org
180•PaulHoule•3h ago•55 comments

this css proves me human

https://will-keleher.com/posts/this-css-makes-me-human/
176•todsacerdoti•5h ago•61 comments

LLMs work best when the user defines their acceptance criteria first

https://blog.katanaquant.com/p/your-llm-doesnt-write-correct-code
60•dnw•1h ago•61 comments

C# strings silently kill your SQL Server indexes in Dapper

https://consultwithgriff.com/dapper-nvarchar-implicit-conversion-performance-trap
66•PretzelFisch•4h ago•38 comments

Galileo's handwritten notes found in ancient astronomy text

https://www.science.org/content/article/galileo-s-handwritten-notes-found-ancient-astronomy-text
54•tzury•1d ago•6 comments

Maybe There's a Pattern Here?

https://dynomight.net/pattern/
16•surprisetalk•2d ago•1 comments

Hardening Firefox with Anthropic's Red Team

https://www.anthropic.com/news/mozilla-firefox-security
503•todsacerdoti•15h ago•144 comments

The Shady World of IP Leasing

https://acid.vegas/blog/the-shady-world-of-ip-leasing/
70•alibarber•5h ago•37 comments

Show HN: Moongate – Ultima Online server emulator in .NET 10 with Lua scripting

https://github.com/moongate-community/moongatev2
233•squidleon•12h ago•134 comments

Tell HN: I'm 60 years old. Claude Code has ignited a passion again

136•shannoncc•2h ago•76 comments

What canceled my Go context?

https://rednafi.com/go/context-cancellation-cause/
18•mweibel•2d ago•9 comments

Launch HN: Palus Finance (YC W26): Better yields on idle cash for startups, SMBs

40•sam_palus•8h ago•67 comments

Tech employment now significantly worse than the 2008 or 2020 recessions

https://twitter.com/JosephPolitano/status/2029916364664611242
757•enraged_camel•9h ago•514 comments

Show HN: 1v1 coding game that LLMs struggle with

https://yare.io
6•levmiseri•20h ago•5 comments

UUID package coming to Go standard library

https://github.com/golang/go/issues/62026
6•soypat•1h ago•0 comments

Show HN: Kula – Lightweight, self-contained Linux server monitoring tool

https://github.com/c0m4r/kula
11•c0m4r•2h ago•14 comments

CT Scans of Health Wearables

https://www.lumafield.com/scan-of-the-month/health-wearables
190•radeeyate•12h ago•40 comments

Entomologists use a particle accelerator to image ants at scale

https://spectrum.ieee.org/3d-scanning-particle-accelerator-antscan
102•gmays•11h ago•18 comments

LibreSprite – open-source pixel art editor

https://libresprite.github.io/
268•nicoloren•17h ago•86 comments

Ada 2022

https://www.adaic.org/ada-resources/standards/ada22/
115•tosh•7h ago•22 comments

A tool that removes censorship from open-weight LLMs

https://github.com/elder-plinius/OBLITERATUS
129•mvdwoord•12h ago•57 comments

Astra: An open-source observatory control software

https://github.com/ppp-one/astra
85•pppone•10h ago•21 comments

Art Bits from HyperCard

https://archives.somnolescent.net/web/mari_v2/junk/hypercard/
63•TigerUniversity•5h ago•15 comments

Workers who love ‘synergizing paradigms’ might be bad at their jobs

https://news.cornell.edu/stories/2026/03/workers-who-love-synergizing-paradigms-might-be-bad-thei...
519•Anon84•13h ago•294 comments

Multifactor (YC F25) Is Hiring an Engineering Lead

https://www.ycombinator.com/companies/multifactor/jobs/lcpd60A-engineering-lead
1•multifactor•10h ago

Analytic Fog Rendering with Volumetric Primitives (2025)

https://matejlou.blog/2025/02/11/analytic-fog-rendering-with-volumetric-primitives/
84•surprisetalk•1d ago•8 comments

Good Bad ISPs

https://community.torproject.org/relay/community-resources/good-bad-isps/
107•rzk•12h ago•36 comments

Show HN: The Roman Industrial Revolution that could have been (Vol 2)

https://thelydianstone.com/volume-2
31•miki_tyler•3h ago•20 comments

Show HN: Claude-replay – A video-like player for Claude Code sessions

https://github.com/es617/claude-replay
70•es617•11h ago•27 comments

Anthropic, please make a new Slack

https://www.fivetran.com/blog/anthropic-please-make-a-new-slack
210•georgewfraser•7h ago•191 comments