HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
BurntSushi
regexp
Rust2014–2014
BurntSushi / regexp

regexp

A regular expression library implemented in Rust.

2Distinct people
2Mentions
0Explicit recommenders
37GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

A regular expression library implemented in Rust.

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 5:04:57 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by hour2 dated mentions

Observed mentions: 2014-04-27 15:44:04 UTC to 2014-04-27 16:05:48 UTC.

012014-04-27 15:00:00 UTC to 2014-04-27 16:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsApr 27, 15:002014-04-27 16:00:00 UTC to 2014-04-27 17:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsApr 27, 16:00

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Apr 27, 15:002014-04-27 15:00:00 UTC2014-04-27 16:00:00 UTC101
Apr 27, 16:002014-04-27 16:00:00 UTC2014-04-27 17:00:00 UTC101

What Hacker News says

2 sources
Yeah, this is really the only comparison I have so far. It was included with a PR for adding regexes to Rust, so hopefully it will make it into the shootout proper in the next release. I also have some more specific benchmarks against Go: https://github.com/BurntSushi/regexp/tree/master/benchmark (For any curious readers out there, the benchmark is multithreaded in Rust[1], with a particularly nice use of futures.) > Rust beats Go pretty soundly (on this specific benchmark), but C beats Rust pretty soundly. I believe the dynamic regexes also beat Go on this specific benchmark, but the optimizing compiler is likely to blame there. (And to be clear, Go still beats Rust native regexes in some benchmarks, primarily because it has more clever optimizations. It was written by Russ Cox, after all!) > Why is C so much faster? The C program is pre
Read the rest
tty elaborate, but here are my guesses. * There are many ways to implement regex matching. For example, RE/C++ uses both a very very quick DFA and a NFA simulation. My library only has the (slower) NFA simulation. I don't know what Tcl uses for an implementation strategy, but whatever it is, it's likely a factor. * If string replacement is done in place, then it's going to avoid a good chunk of allocation. (In this particular benchmark, it would be perfectly legal to do string replacement in place.) I'm sure there are other things I'm missing, but these seem like good candidates for a good chunk of the difference. [1] - https://github.com/BurntSushi/regexp/blob/master/benchmark/r...
In Syntax extensions and regular expressions for Rust

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.