Live data from Hacker News

Swift, and why it hurts you (from an GNUStep developer)

heronsperch.blogspot.com

31–40 of 60 posts

Re: Swift, and why it hurts you (from an GNUStep developer)

#31

The author lost me on "the language is very javascript like". His view on programming languages design is highly superficial. I can't take seriously the rest of his thoughts.

Seriously, does his extent of looking at the language end at the "var" keyword?!?

Re: Swift, and why it hurts you (from an GNUStep developer)

#32
post #21

Lock-in? This argument - which we've heard before - makes the assumption that a programmer can only know one language at a time. I get that some folks are fearful of change. You're in the wrong industry, then.

I think it's not about the programmers but about the code. Swift code is much less portable than ObjC one.

On the other hand, I've never heard of anyone using their ObjC code from iOS app for Android one (by transpiling to Java or building ObjC code as a native library) or vice versa, so I guess this point is probably mostly moot. Except for the rant comes from a GNUstep developer, where ObjC is a language of choice, too (and Swift is supposedly unavailable, at least it's the case at the moment).

Re: Swift, and why it hurts you (from an GNUStep developer)

#33

Will Swift be open source? That's the core question. In the 2000's, Flash was gaining a ton of popularity on the web, and Macromedia was recently bought by Adobe. They had just developed a new programming language, ActionScript, which was dynamic and object-oriented and offered an interactive developer playground. For early web developers like me, it was seductive and simple and more powerful than other state-of-the-…

ActionScript 3 was open source. - It was based upon ECMAScript 4. - The ActionScript code was open source, and the actual reference code for ECMAScript 4. - The JIT runtime of ActionScript 3 was open sourced (Tamarin) and "donated" to Mozilla to use as the basis for a faster JS runtime. Also, your comparison of Flash with Apple's Cocoa/OS platform frankly makes no sense. The situation is vastly different. Swift is in…

ActionScript 3 was released in 2006, long after developers had already started departing the Flash ecosystem in droves and Flash fell out of favor as delivery technique for web applications. "Ajax", as we were calling it then, started to be used as the primary delivery technique for rich applications; the original Ajax essay came out in 2005 (http://www.adaptivepath.com/ideas/ajax-new-approach-web-appl...) and that's when we started reverse-engineering applications like Google Maps to build interactivity without proprietary plugins and languages.

Re: Swift, and why it hurts you (from an GNUStep developer)

#34

Will Swift be open source? That's the core question. In the 2000's, Flash was gaining a ton of popularity on the web, and Macromedia was recently bought by Adobe. They had just developed a new programming language, ActionScript, which was dynamic and object-oriented and offered an interactive developer playground. For early web developers like me, it was seductive and simple and more powerful than other state-of-the-…

ActionScript 3 was open source. - It was based upon ECMAScript 4. - The ActionScript code was open source, and the actual reference code for ECMAScript 4. - The JIT runtime of ActionScript 3 was open sourced (Tamarin) and "donated" to Mozilla to use as the basis for a faster JS runtime. Also, your comparison of Flash with Apple's Cocoa/OS platform frankly makes no sense. The situation is vastly different. Swift is in…

Oh, and importantly, the Flash Plugin, the runtime, is not even open source today. Making the tooling open source is important and good, but also tends not to be enough.

Re: Swift, and why it hurts you (from an GNUStep developer)

#35

The author lost me on "the language is very javascript like". His view on programming languages design is highly superficial. I can't take seriously the rest of his thoughts.

Seriously, does his extent of looking at the language end at the "var" keyword?!?

Semi-colons too, natch. :)

Re: Swift, and why it hurts you (from an GNUStep developer)

#36
Guys, you're completely screwed because we're writing on patent encumbered languages, on patent encumbered OSes, using patent encumbered hardware, with patent encumbered processors, that were manufactured in patent encumbered processes.

It's turtles all the way down!

Re: Swift, and why it hurts you (from an GNUStep developer)

#37

Earlier quoted context omitted.

You can write Objective C on Linux.

Yet the argument is pretty much moot since the Obj-C you write for iOS apps is locked to iOS/OSX because of Cocoa. In that regard nothing changes for developers of these platforms - they just have one more language choice now.

Cocotron[1] is a reasonable open source Cocoa implementation. You could very well aim to support both it and Cocoa proper.

Beyond UI, I actually have used my Objective-C data models from an iOS app on Linux. There is no need for Cocoa there. Objective-C code transitions quite well at that level.

That said, I do agree that it is really not a big deal for the vast majority of developers.

[1] http://www.cocotron.org

Re: Swift, and why it hurts you (from an GNUStep developer)

#38

Will Swift be open source? That's the core question. In the 2000's, Flash was gaining a ton of popularity on the web, and Macromedia was recently bought by Adobe. They had just developed a new programming language, ActionScript, which was dynamic and object-oriented and offered an interactive developer playground. For early web developers like me, it was seductive and simple and more powerful than other state-of-the-…

Until the iPhone came, I've a seen lot of attempts to :

- move Java to a more browser friendly position

- make Flash lighter, faster and easier to integrate on mobile

These were for feature phones, and any of the above were realistic and plausible (I did actual projects using each of the above)

Flash got killed because it was too mouse centric and there would be no bridge between mobile and desktop, thus denying any network effect fom the desktop. The API was good enough, there was a few open source compilers and the runtime was OK. Compared to native Java it was actually nice to use.

But when you see the iPhone or the android phones, there is no compelling reason to do a lightweight Flash app when the same can be done in JS for more or less the same effort (and the js would work everywhere). Access to native functions could have been a selling point, but even that, going the full native route would be more sensible.

TLDR;for me Flash was killed by js coming to mobile, more than anything else

Re: Swift, and why it hurts you (from an GNUStep developer)

#39
I doubt that this is going to be a problem for long -- I'm willing to bet that at least two projects have started to create open source Swift compilers.

IMO, Swift is the most interesting language that's obviously going to be around and popular in 10 years time. There are languages that could be argued as even more interesting, such as Rust, and languages that are even more obviously going to be around and popular in 10 years (C++, etc), but swift is the only language I see that has both.

An open source Swift will not make iOS apps much easier to port, though. The libraries and frameworks of iOS are a much bigger hurdle than the language. Not to mention the fact that there will probably be small incompatibilities between the Apple and the open source implementations for at least the first few years.

Re: Swift, and why it hurts you (from an GNUStep developer)

#40

The author lost me on "the language is very javascript like". His view on programming languages design is highly superficial. I can't take seriously the rest of his thoughts.

Reading through the description, plus looking at some example code reminded me a little of javascript (particularly in its es6 incarnation) too.
Post reply on HN