News for hackers. Stuff that matters.
Re:Is WebAssembly the Return of Java Applets and Flash? by gameswithgo on Thursday July 26, 2018 @10:06AM (#17617614)
flash used to make websites was garbage, but used to make games that run in the browser it was very nice.
Re:Is WebAssembly the Return of Java Applets and Flash? by the_af on Thursday July 26, 2018 @12:34PM (#17618738)
Exactly this. Flash for websites was trash.

But Flash games were a boon. Everyone with an idea was able to make it into a game. I spent a lot of time playing games in Kongregate and similar sites. Many were really interesting, well worth the effort of sifting through the rip-offs and trash.

Re:Is WebAssembly the Return of Java Applets and Flash? by pmarreck on Thursday July 26, 2018 @03:30PM (#17620239)
I used to love Flash games, and I was also watching the projects that tried to get .swf files to run in a Flash virtual machine emulated via something like Emscripten, but I feel like all those projects have died out :/
Re:Is WebAssembly the Return of Java Applets and Flash? by acqq on Thursday July 26, 2018 @04:20PM (#17620627)
And Flash for animation: e.g. this was produced and published in Flash and was surely smaller to download than the youtube video of it:

https://www.youtube.com/watch?v=LeKX2bNP7QM

The internet speeds were much slower then, the difference mattered a lot. Also note, from the description:

"Sadly, it's not possible to replicate the pop-up mouse-overs from the "Special Edition" - though I was able to append the "deleted scene" presented in that version. If you want to see that version - or the "Fire BAD!" flash video game where you attempt to extinguish flames on James Hetfield (tragedy + time = humor), you'll have to find the original .SWF files and have a way to play them."

Re:Is WebAssembly the Return of Java Applets and Flash? by Keyframe on Thursday July 26, 2018 @02:54PM (#17619907)
In that regard, looks like Unity is the new Flash.
Re:Is WebAssembly the Return of Java Applets and Flash? by greggman on Thursday July 26, 2018 @09:32PM (#17622810)
It is and it isn't. Unity is great but it's got like a min 5MB download for just a spinning cube. Flash (because the plugin was built in) started instantly and had built in support for streaming. Unity can stream, after the 5MB engine download, but for whatever reason it's not common.
Re:Is WebAssembly the Return of Java Applets and Flash? by Keyframe on Thursday July 26, 2018 @11:27PM (#17623239)
I meant more as in people with no technical knowledge whatsoever creating interactive stuff. Just look at the cambrian explosion of indie games from (most) people who probably can't do long division by hand.
Re:Is WebAssembly the Return of Java Applets and Flash? by the_af on Thursday July 26, 2018 @03:01PM (#17619983)
Very likely! But some years ago, back when I still played Flash browser games, Unity games didn't work in a browser for Linux, the only platform I use. Maybe that situation has changed? :)
Re:Is WebAssembly the Return of Java Applets and Flash? by coldacid on Thursday July 26, 2018 @04:36PM (#17620791)
What with a WebGL target for Unity these days, it has. The Unity plugin was deprecated versions ago and they don't even ship a target for it anymore.
Re:Is WebAssembly the Return of Java Applets and Flash? by neospice on Thursday July 26, 2018 @10:13AM (#17617672)
It seems the trend was that it was nice for makers, not so much for users.
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.
Re:Is WebAssembly the Return of Java Applets and Flash? by monocasa on Thursday July 26, 2018 @11:46AM (#17618365)
For some cases, nice for the makers is nice for the users.

I don't think more than a handful of the games and little videos that I enjoyed as a kid on newgrounds and addicting games would have been made had they not had such a low barrier to creation.

I do kernel/firmware development now, so I'll be the first to admit that this value proposition isn't valid for all domains. But sometimes, for some use cases, just having a simple to use scripting environment is totally the way to go. Particularly if it's sandboxed well and can't really harm the end user.

Re:Is WebAssembly the Return of Java Applets and Flash? by shawn on Thursday July 26, 2018 @11:04AM (#17618018)
Legions of bored teenagers would fight you over that. :) At one time there was no force so powerful as a bunch of friends sharing albinoblacksheep games/videos. Users loved it.
Re:Is WebAssembly the Return of Java Applets and Flash? by smofnoopttzzaaa on Thursday July 26, 2018 @12:51PM (#17618890)
A pretty amazing collection of games was at friv.com
Re:Is WebAssembly the Return of Java Applets and Flash? by nojvek on Thursday July 26, 2018 @02:15PM (#17619568)
I only got into CS because of Flash. First I spent a ridiculous amount of hours on games, then I learnt to reverse engineer and tweak them, and then a ridiculous amount of hours creating and debugging games/apps with Flash.

Flash for the win! Till the day I die.

AS3 was amazing. When Typescript came out, it was a lot like AS3. I was convinced and became a believer in TS and never looked back.

Re:Is WebAssembly the Return of Java Applets and Flash? by pmarreck on Thursday July 26, 2018 @04:03PM (#17620468)
holy crap, i've never seen this before. it's still up
Re:Is WebAssembly the Return of Java Applets and Flash? by catach on Thursday July 26, 2018 @10:48AM (#17617901)
It was also quite nice for users, assuming the intentions of the makers were good. Ads and security exploits were the truly nasty bits.
Re:Is WebAssembly the Return of Java Applets and Flash? by aaroninsf on Thursday July 26, 2018 @02:14PM (#17619554)
Not just games; anything other than hypertexts and forms.

In those days there was no notion of SPA or other contemporary well-established patterns for online interaction.

I authored several commercial sites using Shockwave and the like and it enabled us to give clients the ability to author media-rich and design-heavy presentations in a fashion they were familiar with from card decks applications. At the time doing so in a 'sexy' way made them stand out.

It was a cul de sac, but it was a worthwhile direction to test in terms of UX.

That it was proprietary was weighted differently in those days. The world was dominated by closed standards and open source was still vestigial especially in commercial applications.

Re:Is WebAssembly the Return of Java Applets and Flash? by pmontra on Thursday July 26, 2018 @02:18PM (#17619601)
How did you reflow the UI when users resized their browser?
Re:Is WebAssembly the Return of Java Applets and Flash? by jackcviers3 on Thursday July 26, 2018 @10:17PM (#17622994)
You could communicate between flash and the browser:

https://help.adobe.com/en_US/FlashPlatform/reference/actions...