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.

Claude Opus 4.6

https://www.anthropic.com/news/claude-opus-4-6
1895•HellsMaddy•15h ago•798 comments

Things Unix can do atomically (2010)

https://rcrowley.org/2010/01/06/things-unix-can-do-atomically.html
65•onurkanbkrc•3h ago•23 comments

Systems Thinking

http://theprogrammersparadox.blogspot.com/2026/02/systems-thinking.html
64•r4um•3h ago•28 comments

GPT-5.3-Codex

https://openai.com/index/introducing-gpt-5-3-codex/
1270•meetpateltech•14h ago•475 comments

Show HN: Artifact Keeper – Open-Source Artifactory/Nexus Alternative in Rust

https://github.com/artifact-keeper
42•bsgeraci•4h ago•9 comments

My AI Adoption Journey

https://mitchellh.com/writing/my-ai-adoption-journey
557•anurag•13h ago•181 comments

We tasked Opus 4.6 using agent teams to build a C Compiler

https://www.anthropic.com/engineering/building-c-compiler
511•modeless•13h ago•478 comments

Recreating Epstein PDFs from raw encoded attachments

https://neosmart.net/blog/recreating-epstein-pdfs-from-raw-encoded-attachments/
337•ComputerGuru•1d ago•107 comments

How to carry more than your own bodyweight (2025)

https://www.bbc.com/future/article/20250124-how-to-carry-more-than-your-own-bodyweight
21•1659447091•3d ago•15 comments

Unlocking high-performance PostgreSQL with key memory optimizations

https://stormatics.tech/blogs/unlocking-high-performance-postgresql-key-memory-optimizations
35•camille_134•4d ago•1 comments

Animated Knots

https://www.animatedknots.com/
178•ostacke•3d ago•23 comments

I reversed Tower of Fantasy's anti-cheat driver: a BYOVD toolkit never loaded

https://vespalec.com/blog/tower-of-flaws/
52•svespalec•5h ago•19 comments

Stay Away from My Trash

https://tldraw.dev/blog/stay-away-from-my-trash
18•EvgeniyZh•3d ago•2 comments

Review of 1984 by Isaac Asimov (1980)

https://www.newworker.org/ncptrory/1984.htm
146•doruk101•10h ago•72 comments

Waiting for Postgres 19: Better planner hints with path generation strategies [video]

https://www.youtube.com/watch?v=QLb3nhIy2Lc
27•sbuttgereit•5h ago•1 comments

The RCE that AMD won't fix

https://mrbruh.com/amd/
179•MrBruh•9h ago•70 comments

GitHub Actions is slowly killing engineering teams

https://www.iankduncan.com/engineering/2026-02-05-github-actions-killing-your-team/
207•codesuki•5h ago•90 comments

MenuetOS – a GUI OS that boots from a single floppy disk

https://www.menuetos.net/
142•pjerem•3d ago•29 comments

The time I didn't meet Jeffrey Epstein

https://scottaaronson.blog/?p=9534
160•pfdietz•13h ago•140 comments

The Color of Safety

https://protocolized.summerofprotocols.com/p/the-color-of-safety
3•laurex•3d ago•0 comments

Claude Opus 4.6 extra usage promo

https://support.claude.com/en/articles/13613973-claude-opus-4-6-extra-usage-promo
155•rob•12h ago•48 comments

LinkedIn checks for 2953 browser extensions

https://github.com/mdp/linkedin-extension-fingerprinting
389•mdp•12h ago•187 comments

Hypernetworks: Neural Networks for Hierarchical Data

https://blog.sturdystatistics.com/posts/hnet_part_I/
60•mkmccjr•15h ago•4 comments

Orchestrate teams of Claude Code sessions

https://code.claude.com/docs/en/agent-teams
346•davidbarker•14h ago•193 comments

What if writing tests was a joyful experience? (2023)

https://blog.janestreet.com/the-joy-of-expect-tests/
65•ryanhn•10h ago•24 comments

Company as Code

https://blog.42futures.com/p/company-as-code
239•ahamez•19h ago•120 comments

The browser catches homograph attacks, the terminal doesn't

https://github.com/sheeki03/tirith
53•MrBuddyCasino•2d ago•20 comments

Generative Pen-Trained Transformer

https://theodore.net/projects/Polargraph/
9•Twarner•4h ago•0 comments

The New Collabora Office for Desktop

https://www.collaboraonline.com/collabora-office/
167•mfld•18h ago•104 comments

Don't rent the cloud, own instead

https://blog.comma.ai/datacenter/
1137•Torq_boi•1d ago•467 comments