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

Comments

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

Antirender: remove the glossy shine on architectural renderings

https://antirender.com/
1416•iambateman•17h ago•347 comments

Euro firms must ditch Uncle Sam's clouds and go EU-native

https://www.theregister.com/2026/01/30/euro_firms_must_ditch_us/
262•jamesblonde•2h ago•197 comments

We have ipinfo at home or how to geolocate IPs in your CLI using latency

https://blog.globalping.io/we-have-ipinfo-at-home-or-how-to-geolocate-ips-in-your-cli-using-latency/
45•jimaek•4h ago•10 comments

Sumerian Star Map Recorded the Impact of an Asteroid (2024)

https://archaeologyworlds.com/5500-year-old-sumerian-star-map-recorded/
76•griffzhowl•5h ago•26 comments

Show HN: I trained a 9M speech model to fix my Mandarin tones

https://simedw.com/2026/01/31/ear-pronunication-via-ctc/
290•simedw•12h ago•99 comments

Quaternion Algebras

https://jvoight.github.io/quat.html
15•teleforce•4d ago•0 comments

Direct Current Data Centers

https://terraformindustries.wordpress.com/2026/01/30/direct-current-data-centers/
45•jk_tech•13h ago•32 comments

A Step Behind the Bleeding Edge: A Philosophy on AI in Dev

https://somehowmanage.com/2026/01/22/a-step-behind-the-bleeding-edge-monarchs-philosophy-on-ai-in...
56•Ozzie_osman•2d ago•14 comments

Insane Growth Goldbridge (YC F25) Is Hiring a Forward Deployed Engineer

https://www.ycombinator.com/companies/goldbridge/jobs/78gGEHh-forward-deployed-engineer
1•alvinsalehi•1h ago

My Ridiculously Robust Photo Management System (Immich Edition)

https://jaisenmathai.com/articles/my-ridiculously-robust-photo-management-system-immich-edition/
74•jmathai•3d ago•27 comments

Peerweb: Decentralized website hosting via WebTorrent

https://peerweb.lol/
285•dtj1123•16h ago•100 comments

Automatic Programming

https://antirez.com/news/159
135•dvrp•3h ago•119 comments

Moltbook

https://www.moltbook.com/
1511•teej•1d ago•718 comments

Show HN: Phage Explorer

https://phage-explorer.org/
80•eigenvalue•8h ago•18 comments

Naples' 1790s civil war was intensified by moral panic over Real Analysis (2023)

https://lareviewofbooks.org/article/foundational-anxieties-modern-mathematics-and-the-political-i...
60•OgsyedIE•9h ago•12 comments

HTTP Cats

https://http.cat/
412•surprisetalk•23h ago•69 comments

A novelist who took on the Italian mafia and lived

https://www.thetimes.com/culture/books/article/sicilian-man-leonardo-sciascia-rise-mafia-struggle...
54•Thevet•3d ago•37 comments

An anecdote about backward compatibility

https://blog.plover.com/2026/01/26/#wrterm
49•speckx•4d ago•8 comments

CERN accepts $1B in private cash towards Future Circular Collider

https://physicsworld.com/a/cern-accepts-1bn-in-private-cash-towards-future-circular-collider/
48•zeristor•3h ago•26 comments

Show HN: SF Microclimates

https://github.com/solo-founders/sf-microclimates
38•weisser•5d ago•32 comments

Kimi K2.5 Technical Report [pdf]

https://github.com/MoonshotAI/Kimi-K2.5/blob/master/tech_report.pdf
321•vinhnx•20h ago•121 comments

Disrupting the largest residential proxy network

https://cloud.google.com/blog/topics/threat-intelligence/disrupting-largest-residential-proxy-net...
176•cdrnsf•2d ago•155 comments

Ashcan Comic

https://en.wikipedia.org/wiki/Ashcan_comic
42•benbreen•1d ago•11 comments

Surely the crash of the US economy has to be soon

https://wilsoniumite.com/2026/01/27/surely-it-has-to-be-soon/
362•Wilsoniumite•1d ago•475 comments

htmx: Server Sent Event (SSE) Extension

https://htmx.org/extensions/sse/
32•tosh•3h ago•5 comments

Archyl – The modern platform for C4 model documentation

https://www.archyl.com/
10•eko•4d ago•4 comments

Designing a Passively Safe API

https://www.danealbaugh.com/articles/passively-safe-apis
37•dalbaugh•4d ago•10 comments

Coding is when we're least productive

https://codemanship.wordpress.com/2026/01/30/coding-is-when-were-least-productive/
48•vinhnx•11h ago•34 comments

Stonebraker on CAP theorem and Databases (2010)

https://perspectives.mvdirona.com/2010/04/stonebraker-on-cap-theorem-and-databases/
69•onurkanbkrc•13h ago•31 comments

The engineer who invented the Mars rover suspension in his garage [video]

https://www.youtube.com/watch?v=QKSPk_0N4Jc
340•UltraSane•4d ago•48 comments