hgrep-smallcore
pomsky
hgrep-smallcore | pomsky | |
---|---|---|
2 | 19 | |
1 | 1,259 | |
- | 0.2% | |
10.0 | 8.4 | |
almost 2 years ago | 3 months ago | |
Haskell | Rust | |
BSD 3-clause "New" or "Revised" License | Apache License 2.0 |
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.
hgrep-smallcore
-
Rulex – A new, portable, regular expression language
Hold on! See: https://github.com/dan-blank/hgrep-smallcore/issues/1 Using `fromJust` is deeply frowned upon, and indeed a few eyebrows were raised then showing my code to the examiners. This and a handful other warts unfortunate, but few and easy to work around.
This function and others are in the prelude, but one can use other preludes that don't have these escape hatches.
This does not undermine the huge benefits that people get from having IO checked by the typesystem. Just as having tyepcasting in a language does not undermine the benefits of types in that language.
pomsky
-
How to call from Rust into JS, Java, C#, Ruby and Python?
I started with JS, and my first step was to write a simple script that checks if a regex is valid. I can call this script from Rust, but there's a problem: Starting a nodejs process takes about 100ms, which is not acceptable, especially for fuzzing.
-
How do you guard against stack overflows
I noticed this when a test case of a parser I wrote failed in CI on Windows. I then learned that the default stack size on Windows is only 1 MiB whereas its 8 MiB on Linux if I remember correctly. The parser has a hard-coded recursion limit to prevent stack overflows, which is currently set to 128. However, this limit is lower than necessary on Linux, and might still be too high for some platforms (embedded?)
-
I have to rename Rulex
I was informed that Rulex is a registered trademark and I'm not allowed to use the name for my project. A lawyer contacted me and gave me a week to rename the project, so I have to come up with a different name :(
-
Melody 0.18 (a sane alternative to regular expressions)
In the other discussion, there's also a link to Rulex, which has similar goals but is more concise. Also claims to compile to multiple regex dialects.
-
Fuzzing rust-minidump at Mozilla for Embarrassment and Crashes – Part 2
Something similar happened to me a week ago. Someone emailed me that they found panics in rulex, and then created a PR to fix them. They even explained to me how to create a security advisory on GitHub because the panics could be used to DoS someone. It was very helpful.
-
Where would you put Error enums?
Sorry for not being more specific. Since this is a parser, the span points into the text file that is being parsed, so it's not that relevant for most libraries. Here is the parser, it uses nom parser combinators. Unfortunately, and adding the spans to the errors involves some boilerplate.
-
rulex VS melody - a user suggested alternative
2 projects | 19 Jun 2022
-
Any active open source repos built using Rust that need development ?
I welcome contributions for rulex. It's a medium-sized project that should be fairly easy to understand, and has some "good first issues" :)
-
Hacker News top posts: Jun 10, 2022
Rulex – A new, portable, regular expression language\ (102 comments)
- Rulex – A new, portable, regular expression language
What are some alternatives?
melody - Melody is a language that compiles to regular expressions and aims to be more readable and maintainable
kleenexp - modern regular expression syntax everywhere with a painless upgrade path
grex - A command-line tool and Rust library with Python bindings for generating regular expressions from user-provided test cases
byteseek - A Java library for byte pattern matching and searching
regex-automata - A low level regular expression library that uses deterministic finite automata.
remake
thesis
taffy - A high performance rust-powered UI layout library
regex - An implementation of regular expressions for Rust. This implementation uses finite automata and guarantees linear time matching on all inputs.