News for hackers. Stuff that matters.
Re:Rust Actor Library: First Assorted Thoughts by riskable on Monday November 07, 2016 @10:07PM (#12897285)
This looks awesome. It's exactly the sort of thing I've been looking for as a means to bridge the gap between web libraries that want to own the mio::poll::poll() loop (providing no access to register listeners of your own) and rolling literally everything myself. It's a BIG gap!

I was just about to start writing the equivalent of rotor as a thin plugin you can tack on to a mio event loop alongside whatever but with this I think I can get away with simply starting an event loop ahead of time and passing events back into my web app. It'll be interesting to play with it.

Re:Rust Actor Library: First Assorted Thoughts by jzelinskie on Monday November 07, 2016 @11:55PM (#12897768)
I just started diving more into Rust recently and have been trying to understand the current state of the ecosystem. I've been looking at a bunch of the libraries that expand upon mio, but this is the first time I've heard of `rotor`. Besides searching crates.io and judging based on the download numbers, is there better way to discover important crates?
Re:Rust Actor Library: First Assorted Thoughts by grayrest on Tuesday November 08, 2016 @01:25AM (#12898128)
> I've been looking at a bunch of the libraries that expand upon mio, but this is the first time I've heard of `rotor`.

The current state of affairs is somewhat up in the air because Alex Crichton (futures) and Carl Lerche (mio) are working on the Tokio project [0][1], which is likely to become the most favored way to do things on top of mio.

[0] https://github.com/tokio-rs/ [1] https://medium.com/@carllerche/announcing-tokio-df6bb4ddb34

Re:Rust Actor Library: First Assorted Thoughts by riskable on Tuesday November 08, 2016 @09:05AM (#12900274)
I just want to add that I really like where Tokio is going. The architecture seems well-thought-out and exactly the sort of thing I'm looking for. There's only one problem though...

It's still under construction!

Every day something new breaks, haha. Whether it's tokio-middleware with the "what was I thinking?" patch:

https://github.com/tokio-rs/tokio-middleware/commit/78210757...

(seriously, click that link it's funny)

...or today's fun:

https://github.com/tokio-rs/tokio-minihttp/issues/12

The good news though is that it is obviously being worked on--heavily. The Rust ecosystem is so new that it feels a bit like we're in the Wild West. Someone comes up with a decent way to do something and then after a bit of ecosystem evolution we're back to the drawing board since, "there's a better way."

This is all very good because it means that the Rust ecosystem is evolving rapidly. It also means that developers are productive enough in the language that entire frameworks can be re-written from scratch in a reasonably short amount of time. I think it's a good demonstration of how effective the language is overall at its goal of improving productivity (as far as systems programming languages go).

Re:Rust Actor Library: First Assorted Thoughts by grayrest on Tuesday November 08, 2016 @04:22PM (#12904060)
> The Rust ecosystem is so new that it feels a bit like we're in the Wild West.

This is pretty normal for an ecosystem at Rust's stage of development. Ecosystem development is always something of a monkeys-on-typewriters effect and if you continuously have major disruptions in the language, you wind up with Javascript Fatigue.

What I'm particularly impressed with in Rust is the core team's leadership. I'm looking forward to Tokio because I think it's likely to have Rails-like dominance over the ecosystem. This is exciting because it gets us monkeys all pointed in the same direction instead of writing another postgresql client because existing ones don't support the current flavor of event loop that I'm using. Getting to the point where we can snap a bunch of pieces together and have a network service is huge for office advocacy. I think it was a key factor in Ruby's wins over the more established Python web community when observing from the Python side.

I'm also pleased that the Rust core team is focused on my pet areas of improvement: editor support, impl Trait, and async network services.

Re:Rust Actor Library: First Assorted Thoughts by pimeys on Tuesday November 08, 2016 @09:58AM (#12900705)
I'm one of the persons waiting for a stable tokio so badly. I have many use cases for this in my Rust projects that are either currently doing async io so-so or doing stuff like firing http requests in sync using the tools available. The situation in hyper land is not very cool at the moment, master being async but requiring you to write the callbacks, stable using too old openssl and the tokio branch not compiling.

With tokio I could unify my code base and make the code simpler and easier to follow.

Re:Rust Actor Library: First Assorted Thoughts by solipsism on Tuesday November 08, 2016 @12:34AM (#12897934)
Discovery and curation of crates is one of the near-term goals of the Rust team. At least they said as much at RustConf.
Re:Rust Actor Library: First Assorted Thoughts by xorxornop on Tuesday November 08, 2016 @01:01AM (#12898033)
Until better solution is introduced by Rust core team, the Awesome Rust initiative is probably next best thing
Re:Rust Actor Library: First Assorted Thoughts by dimfeld on Tuesday November 08, 2016 @01:25AM (#12898132)
Agreed, Awesome Rust is a great resource. Here's the link: https://github.com/kud1ing/awesome-rust

There are also some "Are we X yet?" sites that cover ecosystem maturity for specific topics. Here are all the Rust-specific sites linked from Mozilla's page (https://wiki.mozilla.org/Areweyet):

Web Programming - http://www.arewewebyet.org/

Concurrency - http://areweconcurrentyet.com/

IDE/Editor Support - https://areweideyet.com/

Machine Learning - http://www.arewelearningyet.com/

Game Development - http://arewegameyet.com/

Re:Rust Actor Library: First Assorted Thoughts by dbeck74 on Tuesday November 08, 2016 @02:45PM (#12903344)
Thank you. All feedbacks are very welcome.