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.

Magnus Carlsen Wins the Freestyle (Chess960) World Championship

https://www.fide.com/magnus-carlsen-wins-2026-fide-freestyle-world-championship/
40•prophylaxis•1h ago•7 comments

I’m joining OpenAI

https://steipete.me/posts/2026/openclaw
286•mfiguiere•1h ago•199 comments

LT6502: A 6502-based homebrew laptop

https://github.com/TechPaula/LT6502
275•classichasclass•6h ago•103 comments

Radio host David Greene says Google's NotebookLM tool stole his voice

https://www.washingtonpost.com/technology/2026/02/15/david-greene-google-ai-podcast/
51•mikhael•5h ago•39 comments

GNU Pies – Program Invocation and Execution Supervisor

https://www.gnu.org.ua/software/pies/
42•smartmic•2h ago•33 comments

Audio is the one area small labs are winning

https://www.amplifypartners.com/blog-posts/arming-the-rebels-with-gpus-gradium-kyutai-and-audio-ai
49•rocauc•2d ago•6 comments

Modern CSS Code Snippets: Stop writing CSS like it's 2015

https://modern-css.com
150•eustoria•5h ago•52 comments

I fixed Windows native development

https://marler8997.github.io/blog/fixed-windows/
626•deevus•12h ago•304 comments

EU bans the destruction of unsold apparel, clothing, accessories and footwear

https://environment.ec.europa.eu/news/new-eu-rules-stop-destruction-unsold-clothes-and-shoes-2026...
701•giuliomagnifico•6h ago•464 comments

I Gave Claude Access to My Pen Plotter

https://harmonique.one/posts/i-gave-claude-access-to-my-pen-plotter
38•futurecat•2d ago•14 comments

Pocketblue – Fedora Atomic for mobile devices

https://github.com/pocketblue/pocketblue
32•nikodunk•6h ago•5 comments

Show HN: VOOG – Moog-style polyphonic synthesizer in Python with tkinter GUI

https://github.com/gpasquero/voog
51•gpasquero•3h ago•4 comments

Show HN: Microgpt is a GPT you can visualize in the browser

https://microgpt.boratto.ca
70•b44•4h ago•5 comments

Show HN: Klaw.sh – Kubernetes for AI agents

https://github.com/klawsh/klaw.sh
11•eftalyurtseven•6h ago•0 comments

Towards Autonomous Mathematics Research

https://arxiv.org/abs/2602.10177
70•gmays•4h ago•32 comments

Error payloads in Zig

https://srcreigh.ca/posts/error-payloads-in-zig/
3•srcreigh•24m ago•0 comments

Real-time PathTracing with global illumination in WebGL

https://erichlof.github.io/THREE.js-PathTracing-Renderer/
107•tobr•3d ago•10 comments

Gwtar: A static efficient single-file HTML format

https://gwern.net/gwtar
157•theblazehen•7h ago•58 comments

Show HN: Pangolin: Open-source identity-based VPN (Twingate/Zscaler alternative)

https://github.com/fosrl/pangolin
16•miloschwartz•12h ago•6 comments

Show HN: Knock-Knock.net – Visualizing the bots knocking on my server's door

https://knock-knock.net
76•djkurlander•6h ago•26 comments

Continuous batching from first principles (2025)

https://huggingface.co/blog/continuous_batching
7•jxmorris12•45m ago•1 comments

Two different tricks for fast LLM inference

https://www.seangoedecke.com/fast-llm-inference/
154•swah•14h ago•63 comments

Show HN: Deadlog – almost drop-in mutex for debugging Go deadlocks

https://github.com/stevenctl/deadlog
22•dirteater_•5d ago•1 comments

Show HN: DSCI – Dead Simple CI

https://github.com/melezhik/DSCI
13•melezhik•6h ago•4 comments

Hideki Sato, designer of all Sega's consoles, has died

https://www.videogameschronicle.com/news/hideki-sato-designer-of-segas-consoles-dies-age-75/
300•magoghm•7h ago•30 comments

Editor's Note: Retraction of article containing fabricated quotations

https://arstechnica.com/staff/2026/02/editors-note-retraction-of-article-containing-fabricated-qu...
110•bikenaga•5h ago•91 comments

Oat – Ultra-lightweight, zero dependency, semantic HTML, CSS, JS UI library

https://oat.ink/
439•twapi•15h ago•118 comments

Amazon's Ring and Google's Nest reveal the severity of U.S. surveillance state

https://greenwald.substack.com/p/amazons-ring-and-googles-nest-unwittingly
640•mikece•10h ago•458 comments

Sony Jumbotron Image Control System (1998) [pdf]

https://pro.sony/s3/cms-static-content/operation-manual/3864848111.pdf
24•xattt•3d ago•11 comments

How Is Data Stored?

https://www.makingsoftware.com/chapters/how-is-data-stored
143•tzury•5d ago•14 comments