Stop a data race at compile time
Why can Rust not even express code that another language would happily run with numbers that do not add up? You read what Send is saying, get it compiling, and measure three ways of writing it.
Projects / Programming languages / Advanced
What you end up with
An implementation the borrow checker accepts, and an explanation of why it was stopped. You will also be able to say out loud why you did not need Rc<RefCell<T>>.
Sign up for a free membership to read every free project. Already have an account? Please sign in.
Log in to send a report.
Why can Rust not even express code that another language would happily run with numbers that do not add up? You read what Send is saying, get it compiling, and measure three ways of writing it.
You write split_at_mut yourself. You find out why safe Rust cannot express it, cut the unsafe down to six lines, and leave behind a written account of why it is sound.
Writing async does not help if there is no await to yield at. You watch a heartbeat skip, then fix the difference between gather and TaskGroup and the way cancellation is handled.