Category Archives: Sideblog

Sideblog posts. Usually links to news stories with a quick comment by me.

Swift Speed Revisted

Swift speed revisited. Surprised it’s improved that much, although I think some of the initial problem was a naive ARC optimizer that has been fixed. (i.e. retain release code where it didn’t need to be)

Related Posts

  • 42
    I’d mentioned in passing in one of my Swift posts about using it as a scripting language. Someone on Twitter asked me if I’d convert from using Python to Swift for my scripts. It’s an excellent question that I really can’t answer fully at this stage. The language is still very beta. Most of the…
    Tags: swift, code

Strings in Swift

Strings in Swift. Completely rewritten to account for all the changes in beta 4. I’ve not touched Swift after my initial bought of learning. I’m waiting for it to mature a bit before diving in it again. The problem of string indices and O(N) searching seems to remain a big problem though. Obj-C was always a lousy text processing language IMO. I wish Swift had more of the capabilities of Python in that regard. (Again – get me iterators and the yield statement)

Related Posts

  • 41
    I’d mentioned in passing in one of my Swift posts about using it as a scripting language. Someone on Twitter asked me if I’d convert from using Python to Swift for my scripts. It’s an excellent question that I really can’t answer fully at this stage. The language is still very beta. Most of the…
    Tags: swift, python