Skip to content

Tags

#rust

Rust ownership, lifetimes, async, crates and the systems people build with it.

4 posts

Posts tagged #rust

  1. Question

    rust: cannot borrow `*self` as mutable because it is also borrowed as immutable

    making the pong game for @tomasz_k (long story) and im stuck on the borrow checker. i have a game struct with a list of entities and i want to update each one, but update needs to call a method on self struct Game { items: Vec<Entity>, score: u32, } impl Game { fn tick(&mut self) { for item in self.items.iter() { self.update(item); } } fn update(&mut self, item: &Entity) { // moves the item, maybe changes score } }…

    Olivia Martin4likes4comments

  2. Article

    the borrow checker, explained to my ruby self

    i wrote ruby for five years before rust. in ruby every variable is a reference to an object somewhere, the garbage collector cleans up after you, and you never think about who "owns" anything. so my first month of rust was mostly me yelling at the compiler. here are the three errors i hit most, translated for past me. if you want the 100 second version of rust first, fireship's is honestly good: 1. E0382: the value…

    Mio Kobayashi27likes12comments

  3. Article

    our startup tried a 4 day week for 3 months. here are the numbers, not the vibes

    we're a 9 person logistics startup in sapporo (6 engineers). in may our ceo agreed to a 3 month trial of a 4 day week: same pay, fridays off, 32 hours. everyone on mastodon has opinions about this, so i challenged to collect actual numbers. here they are. small team, one trial, not a study. but numbers. the setup mon-thu, 9:00 to 18:00 with an hour lunch. fridays off for everyone, not rotating one person on call on…

    Mio Kobayashi20likes13comments

Get the best of Dynamo Geeks weekly

One email each Monday with the most useful posts. No spam; unsubscribe in one click.