« * K @burntsushi.net

Andrew Gallant @burntsushi.net

2026-07-03 17:55 UTC

Parsing is very rarely within even an order of magnitude of actually building the automata. For example, on my machine, `\w+\s+\w+` takes 15µs to parse to an AST, 13µs to translate from an AST to an HIR and but 23ms to build the actual regex automata. Yes, milliseconds!

A reply in a thread.

1 likes, 0 reposts, 1 replies

3 Next post4 More from @burntsushi.netBackBluesky home
☆ Save to home · 0 Home · Find · Games · Chat · AI · Setup