4 ms·
You're essentially looking at a series of pie charts, and it does tell a useful story: that there is more code being written in Swift and SwiftUI year over year
by mplewis 3y ago
You're essentially looking at a series of pie charts, and it does tell a useful story: that there is more code being written in Swift and SwiftUI year over year.
- lolinder 3y agoThe problem is that the pie chart is lying—it makes it look like the percentage of binaries containing Objective-C is going down over time, but it's actually going up just as rapidly as Swift is, because almost all added files contain both Objective-C and Swift. The only languages that are going down as a percentage of binaries are C and C++, because fewer new modules are being added using those. The reason why it looks like Objective-C is losing ground is that every Objective-C+Swift+SwiftUI binary increments the denominator by 3 instead of by 1, and there are more of those added every single year. Since each of those binaries only adds 1 to the numerator, Objective-C's share of the binary pie seems to be decreasing even though it's actually keeping up with Swift. It's entirely possible and even likely that Swift is increasing faster than Objective-C in terms of lines of code, but this data can't be used to show that.
- boxed 3y agoI would guess that Swift isn't increasing in lines of code as fast as ObjC, because Swift gets more done per line of code. But "per feature" I'd guess Swift is slowly inching out ObjC.