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.

Google releases Gemma 4 open models

https://deepmind.google/models/gemma/gemma-4/
827•jeffmcjunkin•4h ago•249 comments

Tailscale's new macOS home

https://tailscale.com/blog/macos-notch-escape
168•tosh•2h ago•74 comments

Cursor 3

https://cursor.com/blog/cursor-3
132•adamfeldman•2h ago•112 comments

George Goble died recently – known for first dual-CPU-Unix and fast BBQ lighting

https://www.legacy.com/us/obituaries/wlfi/name/george-goble-obituary?id=61144779
64•finaard•2h ago•14 comments

Qwen3.6-Plus: Towards real world agents

https://qwen.ai/blog?id=qwen3.6
352•pretext•6h ago•118 comments

Good ideas do not need lots of lies in order to gain public acceptance (2008)

https://blog.danieldavies.com/2004/05/d-squared-digest-one-minute-mba.html
57•sedev•3h ago•10 comments

Significant progress made on Xbox 360 recompilation

https://readonlymemo.com/rexglue-xbox-360-recompilation-interview/
38•tetrisgm•4d ago•7 comments

Lemonade by AMD: a fast and open source local LLM server using GPU and NPU

https://lemonade-server.ai
376•AbuAssar•9h ago•90 comments

LinkedIn is illegally searching your computer

https://browsergate.eu/
1427•digitalWestie•7h ago•624 comments

Zep AI Is Hiring – Building the Agent Context Layer (YC W24)

https://www.ycombinator.com/companies/zep-ai/jobs
1•roseway4•2h ago

JSON Canvas Spec

https://jsoncanvas.org/spec/1.0/
54•tobr•3d ago•19 comments

OpenAI Acquires TBPN

https://openai.com/index/openai-acquires-tbpn/
77•surprisetalk•3h ago•72 comments

Artemis computer running two instances of MS outlook; they can't figure out why

https://bsky.app/profile/nikigrayson.com/post/3miik2wzosk25
194•mooreds•5h ago•139 comments

Inside Nepal's Fake Rescue Racket

https://kathmandupost.com/money/2026/03/27/inside-nepal-s-fake-rescue-racket
225•lode•9h ago•92 comments

Decisions that eroded trust in Azure – by a former Azure Core engineer

https://isolveproblems.substack.com/p/how-microsoft-vaporized-a-trillion
20•axelriet•5h ago•5 comments

Significant Raise of Reports

https://lwn.net/Articles/1065620/
247•stratos123•11h ago•130 comments

Magic the Gathering Deck Shuffler

https://mtg.jessitron.honeydemo.io/
13•mooreds•3d ago•2 comments

IBM Announces Strategic Collaboration with Arm

https://newsroom.ibm.com/2026-04-02-ibm-announces-strategic-collaboration-with-arm-to-shape-the-f...
249•bonzini•12h ago•162 comments

Yggdrasil Network

https://yggdrasil-network.github.io/
60•Velocifyer•2h ago•18 comments

Show HN: A P2P messenger with dual network modes (Fast and Tor)

https://github.com/Realman78/Kiyeovo/
16•Realman78•5h ago•2 comments

Artemis II will use laser beams to live-stream 4K moon footage at 260 Mbps

https://www.tomshardware.com/networking/artemis-ii-will-use-laser-beams-to-live-stream-4k-moon-fo...
275•speckx•5h ago•124 comments

Sweden goes back to basics, swapping screens for books in the classroom

https://undark.org/2026/04/01/sweden-schools-books/
671•novaRom•10h ago•354 comments

Renewables reached nearly 50% of global electricity capacity last year

https://www.theregister.com/2026/04/01/renewables_generated_nearly_half_global_power/
199•Growtika•5h ago•95 comments

Delve allegedly forked an open-source tool and sold it as its own

https://techcrunch.com/2026/04/01/the-reputation-of-troubled-yc-startup-delve-has-gotten-even-worse/
237•nickvec•5h ago•116 comments

Hugo's New CSS Powers

https://www.brycewray.com/posts/2026/04/hugos-new-css-powers/
23•speckx•2h ago•4 comments

Amazon to add 3.5% fuel and logistics surcharge as Iran war raises energy prices

https://www.cnbc.com/2026/04/02/amazon-add-3point5percent-fuel-and-logistics-surcharge-for-seller...
57•lehi•2h ago•22 comments

The case for zero-error horizons in trustworthy LLMs

https://arxiv.org/abs/2601.15714
57•daigoba66•5h ago•80 comments

'Backrooms' and the Rise of the Institutional Gothic

https://thereader.mitpress.mit.edu/backrooms-and-the-rise-of-the-institutional-gothic/
141•anarbadalov•7h ago•69 comments

Quadratic Micropass Type Inference

https://articles.luminalang.com/a/micropass-inference/
23•simvux•6d ago•6 comments

Modern SQLite: Features You Didn't Know It Had

https://slicker.me/sqlite/features.htm
149•thunderbong•4h ago•38 comments