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.

GPT-6 Astra

https://openai.com/index/gpt-6-astra/
1258•kibae•6h ago•987 comments

Qwen 3.8 27B available on Cerebras at 1500 tokens/s

https://inference-docs.cerebras.ai/models/overview
438•altertable•6h ago•128 comments

.name Termination

https://neil.fraser.name/news/2026/09/03/
1309•pavel_lishin•9h ago•369 comments

The largest electric aircraft just flew [video]

https://www.youtube.com/watch?v=nM86DBOqgPM
174•feb•2d ago•121 comments

Porting my 1993 Amiga game to Godot, with an LLM reading the 68000 assembly

https://babyloniantwins.com/blog/porting-a-1993-amiga-game-to-godot/
187•rabahs•10h ago•57 comments

Artificial beaver dams saw juvenile coho salmon survival rates go from 8% to 60%

https://www.discoverwildlife.com/animal-facts/artificial-beaver-dams-california
137•speckx•8h ago•43 comments

K2 Horizon: A connected fleet of six open models

https://ifm.ai/blog/k2/
248•karimf•9h ago•82 comments

Which tools do Claude, Codex and Cursor choose? We measured 17k runs to find out

https://armature.tech/blog/which-tools-coding-agents-install
79•screm•3h ago•22 comments

Any Human Ever – One life, drawn at random from all who have ever lived

https://anyhumanever.com/
458•thinkingemote•10h ago•229 comments

GPS glitched across the US by as much as 33 feet

https://www.sciencealert.com/gps-glitched-across-the-us-by-as-much-as-33-feet-scientists-have-nev...
109•thread_id•1d ago•52 comments

Xanadu was waiting for agents

https://zed.dev/blog/agentic-xanadu
75•nsm•2d ago•30 comments

GLP-1s are being linked to fewer serious infections, including TB

https://gizmodo.com/ozempic-and-other-glp-1s-are-being-linked-to-fewer-serious-infections-includi...
46•gumby•2h ago•31 comments

Go grandmaster Shin defeats AI KataGo with a two-stone handicap

https://www.kedglobal.com/artificial-intelligence/newsView/ked202607210007
186•gmays•23h ago•53 comments

Tasklet (YC P26) Is Hiring a Customer Success Engineer

https://tasklet.ai/careers/customer-success-engineer
1•mayop100•3h ago

OpenAI's GPT-6 Astra on ARC-AGI-3

https://arcprize.org/blog/astra
159•vignesh_warar•5h ago•91 comments

Audacity 4.0

https://github.com/audacity/audacity/releases/tag/Audacity-4.0.0
1044•ClydeN•14h ago•233 comments

The true horror of Edgar Allan Poe’s stories lies in their confessions

https://yalereview.org/article/emily-ogden-edgar-allan-poe
52•lermontov•1d ago•20 comments

A PCB business card with a batteryless LED, powered by the phone that taps it

https://www.kevin.md/the-business-card-that-lights-up.md/
28•thekevintang•2d ago•9 comments

How concerned should we be about Astra's recurrent architecture?

https://www.lesswrong.com/posts/PLisnSFir8y5AHkmP/how-concerned-should-we-be-about-astra-s-recurrent
83•yurivish•7h ago•44 comments

Unusual Suspects

https://neal.fun/unusual-suspects/
100•beeperboy95•1d ago•22 comments

New type of dice guarantees no tie when deciding who goes first

https://www.cbc.ca/lite/story/9.7328614
6•colinprince•1d ago•1 comments

Working to Make Python Lazy

https://iscinumpy.dev/post/flake8-lazy/
31•js2•2d ago•5 comments

Google Antigravity TOS: 3rd party usage can get Google account suspended

https://twitter.com/GergelyOrosz/status/2095453567955968398
274•tosh•13h ago•188 comments

Dextroproporphan: An Analogue for a Better Dextromethorphan

https://monfak.top/blog/posts/dextroproporphan
27•znano•1d ago•9 comments

The asteroid currently hitting front end web development

https://nolanlawson.com/2026/08/23/the-asteroid-currently-hitting-frontend-web-development/
69•codechicago277•5h ago•70 comments

Show HN: I made a word building game supporting anagrams and one handed use

6•busymom0•10h ago•0 comments

Ask HN: Are others seeing Google's reCAPTCHA rejecting Firefox users?

18•Animats•5h ago•6 comments

Ask HN: Why were OpenAI, Claude, and Grok simultaneously down?

325•halcdev•9h ago•521 comments

How to get a free .arpa domain

https://hawksley.dev/blog/get-free-arpa-domain
110•ethanhawksley•3d ago•13 comments

Static Allocation, Constant Work

https://matklad.github.io/2026/09/02/static-allocation-constant-work.html
104•surprisetalk•1d ago•19 comments