11 ms·
IBM says Swift is ready for the enterprise
- tloble 10y agoIBM says: we are ready to start making money by adding another buzzy technology and using it to provide shitware.
- zkhalique 10y agowhy weren't they ready before, according to you?
- Swinx43 10y agoGiven the way the "enterprise" works I would guess that their clients caught on to the high level of BS and low level of value of previous "technologies". In true enterprise fashion they have now found a new shiny marketing opportunity and only recently put the finishing touches on the sales presentations ;)
- tloble 10y agoOnly because it took them a while to hire/train people sufficiently to be able to sell Swift. This has nothing to do with Swift itself, my point is IBM's bullshit should be ignored.
- themihai 10y agoWhich version (Swift 2, 3 or 4)?
- BanzaiTokyo 10y agoThe article is talking about version 3.0
- themihai 10y agoI see.. though it(swift 3) was just released. I didn't know the enterprise world changed so much(i.e. adopting a technology immediately after release). The core/std library `is not yet ready for production use, and in fact are still in the earliest stages of development.` I also heard Swift 4 is likely to have breaking changes. (ABI) stability will start only on Swift 4 too. But what do I know...? Swift is great and everyone should abandon whatever obsolete language/tools they have in favour of this shinning thing because it has a nicer syntax.
- melling 10y agoSwift 3 is the version with large source change. It required a lot of refactoring. Fortunately, many of the fixes were handled automatically by Xcode. I'm keeping a list of changes: https://h4labs.wordpress.com/2016/09/17/my-ios-10-and-swift-3-refactor-list/ https://h4labs.wordpress.com/2016/09/17/my-ios-10-and-swift-... Any breaking changes going forward should be much less. Of course, you might be in the camp that wants zero breaking changes, then Swift probably isn't for you.
- themihai 10y agoDo you really think Swift 3 is ready for enterprise usage? They say the core lib is not ready yet for production usage[0]. It's not about how may breaking changes I'm willing to take but in the enterprise world there is little incentive to rewrite large code bases. Even in the start-up environment the more code you write the less excited you are about breaking changes. Also Xcode doesn't run on Linux or windows and last time I've checked MacOS was not the the OS of choice in the enterprise world so Xcode is not an option. Next claim I'm expecting is that Swift is ready for the InSight Mars lander mission. [0] https://swift.org/core-libraries/ https://swift.org/core-libraries/
- melling 10y agoI haven't used Swift on the server yet, so I can't honestly say. I'll give it a try soon. However, it's probably best for devs who are already using it for apps (code reuse, experience, etc). For other dev, I might try Elixir, for example, for web dev. It is gaining a lot of momentum. A critical mass in adoption means better support, quicker answers to questions, etc. We all can't pay IBM to worry about the details.
- stuartaxelowen 10y agoDoes this loosely translate to "We want to sell Swift consulting services to the enterprise"?
- pjmlp 10y agoYes, preferably on top of IBM Cloud. http://www.ibm.com/cloud-computing/bluemix/swift/ http://www.ibm.com/cloud-computing/bluemix/swift/
- gaius 10y agoAfter the Helion debacle, I have my doubts about "enterprise" clouds.
- iheartmemcache 10y agoI don't have any clients which will use any cloud solution other than half on-prem SAP and maybe Azure are the only cloud solutions my clients will come close to touching, so forgive my ignorance but which debacle is that? (Genuinely curious from ignorance, not being flippant.)
- gaius 10y agoOh, HP launched a cloud, then shut it down again. http://uk.businessinsider.com/hp-shutting-down-hp-helion-public-cloud-2015-10?r=US&IR=T http://uk.businessinsider.com/hp-shutting-down-hp-helion-pub... The last thing you'd want is to do a big migration then find the rug pulled from under you.
- koder2016 10y agoYes, IBM developers are close to finishing Swift Playgrounds now.
- superJimmy64 10y agoI literally just started to go back and re-learn some of the core concepts for the latest version... wow is Swift ugly! EDIT: I'm not attempting to discredit the greatness that can be had... Just wanted to describe a feeling which I had while using it is all!
- manmal 10y agoIt's a systems language, and imo way more beautiful than c++.
- superJimmy64 10y agoAbsolutely. I'm not attempting to put it down as somehow not worthy of anyones time, just thought I'd mention how "cushioned" it all felt :P
- manmal 10y agoWhat language do you prefer over Swift? I'm curious.
- superJimmy64 10y agoI'm not sure I would choose something over the latest version, primarily because of how little a time investment using it can be... but then again it all comes down to what the task at hand is doesn't it ;P
- snovv_crash 10y agoC++11 with review-enforced RAII. Boost if you need special stuff involving odd data structures. gtest/gmock. Depending on what you're doing, add some Qt5, OpenCV, OpenMP, RapidXML/RapidJSON, any C library ever written - and there are BSD/LGPL libraries for pretty much anything. Make plugins with Lua. Run tests in Valgrind.
- deleted 10y ago[deleted]
- protomyth 10y agoHow is it going with Linux, Windows, BSD, etc. platforms? Anyone with experience using Swift on something other than an Apple product have a story?
- AlexeyBrin 10y agoAFAIK, Swift runs on Ubuntu, I think they've ported a large part of the Foundation framework to Swift. On Windows, some people reported about using Swift under the new Bash for Windows (Windows Subsystem for Linux).
- pjmlp 10y agoIt runs fine on Ubuntu, but you might need umake to install it, or compile from source if still using 14.04 LTS. The GCC ABI 5.0 breakage doesn't play well with Swift source code, when using their own binaries.
- terhechte 10y agoRuns fine on the upcoming (almost-released) FreeBSD 11.0, Ubuntu & other Linuxes as well as Android. Not sure about Windows support, but people are working on that.
- Sk1pp 10y agoI'm pretty sure I saw a port for Arch as well.
- AsyncAwait 10y agoI wouldn't call it a "port", but basically the Ubuntu binaries are universal enough that you can unpack the .deb, symlink a few things to match Ubuntu naming and run the binaries on Arch.
- mark_l_watson 10y agoThis reminds me of the big announcement of IBM partnering with Apple for iPad in the enterprise. I wonder how that worked out? I am a little sceptical of IBM's business plan, all in on Watson, etc., but I have used their Bluemix hosting services and it is fairly nice. BlueMix is has a great free tier level' you can run one or two small web services or apps for free. It is a good idea supporting Swift in the server.
- iheartmemcache 10y agoThere are plenty of enterprises silently chugging away with Cognos as their BI platform. 'IBM MobileFirst' (i.e. some guys basically make a 'custom' dashboard for your TM1 instance that C-levels can use on their iPhone) probably broke a profit by doing what they do best. (I.e. severely overcharging companies for functionality, in exchange for the purchasing authority having the ability to say "hey I bought IBM"). Cognos still is silently huge (TIBCO and Informatica levels of huge) and considering how the corporate world went from BlackBerry to iPhone, it's a safe bet that it made a profit. Side-note: There was an article about the imminent demise of Oracle, but residual support contracts and the need for CIOs to keep renewing those contracts for a few hundred k a quarter is a cheap buy as insurance in the same way you go to PricewaterCooper and not JoeSchmo to get your books audited. (If/when PWC messes up, the board will overlook your failure.)
- nnq 10y agoSo... what's the "elevator pitch" for Swift? It has anything interesting over Elixir or Go (well, go's feature is "lack of feature" but you know what I mean) or Scala or Kotlin? I know that iOS and MacOS desperately needed a modern language, and great for them that they have it now, but does the rest of the world need it?
- qaq 10y agoIt's fairly decent as far as OOP languages go, but I'd say it's appeal as server side language is limited to iOS devs though :).
- eyelidlessness 10y agoI don't think it's fair to call Swift an OOP language. It is certainly multi-paradigm, but provides a lot of facilities for functional programming as well. If you are not working directly with Cocoa, you can do a lot of interesting stuff with structs and protocols. It appeals to me as a server-side language, and I've never done any iOS work. The reasons it appeals: - Static types - Good type system - Lots of good support for immutability - Apple is heavily invested in Swift, and very responsive to the community It has some downsides. I'd evaluate Swift against Clojure and Elixir (which both have good, though quite different, concurrency stories), and maybe Haskell (but that would be tough from a buy-in perspective). But evaluating it against Python (which my team currently uses), it's hard to see a downside; we chose Python for Django and DRF, but we're increasingly not in love with that choice.
- Aker89 10y agoOkey, so what is appealing to you then? (just curious)
- qaq 10y agoElixir
- hellofunk 10y agoI think the pitch is that despite static typing, it offers a lot of multi-paradigm high-level features while remaining elegant with fairly minimal syntax compared to other native static languages like Rust or C++. It automatically manages memory but without a stop-the-world garbage collector and goes a long way to opening a lot of flexible design options to any developer: it has great support for generic programming, object orientation, and functional programming. The downsides? Well, I find some of its syntax choices a bit odd and inconsistent; I think the pursuit of elegance could have gone much further. And, while I celebrate its pervasive use of closures/lambdas and functional idioms in my many contexts, it lacks true functional data structures that would be necessary to really write in a proper functional style with confidence that the runtime wouldn't suffer. Also, the implementation of its high-level features is somewhat magical and hidden. You can't depend on performance when using them until you really study them. So much so, that WWDC had a big talk about how to choose language features depending on the type of performance you need, and none of it was intuitive. Additionally, at least on the Apple platforms, its Objective-C heritage can be a bit annoying. In particular, you can't mix and match closures with "selectors", which is a real shame and missed opportunity for flexibility and elegance.
- ruffrey 10y agoI cannot take this seriously. Even minor versions of Swift have breaking language changes and depredations. That tells me precisely it is too early for the enterprise.
- mikeash 10y agoThis should be greatly reduced now that Swift 3 is out. A big part of Swift 3 was getting all of the breaking changes over with so that they can maintain source compatibility from here. There will likely be some small breaking changes over the next year or so as they nail down bits they missed, but it'll be a lot less chaotic than what we saw with Swifts 1 and 2. I realize that "greatly reduced" may not be good enough for you, though. Perhaps next year even that will be done.
- nnq 10y ago"Enterprise" uses nodejs just fine... probably this is what gave IBM the idea to even try :)
- AlexeyBrin 10y agoAny breaking changes in the JavaScript language in the last .. . 10 years or more ? On the other hand Swift had quite a few breaking changes in 2016.
- acdha 10y agoThat sounds like every enterprise application I've ever used – if you make money selling support and consulting, churn is awesome!
- mitchty 10y agoThat explains "enterprise ready" then. :)
- jmacd 10y agoHilarious that IBM still thinks of the enterprise as the arbiter of quality. Consumer is now setting the defacto standards, including on things like information security. IBM's days of having a voice in that conversation are probably more limited than they realize.
- wiz21c 10y agowould you car to give some exampled ? My opinion is that the enterprise is a somewhat separate ecosystem. Thus "enterprise-ready" -ready is not a mark of quality, it's a mark of belonging to the enterprise ecosystem.
- themihai 10y agoI'm wondering what makes swift ready for the enterprise ecosystem. It barely seems to meet the requirements of the "enthusiastic consumer" outside of Apple OS.
- barkingcat 10y agoTo be ready for the enterprise ecosystem basically means that you can sue someone if things go wrong, and you can buy support packages for enormous sums of money. IBM is saying that you can 1) buy bluemix swift from them, and 2) sue them if anything goes wrong - but since they have a great legal team, they probably got ironclad agreements ready to go.
- madeofpalk 10y ago> sue them if anything goes wrong Cool! https://www.theguardian.com/australia-news/2016/sep/23/australian-bureau-of-statistics-lays-blame-for-census-bungle-on-ibm https://www.theguardian.com/australia-news/2016/sep/23/austr...
- themihai 10y agoI thought stability of the ecosystem (i.e. stable standard library) was also a "must" for adoption by the enterprise. Never thought that a language in flux with "hosting" support from IBM is enough. But now it seems the enterprise world is eager to try the coolest thing and rewrite/refactor it after the next release as long as someone will host/run it. Now that you enlightened me I can see the stock markets, hospitals, banks and all enterprise consumers embracing Swift and eager to upgrade once Swift 4 is released.
- melling 10y agoThe article mentions IBM's web framework: https://developer.ibm.com/swift/kitura/ https://developer.ibm.com/swift/kitura/ Has this one gained the most traction?
- supster 10y agoI would say this one has the most traction so far: http://vapor.codes/ http://vapor.codes/ http://vapor.university/ http://vapor.university/
- ipp 10y agoIn terms of GitHub stars: https://github.com/vapor/vapor https://github.com/vapor/vapor: 6,300+ https://github.com/PerfectlySoft/Perfect https://github.com/PerfectlySoft/Perfect: 8,400+ https://github.com/IBM-Swift/Kitura https://github.com/IBM-Swift/Kitura: 4,200+
- cheriot 10y agoI see a bunch of stuff in their github (https://github.com/ibm-swift https://github.com/ibm-swift), but not the language implementation itself. Does anyone know what its license is?
- psuter 10y agoDo you mean https://github.com/apple/swift https://github.com/apple/swift ?
- hellofunk 10y agoThe post is about IBM's Swift implementation.
- supster 10y agoSwift, the language, is from Apple. IBM simply has built a bunch of tools for Swift and would like to sell consulting services around them.
- hellofunk 10y agoYes, but I thought the question you replied to was about IBM's implementation, and thus their github page for it.
- stepanhruda 10y agoWhat? They don't have their own implementation...
- euyyn 10y agoI've heard they ported GCD to Linux, though. Would love for that to be open-source.
- 10y ago
- valarauca1 10y agoWhen I recently interviewed at Apple I was told my position would primarily be coding in Java, but the team would be open to other languages as the project progressed and needs changed. I asked if they would consider Swift. Then was told that Swift wasn't production ready in their eyes. (I didn't get the job) I guess every team is different, but this attitude to dog fooding isn't great.
- omni 10y ago> this attitude to dog fooding isn't great. Apple isn't telling people to go use Swift on the server, IBM is. Apple is telling people to write iOS apps in Swift, which they are also doing themselves.
- valarauca1 10y ago>Apple isn't telling people to go use Swift on the server, IBM is. I'm aware. This is the (humorous) point I'm attempting to make. IBM is adopting technologies faster then Apple. While Apple started it's life out as the Anti-IBM. Indeed it is still fulfilling this role. The (humorous) point being, their roles have in a way swapped.
- josho 10y agoYes, it is interesting how the companies have evolved. IBM lost the consumer space and is dominant in F100, while Apple won the consumer space and abandoned the enterprise. With both IBM & Apple behind Swift the language is being positioned for success in both enterprise and consumer markets. It will be interesting to see how things evolve.
- JustSomeNobody 10y agoI thought Apple was not one to usually adopt technologies quickly. That's been a (fair?) criticism of theirs for some time.
- azernik 10y ago
- cdnsteve 10y agoI love all these zippy marketing keywords: "digital transformation" and "digital experiences". IBM is trying hard to get developer attention. They have a hard battle ahead of them to compete against AWS, Google Cloud and Azure. That's what this really all comes down to, pushing their hosting services.
- geodel 10y agoI think IBM might be moving Java/Websphere technical staff to Swift. Considering new versions Java/JavaEE are getting delayed so IBM would prefer to use Swift increasingly instead of Java.
- pjmlp 10y agoNot sure, but they are already making J9 modular and using its JIT and GC for their own implementations of Python and Ruby. So I would say IBM is scattering their eggs across multiple baskets.
- geodel 10y agoIndeed. IBM is also investing a lot in Go by porting it to their hardware and OS primarily for blockchain stuff. I think it is more of thing that Swift has more interesting Client/Server/Mobile story than Java. Given that I do not see why IBM would not cut investments in Java.
- Apocryphon 10y agoSo is this finally the result of the Apple/IBM partnership that was announced a few years ago?
- aaronbrager 10y agoNo, this is one small piece of the partnership. The companies have been partnering on iOS apps for specific industries since the announcement.
- bryansum 10y ago"IBM says it's ready to receive its next Apple check"
- mrweasel 10y agoEnterprises value stability over all else. Given the rather large changes to Swift 3, I don't see Swift as being "Enterprise Ready" just yet. That would require someone committing to maintain and patch Swift 3 for at least the next five, but preferably ten years.
- barpet 10y agoI have access to books for Swift 1.0/2.0 as some has given them to me for free. How much of it is useful when it comes to breaking changes that came with 3.0 ?
- aaronbrager 10y agoIf you don't already know Swift you'll be wasting your time. Swift 3 looks and behaves very differently from Swift 1. Fortunately, the Apple Swift book is free, up to date, and written well.
- morenoh149 10y agohttps://itunes.apple.com/us/book/swift-programming-language/id881256329?mt=11 https://itunes.apple.com/us/book/swift-programming-language/...
- cageface 10y agoOverall I like Swift and it's certainly a massive quality of life improvement for Mac/iOS devs. But I don't see as much upside for enterprise development. Server side tooling and deployment is still TBD, reference counting adds non-negligible cognitive overhead vs GC in an environment where the downsides of GC matter much less. They will have to build a complete ecosystem of server-side libraries from scratch. And unlike on iOS/OSX, there are already a lot of good and much more mature alternatives. I wouldn't be unhappy if Swift became a real contender on the server but it seems unlikely to me that it will.
- spotman 10y agoCan you elaborate on the cognitive overhead vs a GC language like golang or java? (With regards to memory) To me sure there is things you think about but generally memory performance is less of a mental burden. Also, swift 4 is supposed to support a rust like memory model. Not sure if it's opt in or how it will work but my impression is that it's memory model is about to support some new use cases to make it appropriate for more memory critical tasks.
- mikeash 10y agoSpeaking only for myself, avoiding or breaking retain cycles is a noticeable problem in Swift code that simply isn't there in languages with a proper garbage collector. Among newer iOS programmers, it's a big point of confusion to figure out when a callback closure should use [weak self] versus capturing self strongly, for example. I've seen a lot of people struggle to understand, completely fail, and end up dogmatically using [weak self] everywhere whether it's needed or not (and sometimes where it's actually harmful).
- freewizard 10y agoIt's probably just IBM luring attention for its cloud service. I can't read anything other than that from this piece. The real sign would be one day Apple telling us they are writing iCloud service or at least some significant part of it in Swift for Linux.
- Zelphyr 10y agoI have serious reservations about IBM's involvement in Swift. I spoke with someone very high up in the Sun organization once who said IBM was the worst thing to happen to the JDK. Which is saying something since IBM wrote most of the JDK. IBM seems to make a mess of everything they touch. I really wish Apple had taken a "Thanks but no thanks" stance when approached by IBM.
- montyedwards 10y agoSwift is good for enterprises that standardized on Macs and ios devices, but there aren't many of those (yet). I'm pretty sure Swift isn't ready on Windows, which is a shame because most "enterprises" standardized on Microsoft Windows and Active Directory. Go (golang) has better support for a wider variety of platforms, but it has serious bugs on non-Linux platforms (as of go 1.7.1) that make it unsuitable for the enterprise. Basically, whatever customized Linux distro used at Google will likely get the most time from superstars on the go team. Also, calling C functions and callbacks from C can cause all sorts of issues, and the "cgo isn't go" mantra scares me when considering Windows desktops, etc. as a target platform. C++ is making a comeback and I like C++14, but backwards compatibility and other factors make it too complex compared to other languages. But at least it supports all the major platforms and there's no worry it'll drop support for one due to vendor politics. Rust looks promising from a cross-platform perspective like C++, but Rust is still way too new for the enterprise just like Swift. Perhaps in five years, it'll stand a chance in the enterprise (as much as C++) and without the complex baggage from inheriting decades of backward compatibility. Who knows what'll happen by the time Swift or Rust is considered enterprise ready and truly cross platform -- maybe in 5 years, there will be a cross-platform native compiled F# that doesn't heavily favor one vendor's platform or nim might skyrocket out of obscurity -- who knows, but its fun to imagine and do some coding to make the future brighter.
- heisenbit 10y agoIn '95 I remember going to an excellent Smalltalk course. A year later that lecturer was working for IBM on Java. IBM '96 also bought and then shifted an excellent Software Configuration Management System by OTI towards Java (aka. Eclipse). IBM contributed a huge part of Java networking code too. Java seems to be leaving a gap for various technical reasons. Java also may be seen by some as having strategic challenges under the Oracle stewardship. Go, Swift, Node and others are currently trying to exploit it. Java took off not the least due to IBM stepping into the SUN court. Now IBM steps into the Apple court...
- MyNameIsFred 10y agoThat's a good point, but do you think that things have a chance of playing out similarly this time around? I get the feeling that web tech was more of an open question at that point, so people would look to a group like IBM to set the standard. I'm not so sure that that's the case anymore (and I make my living building within the IBM ecosystem, so I wish it were so).
- MrGando 10y agoWell, that's just not true IMHO. They need the ABI stability or I wouldn't do anything for enterprise. Also, Foundation getting open sourced is a huge part of this to avoid using third party libs for a huge amount of things (HTTP requests for example).
- iamleppert 10y agoWhat exactly do you need in a server-side language these days? Most of the interaction is done on the client, in javascript. Your web service should just be responsible for handling basic request/response, CRUD operations and delegating to other more specialized systems when the need arises, which can be written in the most appropriate language given the problem domain and tools/libraries available. More often than not what dictates language choice is supporting libraries that you'd rather not rewrite from scratch. How good are they, how long have they been around? etc... For that, its often just easiest to use anything non-blocking to serve as the main handler that communicates to your other services. For me, I use node but there are other choices if you don't like javascript. Most of the time it's not worthwhile to switch to a language just because IBM deems it suitable. I've picked up more than a few freelance gigs where IBM have botched the job and grossly overcharged for something that could be done simply. My clients appreciate my honesty, openness, and simplicity of work. What they really mean when they say "Swift is ready for the enterprise" is that THEY are ready --- they have developed all the sales materials, support orgs, and hired the "correct" developers (in this case Swift ones) to run their gambit on as big of fish as they can.
- Razengan 10y agoFor those that missed it, IBM showed some promising stuff in the "Going Server-side with Swift Open Source" talk this WWDC: https://developer.apple.com/videos/play/wwdc2016/415/ https://developer.apple.com/videos/play/wwdc2016/415/