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

Sovereignty in a System Prompt

https://pop.rdi.sh/sovereignty-in-a-system-prompt/
11•0x5FC3•18h ago•1 comments

I'm helping my dog vibe code games

https://www.calebleak.com/posts/dog-game/
872•cleak•14h ago•252 comments

Cl-kawa: Scheme on Java on Common Lisp

https://github.com/atgreen/cl-kawa
28•varjag•2d ago•5 comments

Show HN: Moonshine Open-Weights STT models – higher accuracy than WhisperLargev3

https://github.com/moonshine-ai/moonshine
225•petewarden•10h ago•46 comments

Mercury 2: Fast reasoning LLM powered by diffusion

https://www.inceptionlabs.ai/blog/introducing-mercury-2
198•fittingopposite•9h ago•87 comments

Pi – A minimal terminal coding harness

https://pi.dev
326•kristianpaul•10h ago•137 comments

Mac mini will be made at a new facility in Houston

https://www.apple.com/newsroom/2026/02/apple-accelerates-us-manufacturing-with-mac-mini-production/
489•haunter•10h ago•479 comments

Turing Completeness of GNU Find: From Mkdir-Assisted Loops to Standalone Comput

https://arxiv.org/abs/2602.20762
12•todsacerdoti•2h ago•1 comments

Japanese Death Poems

https://www.secretorum.life/p/japanese-death-poems-part-3
11•NaOH•2d ago•0 comments

Hacking an old Kindle to display bus arrival times

https://www.mariannefeng.com/portfolio/kindle/
233•mengchengfeng•12h ago•53 comments

Georgian wine culture dates back, uninterrupted, approximately 8k years

https://www.wsetglobal.com/knowledge-centre/blog/2023/july/05/exploring-georgian-wine-history-gra...
50•Anon84•4d ago•38 comments

Show HN: Emdash – Open-source agentic development environment

https://github.com/generalaction/emdash
145•onecommit•14h ago•57 comments

Amazon accused of widespread scheme to inflate prices across the economy

https://www.thebignewsletter.com/p/amazon-busted-for-widespread-price
375•toomuchtodo•7h ago•119 comments

I pitched a roller coaster to Disneyland at age 10 in 1978

https://wordglyph.xyz/one-piece-at-a-time
445•wordglyph•19h ago•162 comments

Nearby Glasses

https://github.com/yjeanrenaud/yj_nearbyglasses
305•zingerlio•14h ago•114 comments

React just left meta. Here's what that means for developers

https://sulat.com/p/react-just-left-meta-heres-what-that
5•zenoware•1h ago•0 comments

Steel Bank Common Lisp

https://www.sbcl.org/
199•tosh•13h ago•75 comments

Cell Service for the Fairly Paranoid

https://www.cape.co/
83•0xWTF•9h ago•90 comments

Corgi Labs (YC W23) Is Hiring

https://www.ycombinator.com/companies/corgi-labs/jobs/ZiEIf7a-founders-associate
1•leastsquares•7h ago

Anthropic Drops Flagship Safety Pledge

https://time.com/7380854/exclusive-anthropic-drops-flagship-safety-pledge/
253•cwwc•7h ago•100 comments

Show HN: Context Mode – 315 KB of MCP output becomes 5.4 KB in Claude Code

https://github.com/mksglu/claude-context-mode
37•mksglu•1h ago•12 comments

Hugging Face Skills

https://github.com/huggingface/skills
159•armcat•14h ago•44 comments

3D-Printed electric motor via multi-modal, multi-material extrusion

https://www.tandfonline.com/doi/full/10.1080/17452759.2026.2613185
8•westurner•3d ago•7 comments

Aesthetics of single threading

https://ta.fo/aesthetics-of-single-threading/
67•todsacerdoti•3d ago•15 comments

Looks like it is happening

https://www.math.columbia.edu/~woit/wordpress/?p=15500
169•jjgreen•10h ago•115 comments

We installed a single turnstile to feel secure

https://idiallo.com/blog/installed-single-turnstile-for-security-theater
331•firefoxd•2d ago•154 comments

Stripe valued at $159B, 2025 annual letter

https://stripe.com/newsroom/news/stripe-2025-update
197•jez•17h ago•209 comments

IRS Tactics Against Meta Open a New Front in the Corporate Tax Fight

https://www.nytimes.com/2026/02/24/business/irs-meta-corporate-taxes.html
206•mitchbob•19h ago•206 comments

Optophone

https://en.wikipedia.org/wiki/Optophone
67•Hooke•4d ago•11 comments

Ask HN: Share your productive usage of OpenClaw

57•aavci•4h ago•31 comments