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•1y ago

Comments

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

Microsoft degrades functionality of perpetually-licensed offline products

https://consumerrights.wiki/w/Microsoft_Office_2019_and_2021_for_Mac_view-only_conversion_(2026)
195•antipurist•1h ago•72 comments

Domain expertise has always been the real moat

https://www.brethorsting.com/blog/2026/05/domain-expertise-has-always-been-the-real-moat/
234•aaronbrethorst•4h ago•155 comments

I found a seashell in the middle of the desert

https://github.com/Hawzen/I-found-a-seashell-in-the-middle-of-the-desert
194•Hawzen•1d ago•57 comments

Accenture to acquire Ookla

https://newsroom.accenture.com/news/2026/accenture-to-acquire-ookla-to-strengthen-network-intelli...
233•Garbage•8h ago•120 comments

wolfSSL releases a new product; wolfCOSE a zero alloc C embbedded COSE stack

https://github.com/wolfSSL/wolfCOSE
54•aidangarske•4h ago•10 comments

Jef Raskin, the Visionary Behind the Mac (2013)

https://lowendmac.com/2013/jef-raskin-the-visionary-behind-the-mac/
64•tylerdane•5h ago•30 comments

Shantell Sans

https://shantellsans.com/process
37•aleda145•2h ago•0 comments

Zig ELF Linker Improvements Devlog

https://ziglang.org/devlog/2026/#2026-05-30
167•kristoff_it•7h ago•46 comments

Voxel Space (2017)

https://s-macke.github.io/VoxelSpace/
248•davikr•10h ago•55 comments

Cheese Paper: a text editor specifically designed for writing

https://brie.gay/cheese-paper/
31•sohkamyung•1h ago•6 comments

Parallel Reconstruction of Lawful TLS Wiretapping

https://remyhax.xyz/posts/reproducing-lawful-tls-wiretapping/
51•jerrythegerbil•5h ago•25 comments

OpenRouter raises $113M Series B

https://openrouter.ai/announcements/series-b
347•freeCandy•7h ago•166 comments

Show HN: 500 years of Joseon court omens as an observability dashboard

https://ajin.im/is/building/omen.ops/
72•poppypetalmask•5h ago•11 comments

Openrsync: An implementation of rsync, by the OpenBSD team

https://github.com/kristapsdz/openrsync
317•sph•14h ago•141 comments

Design Engineering Magazine

https://interfaces.dev/
46•hnhsh•4h ago•5 comments

Gustav Klimt and Egon Schiele in Conversation

https://www.theparisreview.org/blog/2018/01/31/the-drawings-of-klimt-and-schiele/
10•rballpug•2d ago•1 comments

Microcode inside the Intel 8087 floating-point chip: register exchange

https://www.righto.com/2026/05/microcode-inside-intel-8087-floating.html
82•pwg•7h ago•16 comments

C++ CLI for folder encryption with AES-256-GCM and USB-based key loading

4•nextma•2d ago•0 comments

Dusklight – GC Twilight Princess Decompiled

https://twilitrealm.dev/
55•shepherdjerred•4h ago•6 comments

Pandoc Templates

https://pandoc-templates.org/
357•ankitg12•15h ago•48 comments

Tsplat – Run Gaussian splatting in your terminal

https://github.com/darshanmakwana412/tsplat
26•martianvoid•2d ago•7 comments

Zig: Build System Reworked

https://ziglang.org/devlog/2026/#2026-05-26
319•tosh•16h ago•206 comments

Werner Herzog in conversation with Paul Cronin (2014)

https://fsgworkinprogress.com/2014/09/26/insignificant-bullets-evil-poachers-and-l-a-culture/
71•Michelangelo11•8h ago•24 comments

Navier-Stokes fluid simulation explained with Godot game engine

https://myzopotamia.dev/navier-stokes-fluid-simulation-explained-with-godot
177•myzek•4d ago•23 comments

Leo's first encyclical attacks technological messianism

https://www.economist.com/europe/2026/05/28/leos-first-encyclical-attacks-technological-messianism
173•1vuio0pswjnm7•14h ago•192 comments

It takes two neurons to ride a bicycle (2004)

https://fermatslibrary.com/s/it-takes-two-neurons-to-ride-a-bicycle#email-newsletter
95•malshe•4d ago•42 comments

90% of the T Distribution

https://entropicthoughts.com/ninety-percent-of-the-t-distribution
15•ibobev•3d ago•6 comments

Show HN: Open Envelope – an open schema for defining AI agent teams

https://openenvelope.org/docs/schema/
16•ashconway•2d ago•2 comments

IXI's autofocusing lenses are almost ready to replace multifocal glasses

https://www.engadget.com/wearables/ixis-autofocusing-lenses-multifocal-glasses-ces-2026-212608427...
161•amichail•3d ago•73 comments

Rotary GPU: Exploring Local Execution for Large MoE Models Under Limited VRAM

https://arxiv.org/abs/2605.29135
8•dryarzeg•3h ago•0 comments