Re:Swift is not
by blazespin on Wednesday June 04, 2014 @08:31PM
(#7849397)
Yeah but "C" is a subset of objective C and the idea is that tight code generally gets written in C without the dynamic dispatch. So comparing Swift to objc_msgsend seems to be a conscious misunderstanding of Objective"C".
[ Parent
| on HN ]
Re:Swift is not
by adamnemecek on Wednesday June 04, 2014 @08:41PM
(#7849450)
I'm not sure I understand what you are trying to say. What do you mean by "the idea is that tight code generally gets written in C"?
He means that the performance intensive portion of Objective C programs (the tight loops, aka the 10% of the code that your code spends 90% of its time in, or whatever) are written in the subset of Objective C closer to C. E.g. they avoid dynamic dispatch in favor of static dispatch.
I'm not an Objective C programmer unless I can avoid it (C++ most days) so I can't really say if he's right or not. (Though, if I had to guess, I'd say he is)