Open utterances-bot opened 3 years ago
Awesome stuff!
Shitty Article, not interesting or helpful at all
Nice article. Using a Rust iterator:
let mut fib = FibIterator::default();
for _ in 0.. x {
println!("{}", fib.next().unwrap());
}
Results in seriously quick computation, up to a value of 4660046610375530309 (the 90th number in the Fibonacci series), before overflowing.
umcconnell | Fibonacci in Rust
This post goes through different approaches to generating the Fibonacci sequence in Rust. It compares the speed of these approaches using the benchmarking crate criterion.
https://umcconnell.github.io/posts/2021-03-13-fibonacci-rust/