4 ms·
I agree, for the most part, but then again, C also has no high-level concurrency primitives, and basically every server ever is written in C. You can use Grand
by efficax 9y ago
I agree, for the most part, but then again, C also has no high-level concurrency primitives, and basically every server ever is written in C.
You can use Grand Central Dispatch, and it works. It's not as wonderful as go routines and channels, but hey, it works.
- alexashka 9y agoI hear you. C has performance because it doesn't have to do any sanity checks and because 20 years of serious effort has gone towards optimizing everything possible. The very motivation behind creating Swift, has been to have performance, and none of the undefined behaviour (cause of innumerable security breaches and unintentional complexity in compiler design and everyday programming) [0] To me, grand-central-dispatch feels one small step above semaphores/locks/monitors. There has been a lot of research in distributed computing and concurrency - I'd like to see libraries, language constructs and runtimes based on research fresher than before I was born :) [0] http://blog.llvm.org/2011/05/what-every-c-programmer-should-know.html http://blog.llvm.org/2011/05/what-every-c-programmer-should-...