Hacker News new | ask | show | jobs
by e28eta 3508 days ago
I thought this was going to be a link to [1], from a talk given at Swift Summit a couple days ago. I haven't really looked at the code for either one to compare them, but for people who are interested, here's a second simple genetic algorithm in Swift (found in RubikSwift/GeneticsSolver.swift)

https://github.com/JaviSoto/RubikSwift

1 comments

Swift looks a lot like Typescript. This is the first time I've read swift code and I'm taken by surprise by its elegance.

I'm gonna give it a shot

swift is a fantastic language, but it's absolutely not as mature as other language you're probably used to. In particular, you may experience a lot of compiler crash, typing bugs, and very bad compile time.

But i'm 100% certain it's going to be one of the most used language server side in the coming years.

Here's a little Swift Cookbook to get more of a flavor:

http://www.h4labs.com/dev/ios/swift_cookbook.html