How a new programming language Swift affect us all?

New programming language Swift, developed by Apple for iOS and OS X, can significantly change the way we design well-known users of these systems applications, as well as significantly lower the threshold level of training sufficient to establish such programs. 

Language Swift was officially presented at the next International Developers Conference Apple WWDC 2014 and was greeted very warmly. Professionals from the outset overall great potential newbie, but what can give Swift the other categories of users? Let's face it.

Why experts at WWDC 2014 were once so excited about the advent of Swift? All the matter in the first sentence, in which the senior vice president of Apple's software development Craig Federighi mentioned a new language: "What if we had to Objective-C without the rudiments of C? And we do not just think about it, we have done more. We have a new programming language. He called Swift and he totally cool."

Until recently, to develop applications for the Apple platform can be used languages C, C + + or Objective-C. The latter was created by renowned programmer Brad Cox in the early 1980s, and since 1983 it is used by Apple to create a variety of applications. Objective-C much borrowed from C and C + +, fundamental difference was the introduction of object-oriented programming model that is implemented in the style of Smalltalk, in which objects are sent messages. This model was more comfortable than implemented in C + + and, more so than in the classic procedural C.

However, basing the C comes from the early seventies made programming in Objective-C is much more time consuming task than modern languages such as Python or Ruby. However, for all its complexity for the programmer of the key advantages of Objective-C could be called extremely fast execution of a number of functions.

Obviously that Apple set the task to save Swift all the good that was in Objective-C, in particular, referred to the code performance, combining it with the usual amenities today interpreted languages. In Swift got rid of a rudimentary set of garbage Objective-C inherited from his predecessors. In addition, Swift allows the programmer to solve tasks in several different models, including functional programming, in which all actions are presented in the form of mathematical calculations; procedural, where the actions are executed sequentially and linearly, and object-oriented, where all data are presented as objects. 

Swift gives the output highly optimized LLVM-compatible bytecode (ie, low-level instructions executed directly device) and works with the same API. that Objective-C or C. Due to this compatibility can integrate Swift code into already existing projects, libraries and applications. And if you need to drop down to a lower level, and manually set, for example, the type of variables or parameters of memory management, you can always go back to Objective-C.

With professional developers understood. And that can give students Swift, only making the first steps in programming? It may well expect that the classic phrase «Hello World» soon will be displayed on the screen primarily via Swift. Why? Because Swift is easy to learn, is visual and intuitive, can use different programming models and thus provides high speed Objective-C. 

Finally, it will give the appearance of Swift regular users, most of whom are not programmers and knows little about some languages ​​there? For the consumer, it is important that the application clearly stated function has executed and was comfortable and stable. 

Obviously, the introduction of Swift noticeably affect the entire software ecosystem Apple. Since the development of applications for iOS and OS X is becoming easier and easier, many professionals in other languages ​​and platforms will want to try their hand at a new field of activity. But what does it mean? 

Above all, it means that the mobile computing platforms, and Apple will attract a large number of developers. More developers - more applications and more choice for the consumer. But the question of the level of quality of such software will be left open. Swift yet too new technology and it is not yet mastered even by professional programmers for devices Apple. In addition, it is more accessible for students to understand and other people taking their first steps in programming. Why all this may lead, is difficult to say. 

If you now want to evaluate the possibility of Swift, then download the beta version of XCode 6 you will need a paid developer account. Everyone else will have to wait until the fall, but in the meantime you can read the detailed 500-page manual on this new language, which I think will be interesting not only for professional programmers.

View original