Joined 554d ago
https://toroban.com
Published 193d ago
Arbitrary types can be used as HashMap keys, as long as they implement the appropriate traits which can usually be auto-derived.
Published 328d ago
Covers all u64 sized fib numbers
Published 330d ago
Mandelbrot ASCII, made by chatgpt 3.5
A macro wrapper around println that has working newlines. Please fix this issue properly @dailyrust-devs
Using the num_bigint crate we can generate much larger numbers with full accuracy.
A Fibonacci sequence iterator that can efficiently generate each number in a single operation each next() call.
Using the dark arts of unsafe rust, we can cast immutable references to mutable pointers, and bypass the need for any slow "safe" Sync objects such as mutexes.
Published 339d ago
This calculates any arbitrary Fibonacci sequence number in O(1) time, without loops or recursion. Uses the absolute formula to give a best estimate result. Needs an infinite precision math library to give more accurate results.
Published 355d ago
Even numbers
Published 400d ago
Prints the current time in a metric time format (100,000 seconds per day)
Published 409d ago
This is from @ilyvion on the Rust programming language discord!
Published 410d ago
See C++ version: https://gist.github.com/ayebear/7ee6c64c387413a90532da8f838f32d6 Both rust and c++ versions seem to work.
Published 411d ago
100% CPU utilization with default tokio runtime settings, just async code
Published 444d ago
Idiomatic Rust version of https://en.wikipedia.org/wiki/Dynamic_dispatch#Example_in_C++
Published 458d ago
Published 527d ago
Published 551d ago
Published 554d ago