Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify Swift concurrency model #8

Open
jakerockland opened this issue Dec 23, 2016 · 2 comments
Open

Clarify Swift concurrency model #8

jakerockland opened this issue Dec 23, 2016 · 2 comments

Comments

@jakerockland
Copy link
Owner

/u/maizirinid

You might probably want to rephrase the statement on Swift concurrency. It is just that Swift has yet to define a concurrency model or any in-built concurrency feature. Moreover, while libdispatch is a common choice of task based parallelism, C and ObjC interoperability allow many other options for concurrency.

/u/sobri909

On the concurrency issue, it looks like Apple are hoping to focus on bringing it into the language in Swift 5, perhaps sometime around 2018. Lattner touched on it in some slides recently.
He also discussed the different memory management models and their pros and cons.

@jakerockland
Copy link
Owner Author

/u/hundley10

Good paper. I use Swift and Go heavily, and I think you made a pretty accurate comparison.
One correction, though: you say that Grand Central Dispatch is coupled to iOS/macOS development, but that's not longer the case - GCD is fully compatible with Linux.
There's no question that Go's concurrency model is much better than Swift's, but I'm excited to see how it becomes a language feature around Swift 4/5.

@jakerockland
Copy link
Owner Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant