itoa
Fast function for printing integer primitives to a decimal string (by dtolnay)
ucd-generate
A command line tool to generate Unicode tables as source code. (by BurntSushi)
itoa | ucd-generate | |
---|---|---|
2 | 3 | |
278 | 90 | |
- | - | |
6.8 | 6.6 | |
12 days ago | 3 months ago | |
Rust | Rust | |
Apache License 2.0 | Apache License 2.0 |
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.
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.
itoa
Posts with mentions or reviews of itoa.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-01-13.
-
Potential problem with the package manager
The hyper package for the crab language actually has a dependency on a package that does itoa (among others) so IMO the problem exist there too and most non trivial packages will be bloated
-
Debian discusses vendoring again
I see itoa which seems trivial on the surface. The implementation is highly optimized, but it's also covering all the different cases. I'm guessing this is for printing match counts or line numbers, and if this is actually a bottleneck for ripgrep — which seems unlikely — then maybe it's worth it. You know your own needs, and if it was a bottleneck, I bet you could do just as well, if not better, with a custom, smaller, simpler solution inside ripgrep. (i.e. just make sure the power-of-ten denominators are available at compile time so the compiler won't generate divisions.)
ucd-generate
Posts with mentions or reviews of ucd-generate.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-08-08.
-
Using unwrap() in Rust is Okay
So you're saying that the 'expect()' message when a regex compilation error occurs should be a translation from a terse domain specific language to bloviating prose? :-)
What 'expect()' message would you write for this regex? https://github.com/BurntSushi/ucd-generate/blob/6d3aae3b8005...
I think 'unwrap()' there is perfectly appropriate.
> I think it'd be desirable to have a `.unwrap_with_context("Context: {}")`, and the you'd get `Context: Inner Panic Info`.
Why?
-
Debian discusses vendoring again
I've also embedded Unicode tables a number of times. It's very easy to do, and I do it enough that I even have a tool to do it. Having tooling and scripts to do it is important for reasons of provenance and also for when the tables need to be updated (every year or so).
-
Announcing chr 1.0.0: A command-line tool that gives information about Unicode characters
ucd-generate for generating Unicode tables. It is what the regex crate uses to generate all of its tables, and it supports many properties already. It also provides a way to represent Unicode character names in a compressed data structure.
What are some alternatives?
When comparing itoa and ucd-generate you can also consider the following projects:
perl5 - 🐪 The Perl programming language
ripgrep-all - rga: ripgrep, but also search in PDFs, E-Books, Office documents, zip, tar.gz, etc.
fst - Represent large sets and maps compactly with finite state transducers.
rust-fnv - Fowler–Noll–Vo hash function
unicode-xid
character - tool for character manipulations
rust-base64 - base64, in rust
optparse - Portable, reentrant, getopt-like option parser
nixpkgs - Nix Packages collection & NixOS