News for hackers. Stuff that matters.
Re:The Piston image library is now pure Rust by stshine on Sunday January 08, 2017 @12:26PM (#13350792)
On the other hand, since these methods are not compatible it will create certain split in the ecosystem.
Re:The Piston image library is now pure Rust by msbarnett on Sunday January 08, 2017 @02:57PM (#13351615)
Those splits are inevitable. There is no One Size Fits All concurrency primitive. Embedded devs and web devs have vastly different requirements.

Either the split is "every use-case finds the primitive that works best for it" (Rust), or the split is "here's the blessed primitive, other use-cases can pound sand" (Go)

Re:The Piston image library is now pure Rust by Manishearth on Sunday January 08, 2017 @03:16PM (#13351726)
Must it? In fact, I'd expect the reverse -- choosing a model for the language will make the ecosystem tied to that model

For example, while tokio is being integrated with hyper, it does not affect the "usual" users of hyper at all, both in terms of API and in terms of what's going on under the hood, cost-wise.

Having a blessed solution for async like tokio that is not in the stdlib seems to encourage folks to integrate with it, but not in an irrevocable manner; the core library stays intact and able to support potential other models in the future.

Re:The Piston image library is now pure Rust by stshine on Sunday January 08, 2017 @09:30PM (#13353530)
Sure, I do hope we can focus on one concurrency primitive, but the possibility that we may have async/await and coroutine at the same time seems kind of unfortunate to me.
Re:The Piston image library is now pure Rust by Manishearth on Sunday January 08, 2017 @10:09PM (#13353704)
AFAICT async/await the way Rust intends to have it (plans are rough right now) basically coroutines with extra sugar to specialize it with futures. The core language won't know about event loops, it will just know about futures, and you wire up your async/await or whatever to the event loop yourself. As both in the context of concurrency will involve futures they will probably work well together.
Re:The Piston image library is now pure Rust by stshine on Monday January 09, 2017 @05:35AM (#13355354)
I'd love to see this goes well with highest performance.
Re:The Piston image library is now pure Rust by Manishearth on Monday January 09, 2017 @08:52AM (#13356271)
AFAICT It's all going to be a generator-like abstraction which is pretty zero-cost.
Re:The Piston image library is now pure Rust by stshine on Monday January 09, 2017 @06:14PM (#13360800)
The real world is always more complicated, since cps carries stack in its arguments.