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.

Discovery of a new OpenAI agent message board

https://collusion.wiki/
42•moultano•45m ago•8 comments

Solving the Jane Street Reverse Engineering Challenge

https://jestoph.com/2026/09/04/jane-street-challenge.html
117•anitil•2h ago•40 comments

GPT-6 Astra

https://openai.com/index/gpt-6-astra/
1903•kibae•17h ago•1721 comments

.name Termination

https://neil.fraser.name/news/2026/09/03/
1947•pavel_lishin•21h ago•485 comments

O&O ShutUp10 – The antispy tool for Windows 10 and 11

https://www.oo-software.com/en/shutup10
14•embedding-shape•1h ago•0 comments

Elevator of the Year Winner Modernization of the Metropolis Trust Building

https://www.starelevator.com/projects/star-elevator-modernization-of-the-metropolis-trust-building
26•palashawas•3d ago•10 comments

SubImage (YC W25) Is Hiring a Founding Engineer in SF

https://www.ycombinator.com/companies/subimage/jobs/NCTFgKK-founding-engineer
1•alexchantavy•38m ago

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

https://inference-docs.cerebras.ai/models/overview
594•altertable•18h ago•198 comments

Carbon-aware electricity pricing, measured daily on 38 grids

https://carbonawarepricing.com/
60•High-Five•4h ago•35 comments

Authorization terminology is a mess: Let's fix it

https://idpro.org/authorization-terminology-is-a-mess-lets-fix-it/
73•andychiare•2d ago•43 comments

Hackers Had a Live Feed of Every ID Verification Company Scanned for over a Year

http://www.techdirt.com/2026/09/03/hackers-had-a-live-feed-of-every-id-this-verification-company-...
258•beardyw•5h ago•96 comments

The largest electric aircraft just flew [video]

https://www.youtube.com/watch?v=nM86DBOqgPM
372•feb•2d ago•260 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
287•speckx•20h ago•93 comments

How an MIT research project became the Julia programming language

https://news.mit.edu/2026/how-mit-research-project-became-global-programming-language-0831
129•theanonymousone•4d ago•57 comments

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

https://www.kedglobal.com/artificial-intelligence/newsView/ked202607210007
360•gmays•1d ago•137 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/
314•rabahs•22h ago•102 comments

Project Xanadu: Even More Hindsight (2025)

https://gwern.net/xanadu
92•andsoitis•10h ago•25 comments

K2 Horizon: A connected fleet of six open models

https://ifm.ai/blog/k2/
306•karimf•21h ago•108 comments

1960s theory that Stonehenge was a prehistoric computer

https://www.bbc.com/culture/article/20260828-the-startling-1960s-theory-that-stonehenge-was-a-pre...
44•dabinat•4d ago•53 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
241•screm•15h ago•111 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...
193•thread_id•1d ago•117 comments

Move in C++ without a std:move

https://andreasfertig.com/blog/2026/09/move-in-cpp-without-a-stdmove/
54•dalvrosa•2d ago•63 comments

Oscar Winner Brings Monsters to Life with His Simulation Software

https://spectrum.ieee.org/oscar-winner-jernej-barbic
13•jruohonen•3d ago•1 comments

US diesel prices hit a record high of $5.85 on average

https://apnews.com/article/gas-diesel-prices-us-iran-war-ebd01b9773365ee40550dcfd7d3ebf87
29•geox•1h ago•24 comments

Ask HN: Who is using MCP in production?

93•sukit•1d ago•120 comments

Xanadu was waiting for agents

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

Show HN: Reactor Atlas

https://reactoratlas.com
39•fedecaccia•1d ago•15 comments

Virtual Threads for a scripting language in Java 8 without Loom

https://jactl.io/blog/2026/08/28/jactl-virtual-threads
42•jaccomo•2d ago•4 comments

Unusual Suspects

https://neal.fun/unusual-suspects/
175•beeperboy95•1d ago•29 comments

From Hookswitch to Grave

https://computer.rip/2026-06-14-hookswitch-to-grave.html
34•Sniffnoy•9h ago•2 comments