These are chat archives for rust-lang/rust

1st
Dec 2016
Chris Dawes
@cmsd2
Dec 01 2016 02:00
Anyone put dpdk together with rust?
Ravi Teja Gudapati
@tejainece
Dec 01 2016 12:36
in rust, one cannot have two mutable references to same instance
so how does one mutate an instance both in a closure and outside a closure?
Jarred Nicholls
@jnicholls
Dec 01 2016 12:38
@cmsd2 yes, I have.
@tejainece different thread or same thread?
@tejainece have you tried Arc<RefCell<T>>?
Ravi Teja Gudapati
@tejainece
Dec 01 2016 12:42
same thread
hmm rust has too much weirdness and new things
Ingvar Stepanyan
@RReverser
Dec 01 2016 18:22
@tejainece in most cases, you just shouldn't do that (those restrictions are for a reason - preventing races), but depends what you're trying to do / how that closure is called
Peter Atashian
@retep998
Dec 01 2016 19:58
@tejainece Cell and RefCell are used to allow "shared" mutability on the same thread, while Mutex and RwLock are for mutability across threads
@tejainece Rc is used for shared ownership on the same thread, while Arc is for shared ownership across threads
If the type is Copy, you should use Cell because it has no overhead. If the type is not Copy then you will have to use RefCell.
Noah Betzen
@Nezteb
Dec 01 2016 20:58
Does the Rust community mostly use IRC or Gitter?
Jonas Platte
@jplatte
Dec 01 2016 21:20
@Nezteb Pretty much every bigger community has more active members on IRC.
probably because using gitter over IRC is harder to set up and much less stable than normal IRC networks, and there are no other ways of using gitter from a native client.
Ingvar Stepanyan
@RReverser
Dec 01 2016 21:45

and there are no other ways of using gitter from a native client.

@jplatte what do you mean? 1) there is web version, luckily anything has web browser nowadays and 2) you can connect it as normal IRC channel (although you will surely lose all the fancy formatting, code highlight, etc.)

Noah Betzen
@Nezteb
Dec 01 2016 22:53
@jplatte There are also Windows, OSX, Linux, iOS, Android applications, in addition to the web client. But I realize you're referring to the active members who prefer IRC.
Jonas Platte
@jplatte
Dec 01 2016 22:59
@RReverser Well some people like to have all their chats in a single application, so web (or the "native" electron client) is not always an option. And while you can connect via IRC, like I said that's harder to set up and also seems very unstable (I haven't used it in a while but I've revently seen it mentioned again)
Noah Betzen
@Nezteb
Dec 01 2016 23:00
Yeah, I found a Rust forum post where people were going back and forth about it. Since this group has 1147 people, I think that'll suit my needs. :)
Jonas Platte
@jplatte
Dec 01 2016 23:02
@Nezteb Well yeah usually you'll also get answers here, but if you have questions about niche stuff (e.g. unstable features or specific libraries) you might not get an answer here.