News for hackers. Stuff that matters.
Re:On Apple's Love Affair with Swift by sheeshkebab on Saturday August 11, 2018 @08:44AM (#17739468)
Swift is nice, although it’s too close to objc.

I think it’s time for Apple (and Google) to embrace JavaScript as the app development language.

Re:On Apple's Love Affair with Swift by thosakwe on Saturday August 11, 2018 @08:48AM (#17739472)
Why JavaScript, out of all languages in the world?

I don’t think that’s a particularly great choice.

Re:On Apple's Love Affair with Swift by tabs_masterrace on Saturday August 11, 2018 @01:22PM (#17740600)
Javascript is just a platform to run transcompiled stuff on these days, not unlike the name giver's JVM
Re:On Apple's Love Affair with Swift by jmpt on Saturday August 11, 2018 @09:53AM (#17739660)
Large headcount of developers. Everybody and their dog does Javascript.
Re:On Apple's Love Affair with Swift by DannyBee on Saturday August 11, 2018 @03:19PM (#17741102)
If that's your metric, java has many more developers (millions more, in fact).
Re:On Apple's Love Affair with Swift by scarface74 on Saturday August 11, 2018 @01:34PM (#17740644)
There are all sorts of optimizations that are much harder to do in a non statically typed language. There are also all types of guaranteed safe automated refactoring you can do with a statically type language. I shutter to think about using a non type safe language with a large code base.
Re:On Apple's Love Affair with Swift by AsyncAwait on Saturday August 11, 2018 @09:58AM (#17739679)
Us holdouts would like to have somewhere left to run to too.
Re:On Apple's Love Affair with Swift by izacus on Saturday August 11, 2018 @11:14AM (#17739958)
So by that metric, Java is a significantly better choice still ;)
Re:On Apple's Love Affair with Swift by staticassertion on Saturday August 11, 2018 @08:52AM (#17739482)
Javascript would not meet the 'fast' requirement, as expressed in the linked article.
Re:On Apple's Love Affair with Swift by redial on Saturday August 11, 2018 @09:10AM (#17739534)
The only requirement Javascript meets is being included by default in web browsers.
Re:On Apple's Love Affair with Swift by douglaswlance on Saturday August 11, 2018 @09:10AM (#17739535)
Javascript is not a good choice. It's both verbose and unsafe.
Re:On Apple's Love Affair with Swift by staticassertion on Saturday August 11, 2018 @09:26AM (#17739583)
Javascript meets the 'safe' definition in the article - memory safe.
Re:On Apple's Love Affair with Swift by spunker540 on Saturday August 11, 2018 @10:27AM (#17739792)
It’s still fairly easy to have subtle memory leaks in JavaScript code due to the way closures can keep variables in scope indefinitely.

https://blog.meteor.com/an-interesting-kind-of-javascript-me...

Re:On Apple's Love Affair with Swift by dbaupp on Saturday August 11, 2018 @10:59AM (#17739894)
Memory leaks are memory safe, or, at least, don't lead to memory corruption like other violations of memory safety. https://huonw.github.io/blog/2016/04/memory-leaks-are-memory...
Re:On Apple's Love Affair with Swift by rmrfrmrf on Saturday August 11, 2018 @09:24AM (#17739577)
Apple already has with JavaScriptCore.
Re:On Apple's Love Affair with Swift by scarface74 on Saturday August 11, 2018 @01:36PM (#17740656)
And what few people know, is that Apple already had a platform where all of the “apps” were written with JavaScript + TVML (a proprietary Apple markup language) - the 3rd Gen AppleTV. If I’m not mistaken, you can still write apps for the ATV4 that way.

Plex was ported to the 3rd Gen AppleTV as an unofficial app just by running a server on your computer and redirecting DNS to it.

https://github.com/iBaa/PlexConnect/wiki/Install-Guide

Re:On Apple's Love Affair with Swift by tomwilson on Saturday August 11, 2018 @10:29PM (#17742621)
You can still on the current Apple TV. In fact if your app is just full of video content or similar then you probably should.
Re:On Apple's Love Affair with Swift by scarface74 on Sunday August 12, 2018 @03:23PM (#17745966)