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.

Qwen3-Coder-Next

https://qwen.ai/blog?id=qwen3-coder-next
157•danielhanchen•1h ago•54 comments

Agent Skills

https://agentskills.io/home
186•mooreds•3h ago•134 comments

Prek: A better, faster, drop-in pre-commit replacement, engineered in Rust

https://github.com/j178/prek
28•fortuitous-frog•50m ago•12 comments

What's up with all those equals signs anyway?

https://lars.ingebrigtsen.no/2026/02/02/whats-up-with-all-those-equals-signs-anyway/
428•todsacerdoti•7h ago•129 comments

Heritability of intrinsic human life span is about 50%

https://www.science.org/doi/10.1126/science.adz1187
71•XzetaU8•2d ago•39 comments

Launch HN: Modelence (YC S25) – App Builder with TypeScript / MongoDB Framework

12•eduardpi•1h ago•2 comments

Bunny Database

https://bunny.net/blog/meet-bunny-database-the-sql-service-that-just-works/
116•dabinat•5h ago•53 comments

AI Didn't Break Copyright Law, It Just Exposed How Broken It Was

https://www.jasonwillems.com/technology/2026/02/02/AI-Copyright/
12•at1as•1h ago•0 comments

The Everdeck: A Universal Card System (2019)

https://thewrongtools.wordpress.com/2019/10/10/the-everdeck/
30•surprisetalk•6d ago•9 comments

Defining Safe Hardware Design [pdf]

https://people.csail.mit.edu/rachit/files/pubs/safe-hdls.pdf
3•rachitnigam•8m ago•0 comments

Show HN: difi – A Git diff TUI with Neovim integration (written in Go)

https://github.com/oug-t/difi
33•oug-t•3h ago•28 comments

Show HN: Sandboxing untrusted code using WebAssembly

https://github.com/mavdol/capsule
32•mavdol04•2h ago•11 comments

Floppinux – An Embedded Linux on a Single Floppy, 2025 Edition

https://krzysztofjankowski.com/floppinux/floppinux-2025.html
211•GalaxySnail•12h ago•136 comments

GitHub Browser Plugin for AI Contribution Blame in Pull Requests

https://blog.rbby.dev/posts/github-ai-contribution-blame-for-pull-requests/
27•rbbydotdev•2h ago•21 comments

Data Brokers Can Fuel Violence Against Public Servants

https://www.wired.com/story/how-data-brokers-can-fuel-violence-against-public-servants/
45•achristmascarl•1h ago•9 comments

Emerge Career (YC S22) is hiring a product designer

https://www.ycombinator.com/companies/emerge-career/jobs/omqT34S-founding-product-designer
1•gabesaruhashi•5h ago

The Codex App

https://openai.com/index/introducing-the-codex-app/
763•meetpateltech•23h ago•573 comments

Show HN: Safe-now.live – Ultra-light emergency info site (<10KB)

https://safe-now.live
127•tinuviel•8h ago•55 comments

Banning lead in gas worked. The proof is in our hair

https://attheu.utah.edu/health-medicine/banning-lead-in-gas-worked-the-proof-is-in-our-hair/
229•geox•15h ago•160 comments

Anki ownership transferred to AnkiHub

https://forums.ankiweb.net/t/ankis-growing-up/68610
513•trms•20h ago•203 comments

Athena Parthenos: A Reconstruction (2000)

http://www.goddess-athena.org/Museum/Sculptures/Alone/Parthenos_reconstruction_x.htm
7•joebig•4d ago•0 comments

Todd C. Miller – Sudo maintainer for over 30 years

https://www.millert.dev/
568•wodniok•23h ago•293 comments

Archive.today is directing a DDoS attack against my blog?

https://gyrovague.com/2026/02/01/archive-today-is-directing-a-ddos-attack-against-my-blog/
286•gyrovague-com•2d ago•122 comments

France dumps Zoom and Teams as Europe seeks digital autonomy from the US

https://apnews.com/article/europe-digital-sovereignty-big-tech-9f5388b68a0648514cebc8d92f682060
11•AareyBaba•40m ago•0 comments

How does misalignment scale with model intelligence and task complexity?

https://alignment.anthropic.com/2026/hot-mess-of-ai/
227•salkahfi•16h ago•70 comments

A WhatsApp bug lets malicious media files spread through group chats

https://www.malwarebytes.com/blog/news/2026/01/a-whatsapp-bug-lets-malicious-media-files-spread-t...
25•iamnothere•2h ago•4 comments

GitHub experience various partial-outages/degradations

https://www.githubstatus.com?todayis=2026-02-02
250•bhouston•19h ago•95 comments

See how many words you have written in Hacker News comments

https://serjaimelannister.github.io/hn-words/
119•Imustaskforhelp•3d ago•201 comments

Ask HN: Is there anyone here who still uses slide rules?

91•blenderob•3h ago•92 comments

Ask HN: Who is hiring? (February 2026)

296•whoishiring•1d ago•379 comments