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

Comments

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

US SEC preparing to scrap quarterly reporting requirement

https://www.reuters.com/business/finance/us-sec-preparing-eliminate-quarterly-reporting-requireme...
216•djoldman•1h ago•109 comments

Leanstral: Open-source agent for trustworthy coding and formal proof engineering

https://mistral.ai/news/leanstral
297•Poudlardo•4h ago•54 comments

Meta’s renewed commitment to jemalloc

https://engineering.fb.com/2026/03/02/data-infrastructure/investing-in-infrastructure-metas-renew...
339•hahahacorn•7h ago•142 comments

The “small web” is bigger than you might think

https://kevinboone.me/small_web_is_big.html
311•speckx•8h ago•133 comments

US commercial insurers pay 254% of Medicare for the same hospital procedures

https://github.com/rexrodeo/american-healthcare-conundrum
221•rexroad•8h ago•161 comments

My Journey to a reliable and enjoyable locally hosted voice assistant (2025)

https://community.home-assistant.io/t/my-journey-to-a-reliable-and-enjoyable-locally-hosted-voice...
317•Vaslo•12h ago•94 comments

In space, no one can hear you kernel panic

https://increment.com/software-architecture/in-space-no-one-can-hear-you-kernel-panic/
22•p0u4a•4d ago•2 comments

Show HN: Thermal Receipt Printers – Markdown and Web UI

https://github.com/sadreck/ThermalMarky
32•howlett•3d ago•8 comments

Show HN: Oxyde – Pydantic-native async ORM with a Rust core

https://github.com/mr-fatalyst/oxyde
58•mr_Fatalyst•3d ago•35 comments

Why I love FreeBSD

https://it-notes.dragas.net/2026/03/16/why-i-love-freebsd/
351•enz•14h ago•164 comments

Canopy Height Maps v2

https://ai.meta.com/blog/world-resources-institute-dino-canopy-height-maps-v2/?_fb_noscript=1
8•tzury•4d ago•0 comments

Starlink Mini as a failover

https://www.jackpearce.co.uk/posts/starlink-failover/
197•jkpe•17h ago•167 comments

Language Model Teams as Distrbuted Systems

https://arxiv.org/abs/2603.12229
71•jryio•8h ago•32 comments

Polymarket gamblers threaten to kill me over Iran missile story

https://www.timesofisrael.com/gamblers-trying-to-win-a-bet-on-polymarket-are-vowing-to-kill-me-if...
1343•defly•13h ago•881 comments

AirPods Max 2

https://www.apple.com/airpods-max/
208•ssijak•12h ago•378 comments

AnswerThis (YC F25) Is Hiring

https://www.ycombinator.com/companies/answerthis/jobs/CNdatw5-founding-engineering-lead
1•ayush4921•4h ago

Launch HN: Voygr (YC W26) – A better maps API for agents and AI apps

65•ymarkov•9h ago•48 comments

Show HN: Claude Code skills that build complete Godot games

https://github.com/htdt/godogen
161•htdt•9h ago•100 comments

Apideck CLI – An AI-agent interface with much lower context consumption than MCP

https://www.apideck.com/blog/mcp-server-eating-context-window-cli-alternative
122•gertjandewilde•10h ago•105 comments

On The Need For Understanding

https://blog.information-superhighway.net/on-the-need-for-understanding
85•zdw•5d ago•37 comments

Home Assistant waters my plants

https://finnian.io/blog/home-assistant-waters-my-plants/
252•finniananderson•4d ago•131 comments

Show HN: Trackm, a personal finance web app

https://trackm.net
20•iccananea•2h ago•10 comments

Corruption erodes social trust more in democracies than in autocracies

https://www.frontiersin.org/journals/political-science/articles/10.3389/fpos.2026.1779810/full
659•PaulHoule•14h ago•345 comments

Lies I was told about collaborative editing, Part 2: Why we don't use Yjs

https://www.moment.dev/blog/lies-i-was-told-pt-2
202•antics•4d ago•97 comments

The bureaucracy blocking the chance at a cure

https://www.writingruxandrabio.com/p/the-bureaucracy-blocking-the-chance
90•item•1d ago•118 comments

Kona EV Hacking

http://techno-fandom.org/~hobbit/cars/ev/
119•AnnikaL•5d ago•67 comments

Lazycut: A simple terminal video trimmer using FFmpeg

https://github.com/emin-ozata/lazycut
155•masterpos•13h ago•50 comments

Nvidia Launches Vera CPU, Purpose-Built for Agentic AI

https://nvidianews.nvidia.com/news/nvidia-launches-vera-cpu-purpose-built-for-agentic-ai
126•lewismenelaws•5h ago•78 comments

The future of Amazon coders is the present of Amazon warehouse workers

https://pluralistic.net/2025/03/13/electronic-whipping/
11•martin-t•26m ago•1 comments

Cert Authorities Check for DNSSEC from Today

https://www.grepular.com/Cert_Authorities_Check_for_DNSSEC_From_Today
88•zdw•1d ago•208 comments