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.

Battle for Wesnoth: open-source, turn-based strategy game

https://www.wesnoth.org
241•akyuu•2h ago•59 comments

The cult of vibe coding is insane

https://bramcohen.com/p/the-cult-of-vibe-coding-is-insane
292•drob518•1h ago•197 comments

Launch HN: Freestyle: Sandboxes for AI Coding Agents

https://www.freestyle.sh
125•benswerd•3h ago•67 comments

Show HN: Ghost Pepper – 100% local hold-to-talk speech-to-text for macOS

https://github.com/matthartman/ghost-pepper
18•MattHart88•24m ago•4 comments

A cryptography engineer's perspective on quantum computing timelines

https://words.filippo.io/crqc-timeline/
178•thadt•4h ago•75 comments

German police name alleged leaders of GandCrab and REvil ransomware groups

https://krebsonsecurity.com/2026/04/germany-doxes-unkn-head-of-ru-ransomware-gangs-revil-gandcrab/
216•Bender•6h ago•106 comments

Show HN: GovAuctions lets you browse government auctions at once

https://www.govauctions.app/
93•player_piano•3h ago•36 comments

Book review: There is no antimemetics division

https://www.stephendiehl.com/posts/no_antimimetics/
150•ibobev•6h ago•98 comments

Sky – an Elm-inspired language that compiles to Go

https://github.com/anzellai/sky
87•whalesalad•4h ago•13 comments

Claude Code is unusable for complex engineering tasks with the Feb updates

https://github.com/anthropics/claude-code/issues/42796
509•StanAngeloff•6h ago•342 comments

Eighteen Years of Greytrapping – Is the Weirdness Finally Paying Off?

https://nxdomain.no/~peter/eighteen_years_of_greytrapping.html
26•jruohonen•2d ago•2 comments

Agent Reading Test

https://agentreadingtest.com
17•kaycebasques•1h ago•3 comments

What being ripped off taught me

https://belief.horse/notes/what-being-ripped-off-taught-me/
253•doctorhandshake•7h ago•150 comments

Adobe modifies hosts file to detect whether Creative Cloud is installed

https://www.osnews.com/story/144737/adobe-secretly-modifies-your-hosts-file-for-the-stupidest-rea...
125•rglullis•2h ago•58 comments

The Last Quiet Thing

https://www.terrygodier.com/the-last-quiet-thing
86•coinfused•2d ago•53 comments

Show HN: I built a tiny LLM to demystify how language models work

https://github.com/arman-bd/guppylm
806•armanified•19h ago•123 comments

Londoners are sick of viral videos telling lies about their city

https://www.londoncentric.media/p/london-crime-viral-videos-crime
50•pseudolus•1h ago•30 comments

Microsoft hasn't had a coherent GUI strategy since Petzold

https://www.jsnover.com/blog/2026/03/13/microsoft-hasnt-had-a-coherent-gui-strategy-since-petzold/
748•naves•1d ago•529 comments

PostHog (YC W20) Is Hiring

1•james_impliu•7h ago

Gemma 4 on iPhone

https://apps.apple.com/nl/app/google-ai-edge-gallery/id6749645337
825•janandonly•1d ago•225 comments

Show HN: I built a 2-min quiz that shows you how bad you are at estimating

https://www.convexly.app/
7•convexly•7h ago•1 comments

An open-source 240-antenna array to bounce signals off the Moon

https://moonrf.com/
241•hillcrestenigma•16h ago•52 comments

I won't download your app. The web version is a-ok

https://www.0xsid.com/blog/wont-download-your-app
721•ssiddharth•5h ago•414 comments

Zooming UIs in 2026: Prezi, impress.js, and why I built something different

27•tinchox6•1h ago•9 comments

Reducto releases Deep Extract

https://reducto.ai/blog/reducto-deep-extract-agent
34•raunakchowdhuri•4h ago•3 comments

France pulls last gold held in US for $15B gain

https://www.mining.com/france-pulls-last-gold-held-in-us-for-15b-gain/
517•teleforce•12h ago•284 comments

81yo Dodgers fan can no longer get tickets because he doesn't have a smartphone

https://twitter.com/Suzierizzo1/status/2040864617467924865
288•josephcsible•3h ago•305 comments

Smart people recognize each other – science proves it

https://comuniq.xyz/post?t=920
41•01-_-•2h ago•36 comments

The 1987 game “The Last Ninja” was 40 kilobytes

https://twitter.com/exQUIZitely/status/2040777977521398151
256•keepamovin•17h ago•163 comments

LÖVE: 2D Game Framework for Lua

https://github.com/love2d/love
400•cl3misch•2d ago•202 comments