New week, new Rust! What are you folks up to?
i'm trying to make an app that would work similar to kinitopet, but instead of being a horror game, it would be a desktop environment for windows that wouldn't remove or replace the normal desktop environment, which would make it far less scary for new users. the more i continue working on that project, the more appreciation i get for troy_en for making such complicated and beautiful things. i just wanted to share that cause i thought it's a cool project, and i really reccomend you to try making something like it yourself, it's very fun!
Tinkering with some of my modules and trying out 1.77
Learning Rust and refreshing machine learning theory by writing a small toy neural network, similar to micrograd. GitHub - tnlogy/telegrad: Rust implementation of micrograd
Contributing to http-server, a replacement for NPM's http-server, a tool, which is used to quickly serve out HTML files. This one, however, is blazingly faster
I’m working on rounding floats.
I built a crate, roundable, to round various types (ints, floats, and Duration
, currently) to the nearest factor. For example:
use roundable::{SECOND, MINUTE, Roundable, Tie};
use core::time::Duration;
assert!(310 == 314.round_to(10, Tie::Up));
assert!(300.0 == 314.1.round_to(100.0, Tie::Up));
// To avoid panicking on overflow:
assert!(Some(260) == 255.try_round_to(10, Tie::Up));
assert!(None == 255u8.try_round_to(10, Tie::Up));
assert!(Duration::ZERO == Duration::from_millis(314).round_to(SECOND, Tie::Up));
assert!(MINUTE == Duration::from_millis(59_500).round_to(SECOND, Tie::Up));
I just finished implementing various “tie” strategies which determine what to do when the value is exactly halfway between two round numbers.
Next up is handling floats correctly. Floats are a particular challenge because comparing two floats is not straightforward.
I’m curious if this is useful to other people, or if y’all have suggestions.
Trying to develop online radio streaming service that people can create own radio streams and chat.
Dioxus for front, axum for back.
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.