News for hackers. Stuff that matters.
Re:Swift 3.0 Release Process by mlsarecmg on Saturday May 07, 2016 @10:42AM (#11649759)
I don't know - this is a language that can't easily handle concurrency. Instead you mess around with dispatchers. And then you're dealing with thread-unsafe structures, objects, arrays, etc.

This is such a critical thing with todays interconnected apps that i have no idea how they did not worry about it from the start. Having had the pleasure of dealing with threads, mutexes, dispatchers, execution-contexts and the like there is no way i'd pick up a language that hasn't evolved in that regard, especially on a server. Even Javascript has this figured out with stage-3 async/await.

Re:Swift 3.0 Release Process by zepto on Saturday May 07, 2016 @11:17AM (#11649892)
This is inaccurate. There is no term in either Swift, or the Objective-C runtime named 'dispatcher', which makes it seem like you are unfamiliar with the platform.

There are dispatch queues, and the whole purpose of them is to abstract away threads and locks. Using them does not require you to use threads, mutexes or execution contexts.

Yes, it would be better if Swift incorporated language level concurrency, but it isn't a priority because the platform provides a good solution.

Re:Swift 3.0 Release Process by jaegerpicker on Saturday May 07, 2016 @02:22PM (#11650698)
As others have said this is misleading and inaccurate. GCD, which will be cross platform as of swift 3, is very pleasant and robust to work with and abstracts the threads, mutexs, and dispatchers away from the developer. PromiseKit and Venice are third party libs that also provide other better concurrency patterns.
Re:Swift 3.0 Release Process by chillacy on Saturday May 07, 2016 @03:23PM (#11650955)
Also GCD can be faster than locking with a mutex because it doesn't have to trap into the kernel. So now in my app I tend to protect access to variables with queues instead of @synchronized. The only downside is that it can't replace recursive locks
Re:Swift 3.0 Release Process by donut2d on Saturday May 07, 2016 @10:54AM (#11649806)
I don't have much experience, but I think the VeniceX packages from Zewo answer the concurrency issues quite well.

https://github.com/VeniceX/Venice

Re:Swift 3.0 Release Process by proyb2 on Saturday May 07, 2016 @11:17AM (#11649890)
and Vapor web framework include Venice.