frontpage.
newsnewestaskshowjobs

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•1y ago

Comments

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

Lore – Open source version control system designed for scalability

https://lore.org/
834•regnerba•7h ago•461 comments

A robot is sprinting towards you. Do you want it running on Claude or Grok?

https://openrouter.ai/blog/insights/royale-last-agent-standing/
72•Usu•1h ago•50 comments

US holds off blacklisting DeepSeek, more than 100 firms deemed security risks

https://www.reuters.com/world/china/us-holds-off-blacklisting-chinas-deepseek-more-than-100-firms...
247•giuliomagnifico•18h ago•263 comments

How we run Firecracker VMs inside EC2 and start browsers in less than 1s

https://browser-use.com/posts/firecracker-browser-infra
152•gregpr07•1d ago•99 comments

GLM-5.2 is the new leading open weights model on Artificial Analysis

https://artificialanalysis.ai/articles/glm-5-2-is-the-new-leading-open-weights-model-on-the-artif...
721•himata4113•12h ago•362 comments

Launch HN: Adam (YC W25) – Open-Source AI CAD

https://github.com/Adam-CAD/CADAM
125•zachdive•5h ago•65 comments

Show HN: An 8-bit live gamecast for baseball

https://ribbie.tv/watch
168•brownrout•5h ago•104 comments

Why Can't Walnut Creek Build 3 Bedroom Apartments with a Playground?

https://kevin.burke.dev/kevin/walnut-creek-single-stair/
12•kevinburke•34m ago•7 comments

Storied Colors – a catalogue of named colors

https://storiedcolors.com/
8•susiecambria•20m ago•0 comments

Leaked financial docs show OpenAI is losing billions of dollars a year

https://arstechnica.com/ai/2026/06/leaked-financial-docs-show-openai-is-losing-billions-of-dollar...
38•greenchair•38m ago•11 comments

U.S. science is in chaos

https://www.scientificamerican.com/article/americas-compact-between-science-and-politics-is-broken/
538•presspot•12h ago•599 comments

RFC 10008: The new HTTP Query Method

https://www.rfc-editor.org/info/rfc10008/
292•schappim•11h ago•134 comments

The Return of Rigorous Full-System Timing Simulation

https://www.sigarch.org/the-return-of-rigorous-full-system-timing-simulation/
15•matt_d•1d ago•0 comments

Volkswagen started blocking GrapheneOS users

https://discuss.grapheneos.org/d/35949-volkswagen-app?page=3
406•microtonal•7h ago•288 comments

Tesco moving 40k server workloads off VMware amid Broadcom's abusive conduct

https://arstechnica.com/information-technology/2026/06/tesco-moving-40000-server-workloads-off-vm...
36•Bender•1h ago•7 comments

Trellis AI (YC W24) hiring a product lead to build agents for healthcare access

https://www.ycombinator.com/companies/trellis-ai/jobs/Cg94htp-product-lead
1•macklinkachorn•5h ago

The Competitive Moat That AI Can't Replicate

https://ghostinthedata.info/posts/2026/2026-06-13-human-connection-moat/
82•speckx•4h ago•69 comments

Loreline – Tools for writing interactive fiction

https://loreline.app/en/
11•smartmic•1h ago•0 comments

Why thinking out loud with someone beats thinking alone

https://www.thesignalist.io/s/the-dialogue-dividend/
129•kodesko•9h ago•60 comments

Show HN: Inkwash, a watercolor sketching app and explanation

https://johnowhitaker.github.io/inkwash/about
139•Yenrabbit•3d ago•18 comments

Want your images back? That'll be $5

https://www.lutr.dev/want-your-images-back-sure-that-ll-be-5-dollars
573•lutr•9h ago•239 comments

A World of First Drafts

https://leejo.github.io/2026/06/14/first_drafts/
4•leejo•3d ago•0 comments

Hacker News but for independent blogs

https://bubbles.town/
500•headalgorithm•14h ago•166 comments

MicroUI – A tiny, portable, immediate-mode UI library written in ANSI C

https://github.com/rxi/microui
165•peter_d_sherman•10h ago•56 comments

Using AI to improve a challenging reaction in medicinal chemistry

https://openai.com/index/ai-chemist-improves-reaction/
41•ilreb•4h ago•17 comments

Kirkland Roundabouts

https://kirklandroundabouts.com
135•DenisM•3d ago•105 comments

Made a free macOS menu bar app that fixes typing in the wrong keyboard layout

https://flickey.site
18•tal_alfi•2h ago•9 comments

Image Compression

https://www.makingsoftware.com/chapters/image-compression
130•vinhnx•3d ago•17 comments

Why do commercial spaces sit vacant? (2025)

https://www.freerange.city/p/why-do-commercial-spaces-sit-vacant
97•Redoubts•15h ago•143 comments

The founder's playbook: Building an AI-native startup

https://claude.com/blog/the-founders-playbook
193•e2e4•15h ago•148 comments