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

Comments

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

Google adds 24-hour wait and mandatory reboot to Android sideloading flow

https://android-developers.googleblog.com/2025/08/elevating-android-security.html
54•dfordp11•1h ago•16 comments

OpenCode – Open source AI coding agent

https://opencode.ai/
667•rbanffy•10h ago•296 comments

Ubuntu 26.04 Ends 46 Years of Silent sudo Passwords

https://pbxscience.com/ubuntu-26-04-ends-46-years-of-silent-sudo-passwords/
28•akersten•2h ago•14 comments

Mamba-3

https://www.together.ai/blog/mamba-3
65•matt_d•3d ago•5 comments

Molly Guard

https://bookofjoe2.blogspot.com/2026/02/molly-guard.html
66•surprisetalk•16h ago•30 comments

France's aircraft carrier located in real time by Le Monde through fitness app

https://www.lemonde.fr/en/international/article/2026/03/20/stravaleaks-france-s-aircraft-carrier-...
540•MrDresden•18h ago•431 comments

We rewrote our Rust WASM parser in TypeScript and it got faster

https://www.openui.com/blog/rust-wasm-parser
167•zahlekhan•9h ago•95 comments

A Japanese glossary of chopsticks faux pas

https://www.nippon.com/en/japan-data/h01362/
217•cainxinth•10h ago•156 comments

FFmpeg 101 (2024)

https://blogs.igalia.com/llepage/ffmpeg-101/
32•vinhnx•4h ago•0 comments

Fujifilm X RAW STUDIO webapp clone

https://github.com/eggricesoy/filmkit
11•notcodingtoday•2d ago•7 comments

Ghostling

https://github.com/ghostty-org/ghostling
171•bjornroberg•9h ago•30 comments

Linux Applications Programming by Example: The Fundamental APIs (2nd Edition)

https://github.com/arnoldrobbins/LinuxByExample-2e
68•teleforce•7h ago•8 comments

The Ugliest Airplane: An Appreciation

https://www.smithsonianmag.com/air-space-magazine/ugliest-airplane-appreciation-180978708/
54•randycupertino•2d ago•28 comments

Ask ChatGPT to pick a number from 1-10000, it generally selects from 7200-7500

https://old.reddit.com/r/ChatGPT/comments/1rz2ooh/i_am_betting_my_house_that_if_you_ask_gpt_to_pick/
19•mellosouls•1h ago•20 comments

A look at content scrambling in DVDs

https://mathweb.ucsd.edu/~crypto/Projects/MarkBarry/
24•rvnx•2d ago•10 comments

Attention Residuals

https://github.com/MoonshotAI/Attention-Residuals
153•GaggiX•12h ago•21 comments

Show HN: We built a terminal-only Bluesky / AT Proto client written in Fortran

https://github.com/FormerLab/fortransky
69•FormerLabFred•9h ago•38 comments

The Los Angeles Aqueduct Is Wild

https://practical.engineering/blog/2026/3/17/the-los-angeles-aqueduct-is-wild
328•michaefe•3d ago•173 comments

Padel Chess – tactical simulator for padel

https://www.padelchess.me/
3•AlexGerasim•3d ago•0 comments

The worst volume control UI in the world (2017)

https://uxdesign.cc/the-worst-volume-control-ui-in-the-world-60713dc86950
102•andsoitis•2d ago•49 comments

Turing Award Honors Bennett and Brassard for Quantum Information Science

https://amturing.acm.org
21•throw0101d•2d ago•0 comments

VisiCalc Reconstructed

https://zserge.com/posts/visicalc/
183•ingve•3d ago•74 comments

Lent and Lisp

https://leancrew.com/all-this/2026/02/lent-and-lisp/
44•surprisetalk•2d ago•2 comments

Our commitment to Windows quality

https://blogs.windows.com/windows-insider/2026/03/20/our-commitment-to-windows-quality/
490•hadrien01•12h ago•887 comments

purl: a curl-esque CLI for making HTTP requests that require payment

https://www.purl.dev/
17•bpierre•5h ago•2 comments

Show HN: Red Grid Link – peer-to-peer team tracking over Bluetooth, no servers

https://github.com/RedGridTactical/RedGridLink
37•redgridtactical•8h ago•14 comments

Entso-E final report on Iberian 2025 blackout

https://www.entsoe.eu/publications/blackout/28-april-2025-iberian-blackout/
182•Rygian•20h ago•90 comments

ArXiv declares independence from Cornell

https://www.science.org/content/article/arxiv-pioneering-preprint-server-declares-independence-co...
746•bookstore-romeo•1d ago•263 comments

Delve – Fake Compliance as a Service

https://deepdelver.substack.com/p/delve-fake-compliance-as-a-service
632•freddykruger•1d ago•213 comments

Parallel Perl – Autoparallelizing interpreter with JIT

https://perl.petamem.com/gpw2026/perl-mit-ai-gpw2026.html#/4/1/1
112•bmn__•2d ago•39 comments