Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Tips on Rust Clippy
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
unused_variables unused_imports dead_code
General Tips
-
Clippy does not support filtering by specific lint directly. However, it can be achieved via the old rustc flags hack. For example, you can use the …
Cell and RefCell in Rust
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
https://doc.rust-lang.org/std/cell/
https://doc.rust-lang.org/std/cell/struct.RefCell.html
Rc + RefCell is another alternative to circumvent Rust's borrow checker at compile …
Generating Random Numbers in Rust
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Comments¶
rand::rngs::StdRng (currently, ChaCha block cipher with 12 rounds) is the default recommended RNG which is a trade off among speed, quality and security. While rand::rngs::StdRng is a good default choice as a secure PRNG, it might be too slow for statistical simulations where security is not of a critical concern. rand::rngs::SmallRng
Amazon AWS EC2 Instances
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Comparison of Popular Cloud Platforms
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
References
Top 10 Cloud Provider Comparison 2023: VM Performance / Price