Compile time regular expression in C++

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

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
  • cl-ppcre

    Common Lisp regular expression library

  • I've never used cl-ppcre myself, but its docs[1] claim that it provides compile-time regexes:

    > CL-PPCRE uses compiler macros to pre-compile scanners at load time if possible. This happens if the compiler can determine that the regular expression (no matter if it's a string or an S-expression) is constant at compile time and is intended to save the time for creating scanners at execution time (probably creating the same scanner over and over in a loop).

    [1]: https://edicl.github.io/cl-ppcre/

  • compile-time-regular-expressions

    Compile Time Regular Expression in C++

  • 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.

    InfluxDB logo
  • rebar

    A biased barometer for gauging the relative speed of some regex engines on a curated set of tasks.

  • I'd love for someone to add this to rebar[1] so that we can get a good sense of how well it does against other general purpose regex engines. It will be a little tricky to add (since the build step will require emitting a C++ program and compiling it), but it should be possible.

    [1]: https://github.com/BurntSushi/rebar

  • ctregex.zig

    Compile time regular expressions in zig

  • Since other people are posting other lang implementations... someone did it for zig too (probably less polished than this C++ lib) [1]. It is nice that the regexes can be used at compile time too ().

    --

    : I think the difference between C++ template language and Zig comptime is that Zig's comptime is almost equal as Zig's regular language, whereas the experience of programming C++ templates almost feels like learning a separate, equally complex language.

    1: https://github.com/alexnask/ctregex.zig

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Common Lisp Resources

    8 projects | news.ycombinator.com | 22 Apr 2022
  • What are thoughts on removing regular expression from the standard library?

    1 project | /r/cpp | 8 Jun 2023
  • Verify all characters are same except a few

    1 project | /r/cpp_questions | 9 Mar 2023
  • Constexpr regex parser!

    2 projects | /r/cpp | 14 Feb 2023
  • Regex shootout updated - hyperscan 1st, Rust 2nd, std::regex dead last

    5 projects | /r/cpp | 12 Oct 2022