News for hackers. Stuff that matters.
Re:The Piston image library is now pure Rust by Ar-Curunir on Sunday January 08, 2017 @08:25AM (#13349598)
Hmm. I guess the community will eventually decide on one particular primitive, hopefully soon.
Re:The Piston image library is now pure Rust by Manishearth on Sunday January 08, 2017 @08:33AM (#13349623)
I don't think it's a good idea for Rust to choose a particular kind of concurrency primitive. Rust is pretty broad in its use cases, and choosing a primitive may end up restricting other fields. Remember that Rust used to have a libuv based green threading model, and it was removed for precisely this reason -- it affected some use cases in major ways.

Rather, it is important for subcommunities to rally around particular sets of libraries. E.g. the web and I/O related libraries seem to all be going in the direction of integrating with tokio. This means a web programmer can use tokio and it will work smoothly. OTOH, a different subcommunity that uses a different set of libs may use stuff built on rayon and crossbeam.

Re:The Piston image library is now pure Rust by Ar-Curunir on Sunday January 08, 2017 @01:34PM (#13351154)
That's fair; it allows for lots of flexibility.
Re:The Piston image library is now pure Rust by camus2 on Sunday January 08, 2017 @08:57AM (#13349684)
> Hmm. I guess the community will eventually decide on one particular primitive, hopefully soon.

Ultimately you'll get libraries or frameworks that are not compatible with each other because they use different concurrency models. That's a mistake Rust will pay in the future.

Re:The Piston image library is now pure Rust by fredsir on Sunday January 08, 2017 @09:20AM (#13349763)
You get that anyways. The question is how popular something like tokio will get. Since its blessed by the core team and the language designers, I think it will get popular, and therefore many will use it. But there will inevitably be someone who doesn't like it, or for whom it doesn't fit, and they will use something else. But that happens no matter if tokio is in the stdlib or not.
Re:The Piston image library is now pure Rust by stymaar on Sunday January 08, 2017 @09:36AM (#13349813)
That's obviously a threat. But so far this is not what's happening: since tokio and future-rs were announced we've seen most library authors ditching their old stuff to use tokio instead.
Re:The Piston image library is now pure Rust by Jweb_Guru on Sunday January 08, 2017 @11:15PM (#13353957)
Not really. People in the Rust community have shown a great deal of willingness to standardize on a handful of traits, so things tend to be intercompatible. That might change, I guess. In any case, there's no point in using an async I/O model for the majority of use cases many of the people using Rust are interested in, so people standardizing on something else for those usecases isn't a problem.
Re:The Piston image library is now pure Rust by bsaul on Sunday January 08, 2017 @08:34AM (#13349630)
I hope the same, but i don't have great hopes. For a community to adopt a library as fundamental as this one would be, it would need to be of such a high level that i think only the language designer can create it ( or other really big names in the field).

If you think of something like OTP, i don't see any equivalent anywhere else. Even akka isn't unanimously used as the foundation for server side dev on the jvm.

Re:The Piston image library is now pure Rust by steveklabnik on Sunday January 08, 2017 @09:59AM (#13349897)
Two of the three Tokio core team members are on the core team of Rust, and one of them is on the language design team.

EDIT: to be clear, that means one is on both. The third member is very well-known as well; having built the async primitives that this is built on, as well as initially implementing Cargo. Bona fides aren't an issue here.

Re:The Piston image library is now pure Rust by bsaul on Sunday January 08, 2017 @10:13AM (#13349960)
Didn't know that. That's clearly a good thing.