News for hackers. Stuff that matters.
Re:Is WebAssembly the Return of Java Applets and Flash? by izacus on Thursday July 26, 2018 @10:31AM (#17617780)
Which, ironically, is the case with modern Electron apps and bloated JavaScript UI frameworks as well.
Re:Is WebAssembly the Return of Java Applets and Flash? by balfirevic on Thursday July 26, 2018 @10:39AM (#17617835)
I'm a user of several Electron apps and they are very nice for me too.
Re:Is WebAssembly the Return of Java Applets and Flash? by weiming on Thursday July 26, 2018 @11:00AM (#17617976)
Electron (or embedded Chromium, etc.) is lazy development: save time on cross-platform work at the expense of your users' CPU overhead/battery time/SSD life.

Spend time watching some of each year's WWDC talks and noting how much effort Apple engineers give to fine-tune certain APIs to enable app developers to optimize battery use, disk access, or graphics rendering. State-of the art stuff. And then your Electron app just ignores all of that.

Re:Is WebAssembly the Return of Java Applets and Flash? by taco_emoji on Thursday July 26, 2018 @02:45PM (#17619830)
I think calling it "lazy" is uncharitable, unless you're also going to chastise developers who target only one platform -- they're likewise not doing the cross-platform work.

Manually targeting multiple platforms is really hard. How could one person possibly keep track of all the battery-saving API changes in OSX, iOS, Windows, Linux, and Android?

Yeah, it's annoying that Electron apps are so bloated. But the alternative would be > 50% of people can't use those apps at all because you only targeted one platform.

Re:Is WebAssembly the Return of Java Applets and Flash? by yellowapple on Thursday July 26, 2018 @08:56PM (#17622661)
"unless you're also going to chastise developers who target only one platform"

Which I tend to do, particularly since that "one platform" is almost always either Windows or macOS, neither of which I use on a daily basis (and neither of which I have any desire to use on a daily basis).

Meanwhile, there's such a thing as cross-platform GUI applications that don't try to fit an entire web browser into them. Especially if your programming language of choice doesn't require precompilation, frameworks/toolkits like Qt and GTK and Tk are perfectly viable for cross-platform development, at least on the desktop (which is usually where folks are using the likes of Electron or CEF anyway). They also tend to perform significantly better and stay much closer to the look-and-feel of the rest of the operating system (no, I don't care if you think you know better than me about my sense of style; if your app doesn't respect the look-and-feel of the rest of my system, then it sticks out like mold on a slice of Wonder Bread).

Re:Is WebAssembly the Return of Java Applets and Flash? by Qwertie on Sunday July 29, 2018 @09:44AM (#17638085)
Do you know of any of those cross plaform GUI tools that work in the web browser? Targeting Windows/Mac/Linux is easy but outside of JS I have seen no way that you can write one application that works on Web, Windows/Mac/Linux, Android and iOS
Re:Is WebAssembly the Return of Java Applets and Flash? by yellowapple on Wednesday August 01, 2018 @10:31AM (#17662786)
I know Qt supports both Android and iOS (and a bunch of other mobile platforms, apparently, like Tizen and Blackberry).

I don't think any of them target HTML/JS, though.

Re:Is WebAssembly the Return of Java Applets and Flash? by Phrodo_00 on Thursday July 26, 2018 @04:37PM (#17620807)
Because it's not like there aren't any other options for multiplatform development...
Re:Is WebAssembly the Return of Java Applets and Flash? by saagarjha on Thursday July 26, 2018 @04:02PM (#17620465)
> How could one person possibly keep track of all the battery-saving API changes in OSX, iOS, Windows, Linux, and Android?

You don't. You just use system-provided APIs and get the improvements for free whenever the system frameworks are updated to be more efficient.

Re:Is WebAssembly the Return of Java Applets and Flash? by m90 on Thursday July 26, 2018 @11:39AM (#17618305)
And then your Mac App ignores all of the people not on Mac.

I'm not saying everything should be Electron, but it certainly has usecases just like native does.

Re:Is WebAssembly the Return of Java Applets and Flash? by weiming on Thursday July 26, 2018 @11:48AM (#17618386)
Doesn't have to be a Mac only app. But be considerate to your users and use the best available SDKs for each platform, not one size fits all.
Re:Is WebAssembly the Return of Java Applets and Flash? by always_good on Thursday July 26, 2018 @12:03PM (#17618499)
If resources were infinite and there were never any trade-offs, most people would agree with you.

But what's your game plan under other circumstances? Do nothing?

Re:Is WebAssembly the Return of Java Applets and Flash? by weiming on Thursday July 26, 2018 @12:18PM (#17618620)
If you're a small-time indie dev, do what works so that you can ship. If you're a well-funded co. like Spotify, GitHub, or Slack, however...
Re:Is WebAssembly the Return of Java Applets and Flash? by always_good on Thursday July 26, 2018 @04:13PM (#17620548)
You're making the mistake of thinking that everything is just a technical challenge that you can throw money at, and that technical superiority is the only trade-off.

Just because an enterprise has funding doesn't mean it's wealthy in other, more scarce things like organizational capital. In fact, I wouldn't be surprised if all the client developers at Slack would love to split off into dedicated platform teams and do a rewrite. We as developers love that shit.

But you should try to understand why these enterprises make these trade-offs and why they are still in these positions in spite of how much disposable money you think they have.

Re:Is WebAssembly the Return of Java Applets and Flash? by anoncoward111 on Thursday July 26, 2018 @11:00AM (#17617983)
Sorry but I shouldn't have to use 2GB of RAM to browse the web. Compare Airbnb to Craigslist. One is visually pretty, the other isn't. One uses every framework under the sun, the other is HTML.
Re:Is WebAssembly the Return of Java Applets and Flash? by derefr on Thursday July 26, 2018 @11:04AM (#17618013)
“Nice for you” and “nice for your computer” are being treated as separate things here, I think. Assuming a supercomputer (like the kinds most Electron app devs must surely have), Electron [native] apps have a good user experience.

Electron wrappers for originally web apps, on the other hand, are usually horrible user experiences—often they don’t even support right-clicking elements, or clicking on links to open them in a browser.

Re:Is WebAssembly the Return of Java Applets and Flash? by saagarjha on Thursday July 26, 2018 @04:04PM (#17620474)
> Electron [native] apps have a good user experience.

No, they don't. Ever tried to drag and drop into an Electron app? How about used VoiceOver?

Re:Is WebAssembly the Return of Java Applets and Flash? by taeric on Thursday July 26, 2018 @11:01AM (#17617995)
Relatedly, I played quite a few flash games, and they were nice for me.
Re:Is WebAssembly the Return of Java Applets and Flash? by brodsky on Thursday July 26, 2018 @11:04AM (#17618014)
This is a very broad statement. Would you care to elaborate?
Re:Is WebAssembly the Return of Java Applets and Flash? by chillydawg on Thursday July 26, 2018 @11:35AM (#17618277)
"slack"
Re:Is WebAssembly the Return of Java Applets and Flash? by TremendousJudge on Thursday July 26, 2018 @01:02PM (#17618966)
"spotify desktop"
Re:Is WebAssembly the Return of Java Applets and Flash? by airstrike on Thursday July 26, 2018 @02:59PM (#17619966)
Wasn't Spotify originally written in C++?
Re:Is WebAssembly the Return of Java Applets and Flash? by coldacid on Thursday July 26, 2018 @04:38PM (#17620819)
Even if it was, it isn't now.
Re:Is WebAssembly the Return of Java Applets and Flash? by yellowapple on Thursday July 26, 2018 @09:00PM (#17622680)
It probably still is, since Chromium Embedded Framework (which is what Spotify uses, last I checked) is used via a C/C++ API.