Re:Chris Lattner on Swift
by TillE on Tuesday June 03, 2014 @09:24PM
(#7843590)
Is Objective C really that much better? If you have decent APIs/libraries, C++ would be just fine.
[ Parent
| on HN ]
As an example, OKCupid uses C++ and runs on a custom webserver.
I don't understand. Why would you make everything in-house especially for site like Ok-Cupid which is not exactly used to power rocket engines.
They were in much the same boat as I was back then: whatever you could install out of the box was simply too slow. Inefficiency would have caused us to die on hosting costs so we had to build our own webserver and so on. It's gotten a lot easier over the last decade and a half to build a performant website.
If Ok-Cupid were started today I highly doubt they would do that the same way. But given when they did start it I figure they literally did not have a choice.
Re:Chris Lattner on Swift
by logicchains on Wednesday June 04, 2014 @03:37AM
(#7844417)
They did a blog post on it that I can't find right now. Essentially, they made it quite a while ago (2002? I don't recall exactly), and all other options were too slow. Their backend apparently has to do a lot of work calculating match scores when users search.
Re:Chris Lattner on Swift
by logicchains on Wednesday June 04, 2014 @05:59AM
(#7844790)
Found a post by one of the developers describing the decision in some detail: http://www.brightjourney.com/q/okcupid-write-web-server
They've also open sourced their server: https://github.com/okws/okws
Objective C is head and shoulders better to program in than C++.
It's still got the same C warts that C++ does in a lot of place, but it is far simpler and less leaky than C++.
C++ is still faster and more cross platform, than objective-c
--Have done both professionallyC++ 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).
Objective-C up until the last couple years was powering the payments infrastructure for the Apple Online Store.
Which isn't exposing Objective-C to a wide range of engineers in the industry to the point people and relate and swap horror stories about it.
Yes, that is my point but I didn't make it very well. If Objective C were routinely subjected to these sorts of projects, I think its over-all reputation would be a lot worse.
Re:Chris Lattner on Swift
by SoftwareMaven on Wednesday June 04, 2014 @01:57AM
(#7844222)
No, objC isn't better. While it is fine for UI stuff, I wouldn't really want I build a web app with it. What I've read of Swift is more interesting.
Funny NeXT thought otherwise. WebObjects was a very good server platform.
Re:Chris Lattner on Swift
by reubenmorais on Tuesday June 03, 2014 @11:04PM
(#7843807)
No, but according to Chris Lattner, Swift is.