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.

Show HN: Moongate – Ultima Online server emulator in .NET 10 with Lua scripting

https://github.com/moongate-community/moongatev2
155•squidleon•4h ago•88 comments

Open Camera is a FOSS Camera App for Android

https://opencamera.org.uk/
122•tetris11•4d ago•55 comments

Tech employment now significantly worse than the 2008 or 2020 recessions

https://twitter.com/JosephPolitano/status/2029916364664611242
126•enraged_camel•1h ago•68 comments

Paul Brainerd, Founder of Aldus PageMaker, has died

https://blog.adafruit.com/2026/03/04/pagemaker-and-aldus-founder-pioneer-paul-brainerd-1947-2026/
73•fortran77•3h ago•12 comments

Launch HN: Palus Finance (YC W26): Better yields on idle cash for startups, SMBs

16•sam_palus•42m ago•14 comments

CT Scans of Health Wearables

https://www.lumafield.com/scan-of-the-month/health-wearables
125•radeeyate•4h ago•19 comments

Astra: An open-source observatory control software

https://github.com/ppp-one/astra
40•pppone•2h ago•13 comments

Payphone Go

https://walzr.com/payphone-go/
206•walz•4d ago•47 comments

Entomologists use a particle accelerator to image ants at scale

https://spectrum.ieee.org/3d-scanning-particle-accelerator-antscan
38•gmays•3h ago•2 comments

Multifactor (YC F25) Is Hiring an Engineering Lead

https://www.ycombinator.com/companies/multifactor/jobs/lcpd60A-engineering-lead
1•multifactor•2h ago

Supertoast tables

https://hatchet.run/blog/supertoast-tables
29•abelanger•2h ago•3 comments

Analytic Fog Rendering with Volumetric Primitives (2025)

https://matejlou.blog/2025/02/11/analytic-fog-rendering-with-volumetric-primitives/
64•surprisetalk•1d ago•3 comments

Workers who love ‘synergizing paradigms’ might be bad at their jobs

https://news.cornell.edu/stories/2026/03/workers-who-love-synergizing-paradigms-might-be-bad-thei...
395•Anon84•5h ago•218 comments

LibreSprite – open-source pixel art editor

https://libresprite.github.io/
197•nicoloren•9h ago•73 comments

Global warming has accelerated significantly

https://www.researchgate.net/publication/389855619_Global_Warming_has_Accelerated_Significantly
717•morsch•4h ago•686 comments

Show HN: Claude-replay – A video-like player for Claude Code sessions

https://github.com/es617/claude-replay
21•es617•3h ago•14 comments

Never Bet Against x86

https://www.osnews.com/story/144527/never-bet-against-x86/
27•raphinou•51m ago•12 comments

Triplet Superconductor

https://www.sciencedaily.com/releases/2026/02/260221000252.htm
4•jonbaer•4d ago•0 comments

Show HN: A trainable, modular electronic nose for industrial use

https://sniphi.com/
12•kwitczak•3d ago•4 comments

Good Bad ISPs

https://community.torproject.org/relay/community-resources/good-bad-isps/
57•rzk•4h ago•14 comments

We might all be AI engineers now

https://yasint.dev/we-might-all-be-ai-engineers-now/
94•sn0wflak3s•9h ago•128 comments

New imagery suggests U.S. responsible for Iran school strike

https://www.cnn.com/2026/03/06/world/video/updates-suggests-us-responsible-iran-school-strike-digvid
11•agluszak•22m ago•0 comments

It took four years until 2011’s iOS 5 gave everyone an emoji keyboard

https://unsung.aresluna.org/im-obviously-taking-a-risk-here-by-advertising-emoji-directly/
100•tobr•10h ago•57 comments

Claude Code wiped our production database with a Terraform command

https://twitter.com/Al_Grigor/status/2029889772181934425
71•jv22222•1h ago•60 comments

Hardening Firefox with Anthropic's Red Team

https://blog.mozilla.org/en/firefox/hardening-firefox-anthropic-red-team/
291•todsacerdoti•7h ago•95 comments

Xous security focused open source on 22nm custom silicon

https://www.crowdsupply.com/sutajio-kosagi/precursor/updates/xous-0-10-0-introducing-baochip-1x-s...
55•ZiiS•3d ago•9 comments

System76 on Age Verification Laws

https://blog.system76.com/post/system76-on-age-verification/
739•LorenDB•14h ago•538 comments

The Brand Age

https://paulgraham.com/brandage.html
444•bigwheels•1d ago•343 comments

Show HN: Swarm – Program a colony of 200 ants using a custom assembly language

https://dev.moment.com/
162•armandhammer10•14h ago•54 comments

GPL upgrades via section 14 proxy delegation

https://runxiyu.org/comp/gplproxy/
94•weinzierl•10h ago•42 comments