Live data from Hacker News

Chris Lattner on Swift

nondot.org

151–160 of 203 posts

Re: Chris Lattner on Swift

#151

Earlier quoted context omitted.

As an example, OKCupid uses C++ and runs on a custom webserver. http://www.okcupid.com/about/technology

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.

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

Re: Chris Lattner on Swift

#154

Earlier quoted context omitted.

As an example, OKCupid uses C++ and runs on a custom webserver. http://www.okcupid.com/about/technology

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

#155

Earlier quoted context omitted.

Not that it's particularly complicated, but they mentioned yesterday that the updated version of the WWDC app (which they released right after the keynote) is written in Swift. I don't know if that means "entirely written" or some parts, but they at least called attention to it.

Which implicitly means that swift code can be compiled for iOS 7. Which isn't surprising since the compiled code uses the ObjC runtime.

Swift code compiles and runs on 10.5 and up. Tested it myself.

Re: Chris Lattner on Swift

#156
post #3

It'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).

http://www.reddit.com/r/swift was actually made 6 months ago.

Re: Chris Lattner on Swift

#157
post #10

Chris demonstrated Swift and Playgrounds at WWDC 2014: "I can build anything with Swift... from a social media application, all the way up to a high-performance, 3D game using Metal." https://www.youtube.com/watch?v=nKMAV6owYh4#t=6436 He wrote this chapter (entitled LLVM ) in the book, "The Architecture of Open Source Applications": http://aosabook.org/en/llvm.html * * * On the general topic, I wrote this [1] a littl…

Did he mention anywhere Swift will be open sourced, the way LLVM has been? If not, why?

Does it really matter if a language is open source or not? Surely the most important thing is a versioned language specification?

Re: Chris Lattner on Swift

#158

I'm not sure if it's XCode / playground acting up, but array equality is broken for me: `[1, 2, 3] == [1, 2, 3]` returns false. This seems to contradict the core declarations though: /// Returns true if these arrays contain the same elements. func == (lhs: T[], rhs: T[]) -> Bool Works alright for dictionaries. Is there a bug tracker for Swift anywhere to report this? Edit: Whoops, copied wrong declaration. Contiguous…

var one = [1, 2, 3]

var two = [1, 2, 3]

one == two

That's because Swift checks for safety first (variable declaration).

Re: Chris Lattner on Swift

#159
post #78

Earlier 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.

And Swift would be equally terrible for a high performance 3D game. (It's not because the guy from Apple said it that it's true.) There's a reason why every single AAA studio uses C++ for their engines and titles. And that's the same reason why it is terrible for social media applications.

Mostly because game studios don't write compilers so they get to use what the respective OS vendors SDKs offer.

Re: Chris Lattner on Swift

#160
post #15

Earlier quoted context omitted.

The only thing that makes me sad is that because of their focus on secrecy, they're doomed to relearn all that we learned along the way. Having played with the swift playground stuff, just an hour long conversation could've made a big difference. Such is the way of Apple though.

When he said they hope to redefine how computer science is taught, that's a great goal (and to an outsider Swift looks great) but have they spoke to an academic about that idea? If they take the Microsoft approach of being nice to schools that'd be awesome - much better to teach kids Swift than how to use Office. So if they're talking about schools, there's probably some private ones that would be interested but it'd…

Don't generalize, there are lots of good universities out there.
Post reply on HN