News for hackers. Stuff that matters.
Re:Silver: A free implementation of Swift for .NET, Java, An... by epaga on Monday February 09, 2015 @02:30AM (#9020067)
Is there a list somewhere of Swift compiler issues to avoid? Seems like "avoiding certain coding techniques" is what is currently necessary until Apple gets back on top of things...

One other example FWIW: having a largish array of Int arrays causes the compiler to either go into an endless loop or simply take too long, UNLESS the type of the array is specified.

var data = [[1,2,3],[4,5,6], ... ] // > 20 elements -> compiler hangs

as opposed to:

var data:[[Int]] = [[1,2,3],[4,5,6], ... ] // compiles quickly

Re:Silver: A free implementation of Swift for .NET, Java, An... by mythz on Monday February 09, 2015 @02:49AM (#9020109)
Finding Swift really buggy atm - where XCode, Swift Compiler and SourceCode service routinely crashes multiple times a day for me. A lot of my time is spent sympathizing with the compiler and getting hit with hard fought lessons on what things to avoid - basically don't step too far outside the Swift Programming Guide. Apple's also glacially slow at responding to bug reports - I'm keenly waiting on the next Q/A release of XCode/Swift.

There's a whole repo dedicated to Swift compiler crashes being maintained at: https://github.com/practicalswift/swift-compiler-crashes

Re:Silver: A free implementation of Swift for .NET, Java, An... by 00098001918291 on Monday February 09, 2015 @03:25AM (#9020183)
If only this had been a language that was dogfooded to the rest of the company, we might not be dealing with these beta-like issues.
Re:Silver: A free implementation of Swift for .NET, Java, An... by interpol_p on Monday February 09, 2015 @05:18AM (#9020479)
I think it was - the first app written in Swift was Apple's WWDC app. Released before they announced Swift. Though it wasn't a hugely complex app.
Re:Silver: A free implementation of Swift for .NET, Java, An... by brudgers on Monday February 09, 2015 @07:58AM (#9020900)
Dogfooding usually implies that the technology is used in mainline business operations. It needs to be more than building a demo, it needs to provide sustenance.
Re:Silver: A free implementation of Swift for .NET, Java, An... by orta on Monday February 09, 2015 @08:40AM (#9021064)
This isn't strictly true, if you not the wording around this it is quite cautious, "written with swift". There are only 4 swift objects in the app.