Posted on 12/04/2015 2:50:36 PM PST by Swordmaker
As promised earlier in the year, Apple’s Swift team has now posted source code for the Swift compiler and standard library functions and objects. Open-sourcing Swift is a big win for the developer community as it means Swift can now be setup to run on a server and many other use cases, bringing Apple programming talent and expertise beyond ‘just’ making apps iOS devices and Macs.
Making Swift open-source also gives the developer community as a whole more confidence in the language. Theoretically, if Apple ever decided to move away from Swift (which is unlikely), the language could be picked up by others and continue development and existing codebases could continue to be supported.
By open sourcing the language, Apple is also inviting the community to help make Swift better, by contributing to the language itself. It is yet to be seen how open Apple approach accepting significant community pull-request however. The Swift site says the project prefers ‘small incremental improvements’.
For those interested in finding out more, check out the documentation on the Swift.org site. The code itself is hosted on a GitHub repository. The repo is currently 404ing but the code should be up shortly.
Apple is publishing code for the raw language compiler as well as the Swift standard library and parts of Foundation, which many developers did not think would happen. Frameworks like AppKit and UIKit remain exclusive to Mac and iOS app development as expected. The published ‘core libraries’ include some of the most important components from AppKit and UIKit, like a networking stack, threading, and common data types, however. Apple says these features are actually planned for official release in the as-yet-unannounced Swift 3, but is including them now for feedback in the early development stages.
As for tuples, support, you can find it in the C++ Boost library.
I think C++ 2014 also has it.
Compiled. It’s similarity to Python was just the syntax and some simplifications.
Python is interpreted as you may well know, and that opens up a whole new bag of tricks.
I don’t know if you ever used Objective C. I found it to be a royal pain in the ass and very aged. It’s kind of a hack. The single biggest improvement is you don’t have to allocate memory for your objects in a separate step as you did with OBJ C.
Apple let development go to seed for many years and now they are trying to become relevant again. I think the ObjC coders are becoming what the old COBOL coders are now.
I never really used them until I did Python development. Of course there are other ways to get the same result but they really make for cleaner looking code, in less time.
Reply #7 starts by saying "more:" and then the rest is a block quote from ZDNet of an article by Kevin Tofel entitled "After Apple open sources it, IBM puts Swift programming in the cloud" and that hyperlink is in that article.
I gave my iPad Air to my girlfriend and am using the iPad Pro as my primary iPad now. However I do most of my posting with my new MacBook.
As to font size. Using any iPad in landscape mode with FreeRepublic will increase the text size and double tapping the screen will fill the screen with the column, also increasing the text. I've used Microsoft Windows computers to browse FR and find the font size unacceptable and many websites are so small as to be unreadable.
I take it you are using the separate keyboard?
No, I haven't bought one yet. The reviews were less than stellar on Apple's keyboard and several third party keyboards rate higher. I am waiting to decide which I will select. It may be I will buy Apple's but it also may be that I will not buy any. I've bought several over the years for my other iPads and have never found that I used them. I can't see that I would use one with the iPad Pro either. I am quite proficient with a virtual keyboard on the screen. However the newly laid out keyboard for the iPad Pro is requiring me to force my hands to re-learn well trained muscle memories of touch typing to change after years of experience. For example the right and left carets for control characters in HTML are not in the same shifted keyboard they were on the older iPad but are now back in the standard Mac keyboard position. That takes relearning how to reach them. That's a bit frustrating when the hands recall using a different key to switch to the secondary keyboard for a left or right carat symbol. Similarly, there are more keys which when held now offer their shifted equivalents. Convenient but different.
Time was, OS X had macro capability so that you could assign text strings to key combos. I used that for awhile, but it seemingly went away a few upgrades ago. Sure would be nice, pending John Robinson's finding the gremlin which is making the HTML hash up my quotation marks and apostrophes. Really wouldn't be a true substitute, because even if I do put in & rsquo; instead of ' the character altho displayed correctly does not come out right if someone tries to copy and paste it in a reply.
Macros are still available in OS X and are even more robust. I use them regularly to set HTML codes for things like setting and closing Blockquotes, complete hypertext links, text color and text size, etc.
I’ve never used Objective C, but I’ve used C++ extensively for application development in both the Windows and Linux environments. I’ve settled on Qt as a development platform for the last 5 or so years, because it is somewhat platform independent.
My everyday coding language is C. That is the language of the Linux Kernel, and that is where I spend most of my time.
I’ve looked into Python, but the rigid indentation syntax was a loser in my estimation. I indent in C and C++, of course, but those languages use brackets to locate code blocks. As far as I can tell, this is not the case with Python.
For interpreted language, I just use bash script. I’ve dabbled in Perl, but I like bash the best.
C is so easy for me, that the extra compilation step doesn’t bug me.
The indention was a brief turnoff for me with Python, but an IDE like Pycharm makes it a lot simpler and I didn’t miss the little {brackets} at all. Pycharm also has great support for VM’s, remote debugging and deployment.
I do some Unix work too and found Python to be a good replacement for Bash and Korn for anything needing any logic.
We had a Data Warehouse load that was using 100+ scripts and was a support nightmare. One Python App with external configuration via XML Documents replaced them all.
I am still getting used to the Force Touch trackpad a month after buying it . . .
Disclaimer: Opinions posted on Free Republic are those of the individual posters and do not necessarily represent the opinion of Free Republic or its management. All materials posted herein are protected by copyright law and the exemption for fair use of copyrighted works.