screwsat
competitive-programming-rs
Our great sponsors
screwsat | competitive-programming-rs | |
---|---|---|
2 | 2 | |
36 | 254 | |
- | - | |
2.4 | 2.0 | |
11 months ago | 9 months ago | |
Rust | Rust | |
GNU General Public License v3.0 or later | Creative Commons Zero v1.0 Universal |
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.
screwsat
competitive-programming-rs
-
Why does std::io::Read::bytes() iterate over Result<u8, _> instead of just u8? And how to implement a scanner that returns Err immediately on an Err?
I have this question because, as practice, I'm trying to implement a struct Scanner based on this repo, and as an extra, I'd like to be able to handle errors instead of just panicking. However, unlike map(), the skip_while() and take_while() won't handle errors. If the Errs wouldn't happen unless in situations when the program were going very wrong, then I could just panic. Alternatively, is there a way to break and just return an error once bytes() gives an Err, with just iterator function chaining and without having to write loops myself?
-
What’s everyone working on this week (8/2022)?
This week I read about FnMut and FnOnce. I also found some amazing Rust code for parsing input/output for competitive programming , and solved all the google kickstart problems using it. I made two one hour video of my efforts starting here: https://youtu.be/EvL5YfPw8Ts
What are some alternatives?
thermite - Thermite SIMD: Melt your CPU
cargo-msrv - 🦀 Find the minimum supported Rust version (MSRV) for your project
kalk - Scientific calculator with math syntax that supports user-defined variables and functions, complex numbers, and estimation of derivatives and integrals
pdc
CreuSAT - CreuSAT - A formally verified SAT solver written in Rust and verified with Creusot.
bounded-static - A Rust crate that defines the ToBoundedStatic and IntoBoundedStatic traits
notecalc3 - NoteCalc is a handy calculator trying to bring the advantages of Soulver to the web.
MakeGestureDataset - A Rust GUI application to quickly put together a dataset of gestures.
approx - Approximate floating point equality comparisons and assertions
Vital-Utilities - Vital Utilities. Modern Windows Task Manager alternative with bells and whistles
sniper - a cross-editor snippet manager featuring modular snippet sets