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•8mo 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.

We can't send mail farther than 500 miles (2002)

https://web.mit.edu/jemorris/humor/500-miles
72•giancarlostoro•1h ago•7 comments

Render Mermaid diagrams as SVGs or ASCII art

https://github.com/lukilabs/beautiful-mermaid
121•mellosouls•3h ago•19 comments

Maine’s ‘Lobster Lady’ who fished for nearly a century dies aged 105

https://www.theguardian.com/us-news/2026/jan/28/maine-lobster-lady-dies-aged-105
79•NaOH•2h ago•6 comments

Microsoft's Azure Linux

https://github.com/microsoft/azurelinux
11•AbuAssar•37m ago•1 comments

Mecha Comet – Open Modular Linux Handheld Computer

https://mecha.so/comet
56•Realman78•3d ago•16 comments

Satellites encased in wood are in the works

https://www.economist.com/science-and-technology/2026/01/21/satellites-encased-in-wood-are-in-the...
38•andsoitis•3d ago•9 comments

Trinity large: An open 400B sparse MoE model

https://www.arcee.ai/blog/trinity-large
151•linolevan•1d ago•45 comments

Airfoil (2024)

https://ciechanow.ski/airfoil/
397•brk•14h ago•51 comments

Questom (YC F25) is hiring an engineer

https://www.ycombinator.com/companies/questom/jobs/UBebsyO-founding-engineer
1•ritanshu•1h ago

An Illustrated Guide to Hippo Castration

https://www.science.org/content/article/scienceshot-illustrated-guide-hippo-castration
8•joebig•4d ago•5 comments

Show HN: A MitM proxy to see what your LLM tools are sending

https://github.com/jmuncor/sherlock
132•jmuncor•10h ago•56 comments

Did a celebrated researcher obscure a baby's poisoning?

https://www.newyorker.com/magazine/2026/02/02/did-a-celebrated-researcher-obscure-a-fatal-poisoning
122•littlexsparkee•1d ago•43 comments

Android's desktop interface leaks

https://9to5google.com/2026/01/27/android-desktop-leak/
193•thunderbong•1d ago•271 comments

Somebody used spoofed ADSB signals to raster the meme of JD Vance

https://alecmuffett.com/article/143548
438•wubin•7h ago•106 comments

Mousefood – Build embedded terminal UIs for microcontrollers

https://github.com/ratatui/mousefood
182•orhunp_•11h ago•42 comments

Bf-Tree: modern read-write-optimized concurrent larger-than-memory range index

https://github.com/microsoft/bf-tree
64•SchwKatze•7h ago•12 comments

Show HN: Shelvy Books

https://shelvybooks.com
18•tekkie00•3h ago•7 comments

Tesla ending Models S and X production

https://www.cnbc.com/2026/01/28/tesla-ending-model-s-x-production.html
161•keyboardJones•6h ago•220 comments

Oban, the job processing framework from Elixir, has come to Python

https://www.dimamik.com/posts/oban_py/
201•dimamik•12h ago•82 comments

Computer History Museum Launches Digital Portal to Its Collection

https://computerhistory.org/press-releases/computer-history-museum-launches-digital-portal-to-its...
134•ChrisArchitect•11h ago•24 comments

UK Government’s ‘AI Skills Hub’ was delivered by PwC for £4.1M

https://mahadk.com/posts/ai-skills-hub
276•JustSkyfall•5h ago•82 comments

Hellenistic War-Elephants and the Use of Alcohol Before Battle

https://www.cambridge.org/core/journals/classical-quarterly/article/hellenistic-warelephants-and-...
42•perihelions•5d ago•19 comments

LM Studio 0.4

https://lmstudio.ai/blog/0.4.0
105•jiqiren•10h ago•63 comments

Spinning around: Please don't – Common problems with spin locks

https://www.siliceum.com/en/blog/post/spinning-around/
93•bdash•12h ago•33 comments

Show HN: Pinecone Explorer – Desktop GUI for the Pinecone vector database

https://www.pinecone-explorer.com
13•arsentjev•1d ago•0 comments

When Every Network is 192.168.1.x

https://netrinos.com/blog/conflicting-subnets
86•pcarroll•15h ago•73 comments

The Five Levels: From spicy autocomplete to the dark factory

https://www.danshapiro.com/blog/2026/01/the-five-levels-from-spicy-autocomplete-to-the-software-f...
49•benwerd•5d ago•52 comments

Some notes on starting to use Django

https://jvns.ca/blog/2026/01/27/some-notes-on-starting-to-use-django/
223•ingve•1d ago•117 comments

In a genre where spoilers are devastating, how do we talk about puzzle games?

https://thinkygames.com/features/in-a-genre-where-information-is-sacred-and-spoilers-are-devastat...
50•tobr•5d ago•38 comments

Amazon cuts 16k jobs

https://www.reuters.com/legal/litigation/amazon-cuts-16000-jobs-globally-broader-restructuring-20...
601•DGAP•13h ago•823 comments