rust

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

How do I improve on borrow checker skills?

Hi guys, I'm a soydev trying to learn rust. It's hard, especially with the references, ownership, the compiler goes crazy every time and I just throw all the references, dereference until it stops. I'm not used to it coming from JS. Do you have some resource, tips to improve on this? Thank you very much. Side note: what is your...

When to Use Arc Instead of Vec (youtu.be)

Rust lets you do efficient reference-counted strings and dynamic arrays using Arc basically just as easily as their owning (and deep-cloning) equivalents, String and Vec respectively. So why not use them as a reasonable default, until you actually need the mutability that String and Vec provide? Get into the weeds with me here,...

From Stacks to Trees: A new aliasing model for Rust (www.ralfj.de)

Since last fall, Neven has been doing an internship to develop a new aliasing model for Rust: Tree Borrows. Hang on a second, I hear you say – doesn’t Rust already have an aliasing model? Isn’t there this “Stacked Borrows” that Ralf keeps talking about? Indeed there is, but Stacked Borrows is just one proposal for a...

Rust tool to dump source code from misconfigured open .git directories (github.com)

Hi everyone! I recently ported the Python tool git-dumper to Rust. For any .git directory exposed on an endpoint, it can dump source code by enumerating the git object files with a ≈10x speed boost. Perhaps I can improve by eliminating some .clone()s but I'd love to hear your thoughts on it.

Are there any tutorials you would like to have made?

I've been finding it difficult to find good tutorials on different topics within Rust, so I've had to learn what to do the hard way. I don't want this hard-won knowledge to got waste, so I am considering making tutorials based on my experience. If you guys have any requests for a specific tutorial, let me know. I would also like...

  • All
  • Subscribed
  • Moderated
  • Favorites
  • rust@programming.dev
  • Durango
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • tacticalgear
  • khanakhh
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • everett
  • ngwrru68w68
  • kavyap
  • InstantRegret
  • megavids
  • cubers
  • GTA5RPClips
  • cisconetworking
  • ethstaker
  • osvaldo12
  • modclub
  • normalnudes
  • provamag3
  • tester
  • anitta
  • Leos
  • JUstTest
  • lostlight
  • All magazines