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

Comments

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

Netflix to Acquire Warner Bros

https://about.netflix.com/en/news/netflix-to-acquire-warner-bros
1232•meetpateltech•9h ago•1006 comments

Cloudflare outage on December 5, 2025

https://blog.cloudflare.com/5-december-2025-outage/
430•meetpateltech•5h ago•296 comments

Framework Sponsors CachyOS

https://discuss.cachyos.org/t/framework-sponsorship-for-cachyos/19376
54•d3Xt3r•1h ago•25 comments

Gemini 3 Pro: the frontier of vision AI

https://blog.google/technology/developers/gemini-3-pro-vision/
195•xnx•5h ago•84 comments

Patterns for Defensive Programming in Rust

https://corrode.dev/blog/defensive-programming/
133•PaulHoule•5h ago•24 comments

Idempotency Keys for Exactly-Once Processing

https://www.morling.dev/blog/on-idempotency-keys/
19•defly•4d ago•3 comments

Most technical problems are people problems

https://blog.joeschrag.com/2023/11/most-technical-problems-are-really.html
257•mooreds•8h ago•221 comments

I'm Peter Roberts, immigration attorney who does work for YC and startups. AMA

140•proberts•5h ago•156 comments

Show HN: HCB Mobile – financial app built by 17 y/o, processing $6M/month

https://hackclub.com/fiscal-sponsorship/mobile/
57•mohamad08•2d ago•14 comments

Judge Signals Win for Software Freedom Conservancy in Vizio GPL Case

https://fossforce.com/2025/12/judge-signals-win-for-software-freedom-conservancy-in-vizio-gpl-case/
41•speckx•52m ago•2 comments

Why we built Lightpanda in Zig

https://lightpanda.io/blog/posts/why-we-built-lightpanda-in-zig
103•ashvardanian•3h ago•50 comments

Advertising as a major source of human dissatisfaction (2019) [pdf]

https://www.andrewoswald.com/docs/AdvertisingMicheletal2019EasterlinVolume.pdf
126•anigbrowl•1h ago•103 comments

Making RSS More Fun

https://matduggan.com/making-rss-more-fun/
159•salmon•8h ago•84 comments

Fizz Buzz in CSS

https://susam.net/fizz-buzz-in-css.html
9•froober•1h ago•2 comments

Onlook (YC W25) the Cursor for Designers Is Hiring a Founding Fullstack Engineer

1•D_R_Farrell•4h ago

UniFi 5G

https://blog.ui.com/article/introducing-unifi-5g
323•janandonly•14h ago•263 comments

Compassionate Curmudgeon: Why we must root ourselves in the real world

https://theamericanscholar.org/compassionate-curmudgeon/
19•lermontov•3d ago•3 comments

The Forgotten Roman Ruins of the ‘Pompeii of the Middle East’

https://news.artnet.com/art-world/huge-jerash-jordan-pompeii-middle-easy-2708480
43•pseudolus•6d ago•9 comments

Show HN: Kraa – Writing App for Everything

https://kraa.io/about
92•levmiseri•1d ago•53 comments

Framework Laptop 13 gets ARM processor with 12 cores via upgrade kit

https://www.notebookcheck.net/Framework-Laptop-13-gets-ARM-processor-with-12-cores-via-upgrade-ki...
236•woodrowbarlow•5h ago•113 comments

Building a Copying GC for the Plush Programming Language

https://pointersgonewild.com/2025-11-29-building-a-copying-gc-for-the-plush-programming-language/
20•ibobev•4d ago•1 comments

Netflix’s AV1 Journey: From Android to TVs and Beyond

https://netflixtechblog.com/av1-now-powering-30-of-netflix-streaming-02f592242d80
480•CharlesW•21h ago•251 comments

Synadia and TigerBeetle Pledge $512k to the Zig Software Foundation

https://tigerbeetle.com/blog/2025-10-25-synadia-and-tigerbeetle-pledge-512k-to-the-zig-software-f...
138•cratermoon•4h ago•57 comments

BMW PHEV: Safety fuse replacement is extremely expensive

https://evclinic.eu/2025/12/04/2021-phev-bmw-ibmucp-21f37e-post-crash-recovery-when-eu-engineerin...
402•mikelabatt•20h ago•454 comments

Show HN: SerpApi MCP Server

https://github.com/serpapi/serpapi-mcp
16•thefoolofdaath•3h ago•3 comments

Nimony (Nim 3.0) Design Principles

https://nim-lang.org/araq/nimony.html
116•andsoitis•3d ago•74 comments

WikiFlix: Full Movies Hosted on Wikimedia Commons

https://commons.wikimedia.org/wiki/User:Spinster/WikiFlix
62•netule•3h ago•15 comments

The Debug Adapter Protocol is a REPL protocol in disguise

https://zignar.net/2025/06/23/debug-adapter-protocol-is-a-repl-protocol/
6•Malp•2h ago•0 comments

I have been writing a niche history blog for 15 years

https://resobscura.substack.com/p/why-i-have-been-writing-a-niche-history
239•benbreen•1d ago•43 comments

Stacked Diffs with git rebase —onto

https://dineshpandiyan.com/blog/stacked-diffs-with-rebase-onto/
113•flexdinesh•4d ago•104 comments