Super excited! I will totally be exploring Swift for quantitative work. Julia has been great so far, but a lack of good IDE tooling is making a large codebase difficult to navigate and keep clean. Python has even less type safety than Julia. Swift has a REPL! Go doesn't, and its lack of generics makes writing most algorithms very limited (there isn't even a matrix 32 library, just 64 bit). Java has horrible native in…
You don't need an ecosystem? Swift does not have this, not for Linux at least.
Swift is Open Source
401–410 of 458 posts
Re: Swift is Open Source
#402Earlier quoted context omitted.
It's really interesting that they decided to retain the full history! It also gives away some information about the initial contributors and the timeframe of when they started.
Here are some visual aids that better shows how this project has evolved. It also shows how active things are today. http://imgur.com/a/HyQWv
Re: Swift is Open Source
#403Earlier quoted context omitted.
Indeed; that's him! Edwin Catmull [1], along with Raphael Rom [2], created the Catmull-Rom spline. It was perfect for the Galaga-like level in my game. I only need to define a few control points to create a robust flight path for the enemy drones. The cool thing about the Catmull-Rom algorithm is that the spline passes through the control points. [1] https://en.wikipedia.org/wiki/Edwin_Catmull [2] https://en.wikipedi…
Curious -- were you implementing the drawing algorithm by scratch? or were you using any libraries?
Of course, you could do all of the above without SpriteKit. For example, for all of the rendering, you would simply write everything directly in OpenGL ES.
There are also cross-platform options, like Cocos2d-x [3] and Marmalade [4].
Finally, if you've read this far, you might be interested in reading my general thoughts and feelings from when I finished the game [5].
Cheers!
[1] https://developer.apple.com/spritekit
[2] http://www.raywenderlich.com/category/sprite-kit
Re: Swift is Open Source
#404Earlier quoted context omitted.
Historically they haven't been, and the page about planning for Swift 3.0 says it will introduce breaking changes. (It also mentions that Swift 2.2 will be released in the interim and its compiler will try to warn about things that will be broken in 3.0 so you can get your code ready early.)
It's interesting to compare Swift 2 -> 3 to the Python 2 -> 3 upgrade experience. Apple will simply break whatever they need to break to get the improvements they decide would be valuable, move on, and anyone who doesn't follow is likely to be left in the dust. Frankly, I welcome it after years of feeling like the only Python 3 user on Earth. For the next few years, I expect Apple will wield a great deal more power o…
Re: Swift is Open Source
#405Earlier quoted context omitted.
This raises some interesting legal questions. If I start a git repo and only add a license in the Nth commit, does that license apply retroactively to a checkout of the first N-1 commits? What if I start out with one license but I change it in the Nth commit? If someone clones the git repo with the Nth commit in it and then checks out an earlier commit, which license applies? (For simplicity, assume I am the only aut…
"does that license apply retroactively to a checkout of the first N-1 commits" No, unless you explicitly state it somewhere (and even then, I'm not certain). If they add a license to the older commits via rewriting history then yes, those older commits will now be licensed. If they don't do so, then copyright will be default i.e. you can't do anything with it. Now, if they had a large history and didn't retroactively…
Re: Swift is Open Source
#406Earlier quoted context omitted.
That ridiculous: "started cargo-culting the(totally unnecessary) CLA process" It's so they can re-license in the future. There are some projects with so many authors that it is impossible to re-license because you need sign-off by every single person, even if it makes sense to re-license.
From a contributer's point of view, the inability to re-license practically is often a feature, not a bug. CLAs make the worst case scenario touted by GPL advocates about non-GPL licenses practical: They can profit directly and exclusively from your work without your direct consent.
Re: Swift is Open Source
#407Earlier quoted context omitted.
For android, we already have kotlin ( https://kotlinlang.org/ ), which is very similar to Swift and has 100% interoperability with java.
Better alternative is Groovy: https://jaxenter.com/groovy-is-the-swift-alternative-for-and...
They both solve a lot of the same problems, but lots of people will go for Kotlin just for static typing.
Re: Swift is Open Source
#408Earlier quoted context omitted.
> I fully agree that Go is a poor language if you are building a large, monolithic application. I find that statement hilarious considering that it was explicitly one of the design considerations[1] for Go. So they either failed massively, or there's a difference in perspective on what a good language for programming in the large is. From Rob Pike's talk[1]: > Go was designed to address the problems faced in software…
> I find that statement hilarious considering that it was explicitly one of the design considerations[1] for Go. That doesn't mean much, if anything. One of the design considerations for Java was "write once, run everywhere" and that didn't turn out that well either. Most languages make failed or semi-failed promises. And their idea of addressing software development at scale, might not be 2015's idea of doing the sa…
Re: Swift is Open Source
#409What kind of trolling is that ? >I think we should use GPL v3 instead. https://github.com/apple/swift/pull/17
That issue changed my view of GitHub, and related things. I'd seen a few animated gifs in other threads this past week, but it didn't really sink in until this. I used to hold scientists and programmers to a different standard than most normal people, because it seemed like a certain level of advanced understanding was necessary to build anything functional in those fields. But I've since realized that special abilit…
This is a dangerous and wrong idea.