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

Comments

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

Show HN: A game where you build a GPU

https://jaso1024.com/mvidia/
389•Jaso1024•5h ago•118 comments

How many products does Microsoft have named 'Copilot'?

https://teybannerman.com/strategy/2026/03/31/how-many-microsoft-copilot-are-there.html
257•gpi•3h ago•140 comments

Embarrassingly simple self-distillation improves code generation

https://arxiv.org/abs/2604.01193
495•Anon84•12h ago•157 comments

Show HN: TurboQuant-WASM – Google's vector quantization in the browser

https://github.com/teamchong/turboquant-wasm
121•teamchong•7h ago•4 comments

Author of "Careless People" banned from saying anything negative about Meta

https://www.thetimes.com/uk/technology-uk/article/sarah-wynn-williams-careless-people-meta-nrffdfpmf
676•macleginn•7h ago•440 comments

Apple approves driver that lets Nvidia eGPUs work with Arm Macs

https://www.theverge.com/tech/907003/apple-approves-driver-that-lets-nvidia-egpus-work-with-arm-macs
301•naves•6h ago•138 comments

Ruckus: Racket for iOS

https://ruckus.defn.io/
33•nsm•2d ago•1 comments

The Indie Internet Index – submit your favorite sites

https://iii.social
74•freshman_dev•8h ago•12 comments

Components of a Coding Agent

https://magazine.sebastianraschka.com/p/components-of-a-coding-agent
130•MindGods•9h ago•54 comments

Some Unusual Trees

https://thoughts.wyounas.com/p/some-unusual-trees
226•simplegeek•13h ago•67 comments

Show HN: sllm – Split a GPU node with other developers, unlimited tokens

https://sllm.cloud
93•jrandolf•7h ago•58 comments

Emotion concepts and their function in a large language model

https://www.anthropic.com/research/emotion-concepts-function
120•dnw•16h ago•106 comments

The CMS is dead, long live the CMS

https://next.jazzsequence.com/posts/the-cms-is-dead-long-live-the-cms
108•taubek•11h ago•66 comments

Iranian missile blitz takes down AWS data centers in Bahrain and Dubai

https://www.tomshardware.com/tech-industry/iranian-missile-blitz-takes-down-aws-data-centers-in-b...
99•lschueller•4h ago•75 comments

Breaking Enigma with Index of Coincidence on a Commodore 64

https://imapenguin.com/2026/03/breaking-enigma-with-index-of-coincidence-on-a-commodore-64/
8•saganus•4d ago•2 comments

IBM 3270 Information Display System: Color and Programmed Symbols (1979) [pdf]

https://bitsavers.org/pdf/ibm/3278/GA33-3056-0_3270_Information_Display_System_Color_and_Programm...
26•hggh•5h ago•6 comments

Plague Ships (2020)

https://www.afloat.com.au/feature/plague-ships/
31•bryanrasmussen•5h ago•5 comments

Claude Code Found a Linux Vulnerability Hidden for 23 Years

https://mtlynch.io/claude-code-found-linux-vulnerability/
338•eichin•22h ago•215 comments

Sopwith – 1984 Game (2000)

http://www.sopwith.org/
67•elvis70•4h ago•32 comments

Scientists observe an immune signaling complex forming inside cells

https://news.stanford.edu/stories/2026/03/immune-response-inside-cells-inflammation-research
78•ohjeez•4h ago•6 comments

Microsoft to force updates to Windows 11 25H2 for PCs with older OS versions

https://www.tomshardware.com/software/windows/microsoft-forces-updates-to-windows-11-25h2-update-...
27•cratermoon•1h ago•12 comments

Training mRNA Language Models Across 25 Species for $165

95•maziyar•3d ago•27 comments

The Cathedral, the Bazaar, and the Winchester Mystery House

https://www.dbreunig.com/2026/03/26/winchester-mystery-house.html
142•dbreunig•3d ago•52 comments

Electrical Transformer Manufacturing Is Throttling the Electrified Future

https://www.bloomberg.com/features/2025-bottlenecks-transformers/
48•toomuchtodo•3d ago•43 comments

Mbodi AI (YC P25) Is Hiring

https://www.ycombinator.com/companies/mbodi-ai/jobs/mf9L3sy-senior-robotics-engineer-systems-cont...
1•chitianhao•10h ago

Tell HN: Anthropic no longer allowing Claude Code subscriptions to use OpenClaw

1010•firloop•23h ago•768 comments

When legal sports betting surges, so do Americans' financial problems

https://www.npr.org/2026/04/04/nx-s1-5773354/legal-sports-betting-research-credit-bankruptcy
132•pseudolus•7h ago•93 comments

Show HN: I made open source, zero power PCB hackathon badges

https://github.com/KaiPereira/Overglade-Badges
6•kaipereira•8h ago•0 comments

Why the most valuable things you know are things you cannot say

https://deadneurons.substack.com/p/why-the-most-valuable-things-you
99•nr378•5h ago•39 comments

Artemis II crew take “spectacular” image of Earth

https://www.bbc.com/news/articles/ce8jzr423p9o
1009•andsoitis•1d ago•350 comments