How funny the server is down. This shows IBM cloud quality somehow. http://m.imgur.com/dGNPBAr
really? it just worked for me http://swiftlang.ng.bluemix.net/?cm_mmc=developerWorks-_-dWd...
No server is available to handle this request.
41–50 of 61 posts
Earlier quoted context omitted.
Given the unfortunate way fd_set apparently got imported, how else would you do this? The only alternative I see is to throw UnsafeMutablePointer at it, but that brings in the ugly specter of undefined behavior. Note that in Swift you cannot use a variable to address a tuple, so there's no way to use intOffset to access the corresponding field of set.__fds_bits.
For me is hard to understand how a language with a behavior/constraints like you describe get so much noise about "been easy to use/learn". I do not like it but at least be DRY as much as possible: case 0: set.__fds_bits.0 |= mask
This is not ideal, but it comes up almost never.
As for your suggestion, that seems like an entirely stylistic thing. DRY is about not copy/pasting large chunks of code, not minimizing individual lines by using compound mutate/assign operators. I've never seen anyone say (before!) that something like `x = x + 1` violates DRY.
If you're looking for something similar for other programming languages too, check out https://bit.run/ . It supports Ruby, JS, Go, Python, Rust, PHP and many more.
Earlier quoted context omitted.
What do you want to do with the language?: Here are some choices I think are interesting as new languages: Elixir : interpreted / scalability / concurrency / fault tolerance/ friendly community Rust : compiled / close to C speed / memory safety / concurrency TypeScript : compiles to Javascript but with types / runs in the browser Elm : compiles to Javascrtipt / functional / runs in the browser
It should be noted that there are some caveats to TypeScript, namely that it's type-safety is only compile-time and not at run-time. It is best-effort type-safety. That said, the edge cases are few and far between. TS is a fantastic language to work with.
It's on Bluemix!!! Here is my experience with Bluemix: 1. We needed to get bills to send to our accounting department. There is no way to get this out of Bluemix. We needed to contact 5 different people and send 2 different support tickets. 2. At one point we couldn't log into our accounts, the authentication server was down. 3. The docker container doesn't always get internet. Also it sure as hell is guaranteed to n…
Earlier quoted context omitted.
For me is hard to understand how a language with a behavior/constraints like you describe get so much noise about "been easy to use/learn". I do not like it but at least be DRY as much as possible: case 0: set.__fds_bits.0 |= mask
What you're seeing here is a result of an unfortunate interaction with bridging to C APIs. fd_set is a C struct which contains a fixed-length array. Swift doesn't have fixed-length arrays, so those get translated to tuples instead. This is not ideal, but it comes up almost never. As for your suggestion, that seems like an entirely stylistic thing. DRY is about not copy/pasting large chunks of code, not minimizing ind…
I am looking for a new language to learn, preferably more PC style platform focused, would this be a good language to learn?
If you're writing iOS apps, Swift is the language to learn. If you're writing server-side code for Linux/OSX, probably not quite yet. The language is nice, but it's only been available as open-source for a day now... the ecosystem you'd need to be productive in Swift isn't there yet. (On the other hand, if you'd like to be involved in building that ecosystem, now's probably the time to jump in.)
Earlier quoted context omitted.
If you're writing iOS apps, Swift is the language to learn. If you're writing server-side code for Linux/OSX, probably not quite yet. The language is nice, but it's only been available as open-source for a day now... the ecosystem you'd need to be productive in Swift isn't there yet. (On the other hand, if you'd like to be involved in building that ecosystem, now's probably the time to jump in.)
Is this IBM link the best first starting point to learn swift -- or should one look to something else as a first entry to swift?
In particular, the Swift Programming Language ebook isn't a bad starting point. The IBM Swift Sandbox looks like a nice little interactive environment to complement it, though, if you don't have access to a Mac to run Xcode.
[1] https://swift.org/documentation/ [2] https://developer.apple.com/swift/resources/
It's on Bluemix!!! Here is my experience with Bluemix: 1. We needed to get bills to send to our accounting department. There is no way to get this out of Bluemix. We needed to contact 5 different people and send 2 different support tickets. 2. At one point we couldn't log into our accounts, the authentication server was down. 3. The docker container doesn't always get internet. Also it sure as hell is guaranteed to n…
Collaboration enabled REPL is there too (enter 'swift' in the shell).