Scripting in Swift
realm.io
realm.io
http://www.h4labs.com/dev/ios/swift.html
Here's the script that generates the Go data structure:
https://github.com/melling/SwiftResources/blob/master/bin/ge...
Simply having a few scripts makes it easier to update my site.
Btw, here are the other blogs:
https://medium.com/swift-programming/1-learn-swift-by-runnin...
http://www.strathweb.com/2014/06/using-swift-general-purpose...
http://cocoaheads.tv/scripting-with-swift-by-blake-merryman/
Plus, there's no decent dependency management yet and you can't compare the amount of external libraries commonly used for scripting with languages like Python or Ruby.
Scripting out with Swift sounds to me like the usual "Playing with new & Shiny". Which can be OK if you're just playing around, but I wouldn't do it with anything related to a production environment yet.
What's wrong with CocoaPods?
pod install --no-integrate
Because if you're scripting something out, it's very possible that you'll need to run it outside of a Mac in no time.
Yes, it's still early, but with Swift becoming open source, the portability problem will probably become less of an issue. Plus, there's no decent dependency management yet and you can't compare the amount of external libraries commonly used for scripting with languages like Python or Ruby.
Thinking about this, I wonder if it is actually as big of a problem as some may think. Swift has built-in automatic bridging capabilities to both C and Objective-C. Assuming this works the same in the REPL/command line (I haven't verified this), then you can directly call every system library on your platform that is written in C or Obj-C (which is all of them). The need to download external modules like in Python or Ruby seems greatly diminished.And to the portability question, on a Unix platform in general, the majority of libraries available for the platform are C libraries with all the capabilities you normally would have to get as a separate module for Python or Ruby. Since this is all directly available without separate modules, when you do need a feature not installed on your system, you would simply install a C library with that capability through your system's normal packaging management system or build/compile it yourself.
Define "often".
Besides, Swift wasn't even that ready for application develoment from day 1.
It was actually more pleasant than I thought, and I usually use Ruby for this. Might do this more often in the future.
But Ruby still has the benefit with gem install that can get you anything from a twitter client to an IRC-bot lib.
Presumably, new iOS and OS X will ship this fall, so the open source drops will come soon after. Hopefully fall, but winter at the latest.
Whatever does that mean? Swift is not an operating system.