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

Xfwl4 – The Roadmap for a Xfce Wayland Compositor

https://alexxcons.github.io/blogpost_15.html
148•pantalaimon•3h ago•84 comments

430k-year-old well-preserved wooden tools are the oldest ever found

https://archaeologymag.com/2026/01/430000-year-old-wooden-tools-marathousa/
57•bookofjoe•1h ago•40 comments

I made my own Git

https://tonystr.net/blog/git_immitation
216•TonyStr•5h ago•92 comments

Heathrow scraps liquid container limit

https://www.bbc.com/news/articles/c1evvx89559o
503•robotsliketea•3d ago•676 comments

Cloudflare claimed they implemented Matrix on Cloudflare workers. They didn't

https://tech.lgbt/@JadedBlueEyes/115967791152135761
128•JadedBlueEyes•1h ago•36 comments

Amazon to Shut Down All Amazon Go and Amazon Fresh Stores

https://www.wsj.com/business/retail/amazon-to-shut-down-all-amazon-go-and-amazon-fresh-stores-030...
61•gmays•49m ago•33 comments

The Enchiridion by Epictetus

https://www.gutenberg.org/files/45109/45109-h/45109-h.htm
46•atropoles•3d ago•17 comments

Snow Simulation Toy

https://potch.me/2026/snow-simulation-toy.html
108•surprisetalk•1w ago•27 comments

Two Twisty Shapes Resolve a Centuries-Old Topology Puzzle

https://www.quantamagazine.org/two-twisty-shapes-resolve-a-centuries-old-topology-puzzle-20260120/
17•tzury•20h ago•0 comments

Velox: A Port of Tauri to Swift by Miguel de Icaza

https://github.com/velox-apps/velox
130•wahnfrieden•1w ago•52 comments

TikTok users can't upload anti-ICE videos. The company blames tech issues

https://www.cnn.com/2026/01/26/tech/tiktok-ice-censorship-glitch-cec
560•kotaKat•3h ago•367 comments

The age of Pump and Dump software

https://tautvilas.medium.com/software-pump-and-dump-c8a9a73d313b
116•brisky•2h ago•42 comments

Amazon Closing Fresh and Go Stores

https://finance.yahoo.com/news/amazon-closing-fresh-grocery-convenience-150437789.html
49•trenning•1h ago•24 comments

Handling Long Branches

https://maskray.me/blog/2026-01-25-handling-long-branches
14•ingve•1d ago•0 comments

9 Mothers (YC X26, Defense Tech) Is Hiring

https://jobs.ashbyhq.com/9-mothers?utm_source=x8pZ4B3P3Q
1•ukd1•4h ago

Show HN: We Built the 1. EU-Sovereignty Audit for Websites

https://lightwaves.io/en/eu-audit/
80•cmkr•2h ago•61 comments

A list of fun destinations for telnet

https://telnet.org/htm/places.htm
227•tokyobreakfast•13h ago•75 comments

The C-Shaped Hole in Package Management

https://nesbitt.io/2026/01/27/the-c-shaped-hole-in-package-management.html
37•tanganik•6h ago•39 comments

We Do Not Support Opt-Out Forms (2025)

https://consciousdigital.org/why-we-do-not-support-opt-out-forms/
55•mefengl•7h ago•24 comments

Kimi Released Kimi K2.5, Open-Source Visual SOTA-Agentic Model

https://www.kimi.com/blog/kimi-k2-5.html
376•nekofneko•11h ago•160 comments

Apple introduces new AirTag with longer range and improved findability

https://www.apple.com/newsroom/2026/01/apple-introduces-new-airtag-with-expanded-range-and-improv...
551•meetpateltech•1d ago•659 comments

Ask HN: Books to learn 6502 ASM and the Apple II

80•abkt•5h ago•51 comments

The Universal Pattern Popping Up in Math, Physics and Biology (2013)

https://www.quantamagazine.org/in-mysterious-pattern-math-and-nature-converge-20130205/
111•kerim-ca•4d ago•40 comments

ChatGPT Containers can now run bash, pip/npm install packages and download files

https://simonwillison.net/2026/Jan/26/chatgpt-containers/
404•simonw•21h ago•290 comments

The hidden engineering of runways

https://practical.engineering/blog/2026/1/20/the-hidden-engineering-of-runways
377•crescit_eundo•6d ago•90 comments

India and EU announce landmark trade deal

https://www.bbc.com/news/articles/crrnee01r9jo
100•Palmik•4h ago•37 comments

Windows 11's Patch Tuesday nightmare gets worse

https://www.windowscentral.com/microsoft/windows-11/windows-11s-botched-patch-tuesday-update-nigh...
392•01-_-•1d ago•308 comments

There is an AI code review bubble

https://www.greptile.com/blog/ai-code-review-bubble
315•dakshgupta•1d ago•213 comments

Over 36,500 killed in Iran's deadliest massacre, documents reveal

https://www.iranintl.com/en/202601255198
735•mhb•1d ago•481 comments

Refinement Without Specification

https://buttondown.com/hillelwayne/archive/refinement-without-specification/
24•BerislavLopac•6d ago•0 comments