Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Swift looks like js with the benefits of Python ruby C and java. I definitely will be trying this out.
 
I heard from inside that soon there would be a new program to develop applications for iOS. With this new program it would be possible to use the private frameworks as well.. Easier and more safe.
This been 3 weeks ago

I believe Swift is this program where the diagnostics team was talking about :)

So get ready guys!:D
 
So, been playing around with swift and read about 80 pages of the provided iBook.

not too bad in all honestly, much cleaner. Did have to use the apple provided code reference to see what the new methods are called and what arguments they take (as some of them are now not available in swift and alternatives are there instead).

I have a test app that communicates with a RESTful web service and have reproduced that app using ONLY swift and it works fine.

Will take some getting used to (especially ?Optionals) but will get there in the end.
 
I echoed the "whaaaaa?" from the live feed.

Not sure what they mean by 3.9x faster. Development time? Run time?

Runtime. They show a "complex sort" against python & obj-c.

In both, a array can have any kind of object (so can mix string, numbers, views, etc) so a sort can't be optimized (if for example, all items are integer) so this slow the operation.

In swift, a array (and others) are more "typed", so a array can be declared to be ONLY integers and this allow the compiler + functions to optimize for this (and each similar) case.

Also, the productivity in development time must increase a bit: Less files to handle, less code to type, more safety, better use of the type system, etc.
 
why did they chosen the name swift? and a similar logo?

http://swift-lang.org/
Gearing up for the next wave of lawsuits? :D

It looks like swift-lang.org is not a commercial venture. It's a bunch of academics and government lab types. They aren't known for picking fights with Apple's lawyers.

The Swift project is supported by the National Science Foundation and US Department of Energy Office of Science, with additional support from the National Institutes of Health, Argonne National Laboratory and the University of Chicago Computation Institute.

And besides, anybody that writes a programming language that doesn't make me use semicolons and count brackets is on the right track... :D
 
It really does say something when they've been going on about how "this is the year to learn how to code", and blah, blah, blah for years now, and Apple probably got millions of new wannabe programmers in one day. :p
 
The question that comes to my mind is will 'Swifter'
make it easier to make Mac - iOS cross compatible code.

I guess if we get stuck with A7 based laptops it will,
but frankly I really don't want that.

Also concerned it will make porting to non-apple even harder.
Maybe the goal?
 
I was just getting hang of Objective C. lol.

The SDKs will stay the same just new syntax right???

I know ! I have been doing the same thing.

I was pretty bummed at first but maybe it will be great and make it easier not to have to do the memory management,
fingers crossed ill be able to pick it up a little quicker now
 
They aren't shutting off Objective-C. You'll likely even still need to know Objective-C for a few years as some 3rd party libraries might not be ported over to Swift.
 
The question that comes to my mind is will 'Swifter'
make it easier to make Mac - iOS cross compatible code.

I guess if we get stuck with A7 based laptops it will,
but frankly I really don't want that.

Also concerned it will make porting to non-apple even harder.
Maybe the goal?

It will not be easier or harder to make cross-platform code between Mac and iOS. There will still be a division in APIs.

It won't really make things harder to port from Apple to non-Apple, either. It was never the Objective-C part of the code that made it difficult to begin with. Again, it's all about the APIs.

What? Why?

Some people are just convinced there will be ARM Macs someday. I have never been able to figure out why they think this is true, or why they think it would be a good thing. I think it stems from ignorance of hardware in general.
 
It will not be easier or harder to make cross-platform code between Mac and iOS. There will still be a division in APIs.

It won't really make things harder to port from Apple to non-Apple, either. It was never the Objective-C part of the code that made it difficult to begin with. Again, it's all about the APIs.



Some people are just convinced there will be ARM Macs someday. I have never been able to figure out why they think this is true, or why they think it would be a good thing. I think it stems from ignorance of hardware in general.

I reckon ARM will happen in a Macbook Air for a few reasons:

Price - ARM chips are significantly cheaper than Intel chipsets

Timing - Apple designs their own ARM chips on their own schedule and would much prefer not having to rely on Intel's perpetual delays

Power - ARM chips can actually come pretty close to Intel's for casual (Web/Word/Excel/PowerPoint) usage but at significantly less power

Metal - The new Metal API is opening the door at creating extremely high performance code for Apple's ARM chips again at a lower power cost.

If Apple can produce a 11-13" Macbook Air that has 18+ hour battery life (of actual usage) by switching to ARM over Intel you can pretty much guarantee it's going to happen and as long as they port all of their apps and make it easy for developers to do the same they'll sell like hotcakes because user's care probably more about how long their laptop can go for on battery than a bit more power under the hood.
 
