regexp2 VS rure-go

Compare regexp2 vs rure-go and see what are their differences.

regexp2

A full-featured regex engine in pure Go based on the .NET engine (by dlclark)

rure-go

Go bindings to Rust's regex engine. (by BurntSushi)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
regexp2 rure-go
4 2
929 246
- -
2.9 3.0
2 months ago 5 months ago
Go Go
MIT License The Unlicense
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

regexp2

Posts with mentions or reviews of regexp2. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-08-26.

rure-go

Posts with mentions or reviews of rure-go. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-08-26.
  • Best regexp alternative for Go. Benchmarks. Plots.
    8 projects | dev.to | 26 Aug 2023
    rure-go (regex 1.9.3) - uses the Rust regex engine with CGo bindings. The downside is a Rust library dependency that needs to be compiled;
  • Go performance from version 1.2 to 1.18
    14 projects | news.ycombinator.com | 3 Feb 2022
    Totally agreed: almost all users (me/GoAWK included) want performance and don't care nearly as much about simplicity under the hood. Simplicity of implementation is of value for educational purposes, but we could easily have a small, simple 3rd party package for that. Go's regexp package is kinda too complex for a simple educational demonstration and too simple to be fast. :-)

    I actually tried BurntSushi's https://github.com/BurntSushi/rure-go (bindings to Rust's regex engine) with GoAWK and it made regex handling 4-5x as fast for many regexes, despite the CGo overhead. However, rure-go (and CGo in general) is a bit painful to build, so I'm not going to use that. Maybe I'll create a branch for speed freaks who want it.

    I've also thought of using https://gitlab.com/cznic/ccgo to convert Mawk's fast regex engine to Go source and see how that performs. Maybe on the next rainy day...

What are some alternatives?

When comparing regexp2 and rure-go you can also consider the following projects:

re2 - R interface to Google re2 (C++) regular expression engine

ccgo

elsa - ❄️ Elsa is a minimal, fast and secure runtime for JavaScript and TypeScript written in Go

regex-benchmark - It's just a simple regex benchmark of different programming languages.

rex - Flexible regular expressions constructor for Golang.

hyperscan - High-performance regular expression matching library

regex-automata - A low level regular expression library that uses deterministic finite automata.

gohs - GoLang Binding of HyperScan https://www.hyperscan.io/

regex - An implementation of regular expressions for Rust. This implementation uses finite automata and guarantees linear time matching on all inputs.

go - The Go programming language

go-re2 - Drop-in replacement for regexp using re2, for any Go app

esqueleto - Bare bones, type-safe EDSL for SQL queries on persistent backends.