Swift Toolbox – community-supported catalog of iOS and OS X libraries
swifttoolbox.io
swifttoolbox.io
Any features you would like to see, let us know. We plan on adding a much nicer view for all the libraries with more information. The ability to the community to add tags to existing libraries, and more.
Hope you guys enjoy!
Have they? Then I really hope they add some easy form of C++ interop to swift in a future release.
There's so much C++ code out there in the Mac/iOS world that rewriting it to swift (or even just wrapping it in C) would make no economic sense.
C++ and thus Objective-C++ has always been a disaster for FFI or anything that depends on binary compatibility or predictable symbol name mangling. Obj-C++ has a lot of ugly areas partly because of this. Kudos to Apple to making it work as well as it does.
Swift is terrific that it also seems to interoperate with C/Obj-C nearly seamlessly (bridging headers), but it is no surprise that the Swift documentation immediately says it doesn't support C++ and you must build C interface wrappers.
* Edit: reclarified comment
Pretty much; Apple doesn't tend to release big things like this on a whim. At minimum they've certainly signaled that Swift will be treated as a first-class language on par with Objective C, and has every likelihood to replace ObjC for most use cases.
Besides, it's not like Swift is necessarily ideal in all cases. For example it might remain relevant for C library bridging code to be written in ObjC, even if the application itself is Swift at the core.
Most likely it will be a ChromeOS language and that is it.
From the keynote, even with ART it seems Android official languages are still Java and C++ and it won't change in the near future.
I think that it also helped that they had a lot of high quality documentation (like the Swift book) ready from day one.
true but not by a long shot :
ts : 2,441
dart: 3,465
now compared to all js questions both are insignificant anyway ( 641,566 )
> neither Typescript nor Dart can make that claim
as devs move to ES6 using TS will make more sense ,that's Microsoft bet.
It is still pure JavaScript. No customer wants those languages on their code base.
Dart is an alternative to JavaScript, and the politics are a lot more murky. JavaScript is the open language of the web and is not controlled by a single vendor. Although Google has opaquely submitted Dart to ECMA, the politics are much less clear, and of course they have given themselves a multi-year head start in implementing and understanding the language. Supporting Dart involves risking handing even more control over the web to Google.
Dart support is pretty poor. You can compile to JavaScript, but that adds friction. Browsers don't support it directly, and probably never will. It seems like there's a pretty decent chance that Dart will be dead within a few years, at which point any time invested into it will have been somewhat wasted.
Swift support is pretty good. It's completely integrated into Apple's toolchain, and writing an app in Swift today is just like writing an app in Objective-C. Apple's throwing their weight behind it and there's zero chance that it will go away anytime soon. Putting time into it carries zero risk as long as you think you'll want to continue to target Apple platforms.
This is the upside of Apple's dictatorial "I am the platform!" model. If they decide that the platform shall support a new language, then the platform shall support a new language. On June 1st, the main language for development on Apple platforms was Objective-C. On June 2nd, it was Objective-C and Swift, just like that.
No company can swoop in and impose something like that on the web. This is generally a good thing, as one company can't fuck it up for everybody. But there are disadvantages, like it being really really hard to push a good new language.
If you want serious examples, look at OpenGL standardization and how every competent GL developer has to work around the standard via GL extensions because the standards body fails to deliver anything useful. Here's just one historical gripe. http://www.theregister.co.uk/2008/08/13/opengl_firestorm/
Or look to Douglas Crockford's snipes at the ECMA standards committee for JavaScript, such as how they failed to clean up known problems until only after the hilarious talk "WAT" (https://www.destroyallsoftware.com/talks/wat) went viral and really humiliated them.
Oh, and nice idea. I've been waiting for something like this. Ideally, I'd like to see something a package manager like brew or apt.