I've been reading this SWIFT book and so far it seems incredibly basic....almost painfully basic to me certainly in the first 100 pages or so. I am also reviewing the WWDC materials but maybe more on using Xcode with SWIFT is probably in order if they want new iOS/OSX dev to use it.
 
I reckon ARM will happen in a Macbook Air for a few reasons:

Price - ARM chips are significantly cheaper than Intel chipsets

Timing - Apple designs their own ARM chips on their own schedule and would much prefer not having to rely on Intel's perpetual delays

Power - ARM chips can actually come pretty close to Intel's for casual (Web/Word/Excel/PowerPoint) usage but at significantly less power

Metal - The new Metal API is opening the door at creating extremely high performance code for Apple's ARM chips again at a lower power cost.

If Apple can produce a 11-13" Macbook Air that has 18+ hour battery life (of actual usage) by switching to ARM over Intel you can pretty much guarantee it's going to happen and as long as they port all of their apps and make it easy for developers to do the same they'll sell like hotcakes because user's care probably more about how long their laptop can go for on battery than a bit more power under the hood.

Price - Apple doesn't mind charging what they're charging. Even if it would be a savings, Apple couldn't charge what they are now and gain more profit. It would be more costs for them and their customers wouldn't want to pay anywhere near as much for the product.

Timing - I'm not convinced Apple cares enough. Timing is an advantage on mobile for them, but in the computer space they are competing against people using the exact same chips as they are. There's no downside to sticking to Intel.

Power - This is where you really lose me. The ARM chips in the iPhone and iPad are incredibly weaksauce compared to Intel chips. That's why they use significantly less power.

Metal - I still have no idea what to make of Metal, but I'm quite certain Apple has no interest in having anything like it on computers. I'm also quite certain nobody outside of mobile development wants yet another GPU API (and the ones on mobile probably aren't thrilled either). Apple created Metal as part of its holy war against Google in the mobile space, nothing more.


Really what you're asking for is an 8 year old laptop that costs slightly less than a modern laptop, and may or may not have more battery life. You're also asking for Apple to directly compete against Intel. That's not going to happen. Nor will Apple embrace the idea of being on a different architecture from everybody else, like in the PPC days. Or even worse, being on two different architectures on the same product line.
 
I'm learning objective c and I'm still pretty newbish at it. I've played around with Swift and the new Xcode beta and it seems pretty nice. I am going to put it back on the shelf and will continue to learn Objective C though, as I am in an online course for objective c and I doubt a course on swift will be available any time soon

It looks like swift-lang.org is not a commercial venture. It's a bunch of academics and government lab types. They aren't known for picking fights with Apple's lawyers.
That used to be true but now Universities will patent anything they come within 10 miles of. Nowadays universities can be pretty litigious. Gotta give their law school types something to do, right? :rolleyes:
 
Last edited:
Timing - I'm not convinced Apple cares enough. Timing is an advantage on mobile for them, but in the computer space they are competing against people using the exact same chips as they are. There's no downside to sticking to Intel.

Of course there's no downside to sticking with Intel, but there could easily be an upside to it. If Apple managed to make chips superior to Intel's, then Apple would be able to make computers better than anyone else, no questions asked.

Of course, since OS X already runs on Intel, Apple can play both sides of this: they can developer their own chips and use them whenever they're the best, and they can swap to Intel's chips whenever Intel has better chips.
 
Well Swift was not expected (at least from my side). When I started objective-c after java I found really ugly. Now I got used to it and liked it..Then swift here you go :) Looking forward to see what will be.
 
I've been reading this SWIFT book and so far it seems incredibly basic....almost painfully basic to me certainly in the first 100 pages or so.

Check out the Intermediate and Advanced Swift and LLDB WWDC videos. Lots more than just basic stuff.

What's seems to be missing are books and tutorials on using Swift with the Cocoa and Cocoa Touch frameworks to build full-sized apps (e.g. with SpriteKit, Metal, Core Data, UI Animations, AVFoundation, & etc.). Hopefully some book authors are already working on such (the Nerd Ranch guys already tweeted about their starting).
 
My initial impression is that Swift will be easier to learn, especially with the bundled Playground. But it will be weeks and months before full, well tested, tutorials are available. And unless a good book on learning Swift is already in development, maybe nearly a year for the first books on it.

So I might recommend beginners learn Python in the interim, as it will be easier and less confusing to switch to Swift without having to unlearn as much.
I've read about 100 pages of Apple's book so far and it's actually quite a pleasant read. Not at all boring if you are geeky enough. \o/
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.