News for hackers. Stuff that matters.
Re:SwiftWebUI by wilg on Monday July 01, 2019 @02:16AM (#20322868)
Yep, this is super exciting.

I would be surprised if Apple isn't working on SwiftUI for web themselves. They have web versions of all of their major apps already – Photos, Numbers, Keynote, etc. I'm sure they'd prefer to not have a completely separate implementation for those. SwiftUI currently supports all the platforms those apps... except the web.

Also it makes a ton of sense to have an Apple-supported way of writing web backends in Swift... after all, they have a lot of those too.

I don't know if they'd support Windows and Linux because they could just support web instead and that would be good enough. Maybe Android is worth it though? The main reason is I'd imagine they might want to unify the codebase of Apple Music and Apple TV apps, but I'm sure they'd worry about bringing too many good apps to their competitor's OSes. That's probably too scary so they'll probably prefer to just build two apps like they already do.

Also, this reminds me, is there any way to listen to Apple Music or watch Apple TV on Windows, Linux, or Chrome OS? I don't think so. I'd have to imagine that's in the works.

Re:SwiftWebUI by month13 on Monday July 01, 2019 @04:05AM (#20323356)
There is Musish (https://musi.sh/) which uses the MusicKit JS to allow Apple Music playback in the browser.

There are also plans to bring the Apple TV app to Smart TV platforms as well, so a similar framework may be on the way for TV too.

Re:SwiftWebUI by xhubin on Monday July 01, 2019 @03:14AM (#20323120)
They probably aren't. Remember that Apple isn't very fond of the web app idea because it could make them lose their app store and the revenue from it.
Re:SwiftWebUI by wilg on Monday July 01, 2019 @03:51AM (#20323298)
Well, web apps could kill their desktop platform because you can have the same experience cross-platform, so why buy a Mac? It's in their interests to ensure that the Mac app is substantially better than the web app by integrating more deeply into the OS. So offering a single framework that can do a great job on web apps and an excellent job on Apple platforms, you ensure that it's the most attractive option to developers who would otherwise build an Electron app. And you ensure that most cross-platform apps (which is most apps) are better on Apple platforms.

(If they get there first, this has a side benefit of preventing Windows, Linux and Chrome OS from doing the same thing as easily.)

Re:SwiftWebUI by Razengan on Monday July 01, 2019 @03:25AM (#20323180)
A Swift-based web framework doesn't have to come from Apple; as already shown, you can write your own DSLs in Swift 5.1
Re:SwiftWebUI by Eric_WVGG on Monday July 01, 2019 @09:47AM (#20325176)
That's weird. Why did they say that web apps were the way to go for the first two revs of "iPhone OS"?

But seriously: app store revenue is a rounding error. It's more likely that Apple perceives web apps as a threat to their bottom line the same way they view ripped MP3s as a threat to their iTunes revenue.

Re:SwiftWebUI by Razengan on Monday July 01, 2019 @09:54AM (#20325238)
> app store revenue is a rounding error.

“Apple’s apps economy: Bigger than Hollywood”

https://fortune.com/2015/01/22/apples-apps-economy-bigger-th...

Re:SwiftWebUI by Eric_WVGG on Monday July 01, 2019 @11:30AM (#20326328)
Eh? Videogames have made more money than Hollywood for years, that's not news or impressive.

$14b (app store napkin estimate), out of $265b (2018), is ~5%.

Re:SwiftWebUI by dmitriid on Monday July 01, 2019 @02:46PM (#20328427)
In 2018 AppStore revenue was $46.6 billion [1]. Apple revenue for 2018 was $265.6 billion [2]

So, your "rounding error" is in reality 17.5% of Apple's entire revenue. It's "only" twice bigger than the entire Mac portion of Apple's business which is $25 billion [3]

[1] https://www.cultofmac.com/601492/app-store-google-play-reven...

[2] https://www.statista.com/statistics/265125/total-net-sales-o...

[3] https://notesmatic.com/2018/12/apple-revenue-from-mac/