10,646 reputation
11140
bio website
location
age
visits member for 2 years, 9 months
seen Jun 26 at 16:41

Jun
10
awarded  Populist
Jun
6
comment How can Swift be so much faster than Objective-C in these comparisons?
Whatever. While I am sure there are areas where the spikes are a problem, note that there are now many games written in Java, various incarnations of .NET and some other garbage collected languages, including many fast paced games, and nobody seems to complain about seeing any spikes.
Jun
5
comment How can Swift be so much faster than Objective-C in these comparisons?
Faster and spike free are completely orthogonal categories. Generational garbage collectors are faster. They are not spike free.
Jun
5
comment How can Swift be so much faster than Objective-C in these comparisons?
Garbage collection, especially generational, is usually significantly faster than reference counting.
Jun
4
awarded  Good Answer
Jun
3
reviewed Approve suggested edit on How can Swift be so much faster than Objective-C in these comparisons?
Jun
3
awarded  Nice Answer
Jun
3
reviewed Approve suggested edit on apache-license tag wiki excerpt
Jun
3
reviewed Approve suggested edit on apache-license tag wiki
Jun
3
reviewed Approve suggested edit on How can Swift be so much faster than Objective-C in these comparisons?
Jun
3
reviewed Approve suggested edit on How can Swift be so much faster than Objective-C in these comparisons?
Jun
3
comment How can Swift be so much faster than Objective-C in these comparisons?
@Yellow: ObjC contains the statically typed C sublanguage, but the objective layer has fully dynamic dispatch. So it's not difficult to do better in method calls and consequently in benchmark that involves a lot of method calls and not much other work.
Jun
3
revised How can Swift be so much faster than Objective-C in these comparisons?
added 467 characters in body
Jun
3
comment How can Swift be so much faster than Objective-C in these comparisons?
@BryanOakley: I don't think the benchmarks are flawed, but the possibility that they picked the one benchmark where Swift was faster certainly has to be considered.
Jun
3
answered How can Swift be so much faster than Objective-C in these comparisons?
Jun
3
comment Is it good to review programs with seniors and boss even if it is working fine?
@DavidWallace: Review before writing unit tests is too early. But review after the QA department tested (and approved) it is too late.
Jun
3
comment Object Identity and Mutability
Structs don't support inheritance. Exactly because they are value types. But there are many cases where inheritance is not needed and structs are much more efficient.
Jun
2
comment Object Identity and Mutability
It is useful. But in Java the instance identity still matters, so it's much less useful than it could be. DotNet is more flexible in this regard.
Jun
2
comment Object Identity and Mutability
Except those that are not Object, i.e. the primitive types. And yes; because Object is mutable, every class type is mutable in Java. Unfortunately.
Jun
2
comment Object Identity and Mutability
It does not matter whether the lock is technically contained or stored in external data structure, semantically it behaves as mutable property that allows distinguishing identity of the object. And I am almost sure I saw the low level description of Java Object where it clearly included the lock. One of the reasons for Java's extreme memory inefficiency.