uom
Units of measurement -- type-safe zero-cost dimensional analysis (by iliekturtles)
rust-phf
Compile time static maps for Rust (by sfackler)
uom | rust-phf | |
---|---|---|
27 | 15 | |
955 | 1,721 | |
- | 0.9% | |
7.3 | 4.8 | |
about 1 month ago | about 1 month ago | |
Rust | Rust | |
Apache License 2.0 | MIT License |
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.
uom
Posts with mentions or reviews of uom.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-07-10.
- Units of measurement – type-safe zero-cost dimensional analysis
-
What's everyone working on this week (28/2023)?
uom (type-safe zero-cost dimensional analysis) v0.35.0 got released today!
-
What's everyone working on this week (6/2023)?
It happened! v0.34.0 (crates.io) has been released.
-
What's everyone working on this week (4/2023)?
My hope is to release uom (type-safe zero-cost dimensional analysis) v0.34.0 this week. There have been a huge number of new quantities and units added since v0.33.0.
-
What's everyone working on this week (36/2022)?
I have been reviewing lots of PRs recently submitted to add many new units and quantities to uom (type-safe zero-cost dimensional analysis).
-
What's everyone working on this week (31/2022)?
I reviewed some PRs to add new units to uom (type-safe zero-cost dimensional analysis) yesterday and am really hoping to make progress on logarithmic units this week. no_std support is slowing down the later.
-
What's everyone working on this week (30/2022)?
Working on a PR to uom (type-safe zero-cost dimensional analysis) to support logarithmic units.
-
Is RUST aiming to build an ecosystem on scientific computing?
A great type system enables things like unit preserving calculations and Formal Methods.
-
Survey of bad error messages emitted by the "misuse" of trait heavy crates
Is it the error messages, or other parts of uom that make it unwieldy to use? Feedback welcome here or as a new issue.
-
What's everyone working on this week (26/2022)?
I'm working through reviewing the open PRs for uom (type-safe zero-cost dimensional analysis).
rust-phf
Posts with mentions or reviews of rust-phf.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-02-19.
-
Railwind 0.1.2 - A Tailwind compiler rewritten in Rust
could you create compile-time maps with https://github.com/rust-phf/rust-phf ? that way you don't pay the performance penalty of reading the ron files at runtime
-
Static reference to generic implementation
However I'm still stuck for the matching between packet and handler. Phf map (static maps) doesn't support mapping to enum so I have to make a matching clause :
-
What's everyone working on this week (4/2023)?
Have you seen the crate phf?
-
Hey Rustaceans! Got a question? Ask here! (37/2022)!
Maybe phf will come handy?
-
const string memory usage question
This is sort of an aside, but turning a not small index into a match statement is probably going to use more memory than the base data and suck for compile time. Might be smarter to include the index as bytes for ex with include! and interpret it directly. You could precompile a hash table with something like rust-phf: https://github.com/rust-phf/rust-phf.
-
How to pass data from build script to binary crate?
A great example of how this is typically done is the phf crate: https://github.com/rust-phf/rust-phf
-
Be still my static heart
https://github.com/rust-phf/rust-phf comes to mind.
-
How does Rust implement matching against strings?
If you’re looking for something like gperf: https://github.com/rust-phf/rust-phf
- Announcing Rust 1.56.0 and Rust 2021
-
Memory efficient hashmap?
Are all the keys known at compile-time? If so https://github.com/rust-phf/rust-phf might be best.
What are some alternatives?
When comparing uom and rust-phf you can also consider the following projects:
xv6-riscv - Xv6 for RISC-V
parallel-hashmap - A family of header-only, very fast and memory-friendly hashmap and btree containers.
insect - High precision scientific calculator with support for physical units
bumpalo - A fast bump allocation arena for Rust
serde - Serialization framework for Rust
string-cache - String interning for Rust
onnx - Open standard for machine learning interoperability
rust - Empowering everyone to build reliable and efficient software.
xlite - Query Excel spredsheets (.xlsx, .xls, .ods) using SQLite
patterns - A catalogue of Rust design patterns, anti-patterns and idioms
Ruby Units - A unit handling library for ruby
sharded - Safe, fast, and obvious concurrent collections in Rust.