Live data from Hacker News

Swift is Open Source

swift.org

381–390 of 458 posts

Re: Swift is Open Source

#381
post #376
post #342

Earlier quoted context omitted.

Except it isn't, the vast majority of Apple's internal iOS stuff is still written in Objective-C.

Yes it is. The old stuff just happens to still exist but it's obviously not "preferred".

Sorry, I left out a word. The vast majority of Apple's internal iOS stuff is still being written in Objective-C.

Re: Swift is Open Source

#382

I would love to see Swift for Android programing. I'm already using Kotlin, a language very close to Swift, for programming our Android apps. But I find Swift niftier than Kotlin.

In what way? I've recently started writing in Swift and I find it to be less powerful than Kotlin. One such feature that's missing: extension expressions. Allows things like `let` and `with` from the kotlin stdlib

What exactly are extension expressions, do you mean extension methods? If so, Swift does support them. I actually miss interface extensions in Kotlin, but thats a java cross compatibility issue.

Re: Swift is Open Source

#385

The programming language eco system is really improving rapidly and efficiently. It seemed the developer's toolkit was limited by the languages created 20+ years ago but within the last few years we're seeing a renaissance in developer toolkits as well as development philosophies. Languages like Go, Rust, and now Swift are not only great from almost every aspect over the last generation languages like C, C++, Java, b…

"learning/mastering both Go and Swift is the best decision you can make" is a very bold claim. In my area we use Go for some systems but found it scales badly from an engineering point of view to larger more complicated systems, compared to languages like Java and Scala. The JVM has much more mature tooling and libraries too. For mobile applications it will be a while until Swift is stable on Android, so some of the…

For android, we already have kotlin (https://kotlinlang.org/), which is very similar to Swift and has 100% interoperability with java.

Re: Swift is Open Source

#386
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 interfacing. C# is pretty anemic on Linux. C++ has too many gotchas, slow compile, to feel productive. Bonus: Swift libs will probably be very easy to deploy on both Android and ios.

Re: Swift is Open Source

#388
post #386

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.

Re: Swift is Open Source

#390
post #330

Earlier quoted context omitted.

I recognized the name Catmull from Steve Jobs biographies... lo and behold you're talking about the Pixar President Edwin Catmull.

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?
Post reply on HN