Earlier quoted context omitted.
C++ can be just fine. It can also be used to write software bad enough to quit over, that dozens of people will maintain for decades. And they talk about it. I don't think Objective C has that problem.
To be fair, Objective C hasn't run billion dollar companies for decades yet either (in mass).
Chris Lattner on Swift
121–130 of 203 posts
Re: Chris Lattner on Swift
#122Earlier quoted context omitted.
Is Objective C really that much better? If you have decent APIs/libraries, C++ would be just fine.
As an example, OKCupid uses C++ and runs on a custom webserver. http://www.okcupid.com/about/technology
Re: Chris Lattner on Swift
#123Really excited for Swift. I've tried and failed many times to learn Objective C and felt that the barrier to entry was a bit to high for myself. As a someone who writes JavaScript for a living, Swift is very inviting.
Re: Chris Lattner on Swift
#124Really excited for Swift. I've tried and failed many times to learn Objective C and felt that the barrier to entry was a bit to high for myself. As a someone who writes JavaScript for a living, Swift is very inviting.
Not trying to be rude, but if you've tried and actually FAILED to learn Objective-C multiple times, then you will have a much bigger problem with actually learning the Cocoa framework yourself. Objective-C does have a non-standard syntax, but its barrier of entry for actual learning is purely psychological and not technical.
Re: Chris Lattner on Swift
#125I like Chris and what he has done, but... >>The Swift language is the product of tireless effort from a team of language experts, documentation gurus, compiler optimization ninjas... Seriously? What is a "documentation guru"? What is a "compiler optimization ninja"? I find language like this so distracting and asinine that I had to stop reading. Am I the only one?
Re: Chris Lattner on Swift
#126Funny how he forgot to mention Golang somehow while that seems to be one of the bigger inspirations for the language.
I don't understand why people keep comparing Swift and Go, as they have diametrically opposed philosophies. As stated succinctly by Bryan O'Sullivan (one of the most prominent people in the Haskell community) on Twitter: "It's interesting to compare Swift and Go. One has caught up to the 1990s in language design, with the other firmly in the 60s." Swift includes many of the language features that have been touted by…
dispatch_apply(arr.length, queue) {index in
arr[index] = expensive_func(arr[index])
}
Obviously nice wrappers can be written around code like this to give you safe parallel programming. You could also quite easily make futures/async stuff.Re: Chris Lattner on Swift
#127Earlier quoted context omitted.
C++ would be absolutely terrible for social media applications. There, the barrier isn't usually the speed but correctness and maintenance overhead.
Is Objective C really that much better? If you have decent APIs/libraries, C++ would be just fine.
Re: Chris Lattner on Swift
#128Earlier quoted context omitted.
> 99% of the articles about the profound importance of generics are people building nothing of interest for anyone, and it is exactly that vaguery of design that makes generics seem so important. I think it's quite a stretch to say that people who have written articles about generics are almost never building anything of importance. The browser you used to post this comment makes extensive use of generics via C++ tem…
I think it's quite a stretch to say that people who have written articles about generics I said 99%. The vast majority of language observations online are language tourists, and the observations are seldom practical or rational, but instead are of the "in kicking the tires and making nothing in practical, here are my thoughts". Those sorts of posts dominate. Generics have a place, but their importance is...overstated…
I do not agree that the importance of generics is overrated and it's one of the primary reasons I won't be using Go. I need to know what type of object I'm working with to feel comfortable when programming, and I like the reassurance from the compiler that it agrees with me that that is actually what I'm working with. I would really like Go if it had generics, but it's just too unsafe for me to use in its current form.
Re: Chris Lattner on Swift
#129It's amazing that Apple managed to go from hatching the idea in mid-2010 to releasing a fully working framework 4 years later, with tight IDE integration, huge amount of testing and compatibility without a single leak (that I've heard of).
Doesn't it use the same frameworks as Objective-C?
Re: Chris Lattner on Swift
#130Earlier quoted context omitted.
It's bizarre how focused programmers are on syntax. It seems like half the comments about Swift have been comparing it to languages which it superficially resembles at the syntax level. And the other half of the comments are along the lines of, "I can't stand Objective-C's brackets, this looks much better." It's like that scene from The Matrix: "I don't even see the code. All I see is blonde, brunette, red-head." I'd…
Wadler's Law: "In any language design, the total time spent discussing a feature in this list is proportional to two raised to the power of its position: 0. Semantics 1. Syntax 2. Lexical syntax 3. Lexical syntax of comments"