News for hackers. Stuff that matters.
Re:Google’s not-so-secret new OS by josefx on Wednesday February 15, 2017 @12:59AM (#13650065)
I remember two issues with Java Applets:

* Java itself was slow for a long time

* The Browser would hang while loading an Applet

The first is no longer an issue. They can just use a modern just in time compiler and it wont run slower than Java on Android. Chrome already has one to deal with JavaScript powered Web 2.0 applications.

The second was as far as I can tell an API issue. Applets would block everything by default until they were loaded. A really bad idea in a single threaded environment when you had to send several MB over low bandwidth and the JVM itself took long to start. Just making the load async with a completion callback could have solved this issue and I remember a few Applets that actually used an async download to reduce the hang.

Re:Google’s not-so-secret new OS by username223 on Wednesday February 15, 2017 @01:23AM (#13650136)
You missed the biggest issue: "write once, mediocre everywhere." Windows, Mac, and X were all different, and Java Applets were necessarily bad at emulating all of them. While there are fewer Unices today, there are more GUIs, and cross-platform apps suck at least as much.
Re:Google’s not-so-secret new OS by MarkMc on Wednesday February 15, 2017 @01:38AM (#13650179)
"Write once, mediocre everywhere" was a problem with Sun's implementation, not with the concept of cross platform code. There are tons of webapps which are very successful, despite being written 'once'.

In any case, Google doesn't need to be as strict as Sun was. It is free to implement "write 90% of your code once and 10% customised for each platform".

Re:Google’s not-so-secret new OS by flukus on Wednesday February 15, 2017 @01:54AM (#13650239)
> There are tons of webapps which are very successful, despite being written 'once'.

Actually they suffer from most of the same problems, only computers have gotten faster (masking performance issues) and our expectations have lowered. How many of these web apps obey the native OS themeing for instance?

Re:Google’s not-so-secret new OS by mercer on Wednesday February 15, 2017 @02:44AM (#13650412)
1) The fact that webapps can run relatively well strikes me as hopeful, considering how much more inefficient using HTML/CSS/JS is compared to Java applets. Or is the latter not the case (honest question)? 2) I'm not sure if our expectations have lowered much. Perhaps it's more that mobile interfaces are generally simpler and thus easier to make 'native enough'?

Although I think there's more going on in regards to 2. I was never bothered so much by the UI of a java applet looking different. What bothered me was that even very fundamental stuff like input fields and scrolling felt both alien and shittier than native. And while it's certainly possible to make a web app just as shitty, if you rely on 'stock' html elements, a lot of the subtle native behavior carries over.

Just a few weeks ago, for example, I built a web-app for mobile devices. It felt off immediately because the scrolling didn't feel right. All I had to do was turn on the momentum scrolling (with a line of ios-specific css), and the scrolling suddenly felt native. Had I used a hypothetical Java applet equivalent, I might've had to either go for a non-native-feeling scroll or build it myself.

While I of course can't prove any of this, I think what people care about is that things feel native, not the 'skin' used to display it.

Re:Google’s not-so-secret new OS by TeMPOraL on Wednesday February 15, 2017 @05:08AM (#13650900)
> 2) I'm not sure if our expectations have lowered much. Perhaps it's more that mobile interfaces are generally simpler and thus easier to make 'native enough'?

I think people finally called the bluff that users have any expectations. And even if they had, what they don't have is choice. The current market is that everyone is building a walled garden around their selling proposition, so if a company decides to make a web app instead of a native one, then that's all you have. Nobody will make a better one and risk getting sued. If a service doesn't want third party applications, then they won't happen.

As you note in your comment, if one sticks with default, "stock" elements in their web app, things look and behave OK on a given platform. But nobody does that, for some reason everyone has to screw this up with tons of CSS and JavaScript that make the whole thing maybe prettier, but also noticeably slower and without all the native idiosyncrasies.

Re:Google’s not-so-secret new OS by flukus on Wednesday February 15, 2017 @05:56AM (#13651108)
> considering how much more inefficient using HTML/CSS/JS is compared to Java applets. Or is the latter not the case (honest question)?

It's a really interesting question actually because it's so hard to compare the two. On any objective measure, today's web apps are much better than applets in terms of responsiveness, etc. But then again, an applet could run on machines with 16MB of RAM total. I think you'd be hard pressed to get plain html page in a modern browser to run on a machine like that. Either way, in both cases we had a much better solution in native apps.

> 2. I was never bothered so much by the UI of a java applet looking different. What bothered me was that even very fundamental stuff like input fields and scrolling felt both alien and shittier than native.

Modern web apps can score better here, but quite often they don't. The more complex the become the less native they get, scrolling, text input, etc are generally OK (unless your an arshole that overrides scroll behaviour), but html still doesn't have an equivalent for native table views and the goodies (navigation, resizing, performance) that comes with them.

For me the skinning does matter though, I have a beautiful, consistent desktop that browsers (not even electron apps) shit all over. When something doesn't look quite right from the second you open it it magnifies all the other differences.

Re:Google’s not-so-secret new OS by mercer on Wednesday February 15, 2017 @06:16AM (#13651191)
> Modern web apps can score better here, but quite often they don't. The more complex the become the less native they get, scrolling, text input, etc are generally OK (unless your an arshole that overrides scroll behaviour), but html still doesn't have an equivalent for native table views and the goodies (navigation, resizing, performance) that comes with them.

Oh yeah, complex UI stuff is definitely a good reason to avoid web apps.

But for many, probably even most apps it's precisely scrolling, text input, and other 'basic' stuff that matters, and in those cases a web app's 'default' will be more native.

> For me the skinning does matter though, I have a beautiful, consistent desktop that browsers (not even electron apps) shit all over. When something doesn't look quite right from the second you open it it magnifies all the other differences.

I agree on a personal level, but I suspect we're outliers. Can't substantiate that at the moment though, so I might be wrong.

Re:Google’s not-so-secret new OS by TeMPOraL on Wednesday February 15, 2017 @04:59AM (#13650870)
> How many of these web apps obey the native OS themeing for instance?

Forget the theme - how many of these web apps obey the native OS GUI features? TAB-navigation, arrow navigation (in e.g. lists), accelerator shortcuts, editing shortcuts, not to mention a lot of visual idiosyncrasies that together make the interface feel "right"? Ironically, if you use default HTML controls, most of the things will be OK on a decent browser. But no, designers and developers absolutely have to make it worse by applying tons of CSS and JavaScript.

This applies to web apps pretending to be mobile apps, too. You can quickly tell one from another; the web app is the one with mediocre UI that behaves "wrong" in more or less subtle ways.

Re:Google’s not-so-secret new OS by PhasmaFelis on Wednesday February 15, 2017 @02:31AM (#13650367)
> Actually they suffer from most of the same problems, only computers have gotten faster (masking performance issues)

If an issue no longer affects anyone in any way, is it still an "issue"? Odds are that all the code you've ever written would have been considered criminally bloated at some era of computing history, but it hardly matters now.

Re:Google’s not-so-secret new OS by flukus on Wednesday February 15, 2017 @02:38AM (#13650394)
> If an issue no longer affects anyone in any way, is it still an "issue"?

I said it was masked, not gone. It still causes a lot of issues for people on resource constrained machines.

> Odds are that all the code you've ever written would have been considered criminally bloated at some era of computing history, but it hardly matters now.

For much of computing history where were making clear gains with newer hardware. Up to the 90's software was getting more bloated but it was doing more. Most apps today really aren't doing much/any more than we were doing in the 90's but require vastly more powerful machines.

Re:Google’s not-so-secret new OS by radicalbyte on Wednesday February 15, 2017 @02:46AM (#13650420)
The problem was that the UK of java apps was really ugly and blurry. They were painful to use.

Modern web apps are non standard but pretty.

Re:Google’s not-so-secret new OS by jonathanstrange on Wednesday February 15, 2017 @05:15AM (#13650929)
The problem is not technical and never was, it's that Apple and Microsoft would do anything to maintain an 'application barrier' that makes genuine cross-platform coding as hard and inconvenient as possible. It's all about developer lock-in and control over the customer, even more today than it used to be in the 90s.
Re:Google’s not-so-secret new OS by K0SM0S on Wednesday February 15, 2017 @03:52PM (#13655251)
How would you caracterize Microsoft's open-sourcing of the .NET stack, support to run it on Windows and RHEL (actually support to run RHEL on Azure), VS code universal electron app, the whole Office 365 paradigm, and multiple apps like Remote?

It seems to me that the 'new' Microsoft (since Satya Nadella took leadership) is changing their closed/proprietary stance on many topics. Not everything of course, they still have to sell stuff, but as far as "genuine cross-platform" is concerned, they are certainly giving developers all the tools to both make and target all major operating system.

Re:Google’s not-so-secret new OS by josefx on Thursday February 16, 2017 @10:56AM (#13660885)
> How would you caracterize Microsoft's open-sourcing of the .NET stack

Giving anyone not on Windows a second rate experience? Core as the name says provides only a subset of the Windows .Net framework and most .Net code in the wild is written with the implicit assumption that it runs on the Windows framework.

> VS code universal electron app

Instead of making their main IDE a proof of concept for .Net Core they wrote a Web3.50/NodeJS IDE. I am very sensitive to high latency IDEs so that is something I wont ever touch.

> the whole Office 365 paradigm

Trying to keep up with the competition, Google Docs ring a bell?

> since Satya Nadella took leadership

Nadella 2014. Linux on Azure 2012. Office 365 2011. Mono based on Microsoft’s promise not to sue 2004. Open sourcing parts of .Net is really the only thing you can assign to Nadella, everything else was still done by the good old triple E leadership.

Re:Google’s not-so-secret new OS by username223 on Wednesday February 15, 2017 @01:51AM (#13650228)
Webapps in the sense of "fancy JavaScript" are no better than Applets. Google has the infrastructure, money, and business model to put most of the code on their servers and write native clients. Modulo privacy issues, they have found a solution.
Re:Google’s not-so-secret new OS by piyush_soni on Wednesday February 15, 2017 @02:34AM (#13650379)
Oh I bet they are! Like, anything is better than those slow, buggy and annoying Java Applets and I'm so thankful to god they're over. Did anyone ever notice how slow they were not only to 'run', but to initiate and start doing just about anything. I always knew it was a java applet even before it started anything because of its characteristic loading behavior.
Re:Google’s not-so-secret new OS by TeMPOraL on Wednesday February 15, 2017 @05:23AM (#13650958)
Webapps today are the same. Their characteristic behaviour is rendering the skeleton of their UI, and then greeting you with a spinner. They take about as much to start up as Java Applets did.

Now, consider the orders of magnitude improvement in computing power over the years, and notice that webapps aren't really doing anything more complicated than old applets did...

Re:Google’s not-so-secret new OS by flukus on Wednesday February 15, 2017 @06:16AM (#13651194)
Now remember that they ran on machines with 16MB of RAM. Could this page even render on a machine like that?
Re:Google’s not-so-secret new OS by piyush_soni on Wednesday February 15, 2017 @07:39AM (#13651569)
Not sure on that. When I was in my University we used these Java Applets. I had 4 GB of RAM at that time in my laptop, and they were still very bad.
Re:Google’s not-so-secret new OS by pjmlp on Wednesday February 15, 2017 @04:26AM (#13650761)
I feel the same way when a browser Window freezes, full of JavaScript assets bigger than Doom.
Re:Google’s not-so-secret new OS by alexvoda on Wednesday February 15, 2017 @04:26AM (#13650759)
There is one BIG difference. The Android frameworks are already the default on a major platform. Googles Material Design already looks native on both Android (majority phone platform) and ChromeOS. Java did not have a major platform where it was the default framework. It was not the default on Windows or Mac, not even on Unices (with the exception maybe of SunOS or Solaris, but not even there). If Java framework was not the default anywhere, then the primary reason to use Java was because it works everywhere. The primary reason to use the Android frameworks and Material Design is to publish on Android. Having it work everywhere else is a great bonus.

Android and Material Design will not be "write once, mediocre everywhere". It may become "write once, great on Android (majority of phones) and ChromeOS, mediocre elsewhere." But writing for Android does not exclude creating native versions for other platforms. Using Java did exclude creating native versions because that was the reason to use Java, to not have to write native versions.

Re:Google’s not-so-secret new OS by 72deluxe on Wednesday February 15, 2017 @05:11AM (#13650913)
I thought it was "write once, test everywhere" because the ideal of cross-platform software forgot about developers doing system-specific things (eg. file system paths)
Re:Google’s not-so-secret new OS by josefx on Wednesday February 15, 2017 @03:00AM (#13650468)
I never understood the need to "emulate" all of them. Linux has always been a mess of tools written against different UI styles ( GNOME, KDE, MOTIF, ... ), Microsoft also reinvents its UI with every release leading to outdated application UIs and I don't know how consistent Apple was. I think the best you can do is choose one and stick with it, its not like most websites look and feel native.
Re:Google’s not-so-secret new OS by scott_karana on Wednesday February 15, 2017 @01:31AM (#13650163)
You missed the biggest difference: Chrome is the same everywhere.
Re:Google’s not-so-secret new OS by username223 on Wednesday February 15, 2017 @01:45AM (#13650203)
So were Java Applets with AWT. Users hated that, so Sun tried PLAF, a half-assed emulation of each platform. That didn't work either, so Applets died.

If Chrome manages to provide better versions of most applications on most platforms, it may win. Otherwise, people who use those applications will hate it with the heat of a thousand Suns, and it will go the way of the Java Applet.

Re:Google’s not-so-secret new OS by josefx on Wednesday February 15, 2017 @03:04AM (#13650483)
> So were Java Applets with AWT. Users hated that, so Sun tried PLAF

Uh, Java AWT was the native toolkit. Swing was the non native UI with the ugly METAL default Look and Feel. There are some nice custom Look and Feel implementations that don't try to emulate a platform, I think Matlab uses one for its UI.

Re:Google’s not-so-secret new OS by dfox on Wednesday February 15, 2017 @01:06PM (#13653979)
And the Metal plaf was the least ugly of the three that were originally shipped with JVM (other two tried to match how AWT would look on Windows and Unix). But IIRC, AWT was not native (in the sense of "calls native OS GUI components") but only tried to look native and failed horribly at achieving that.

One thing that strikes me as weird is that almost any widget set that does it's own drawing or even just it's own automatic layout and tries to match look and feel of native UI invariably does not match even the basic look because various UI components use wrong size, are placed slightly differently and so on. For example everything I've ever seen that tried to match how windows 3.1 Ctrl3D looked draws window decorations one pixel narrower than the original, which is plainly visible and ugly, similarly things that attempt "looking like Motif" usually use different thickness for various lines and borders and also often mix-up meaning of focus rectangle (which should move by tab) and bevel around default button (which should stay in the same place irrespective of which control has focus). I see no technical reason why either of these things cannot be done right, is there some legal reason for introducing such small differences, that are small, but big enough to be annoying?

Re:Google’s not-so-secret new OS by josefx on Wednesday February 15, 2017 @06:46PM (#13656632)
> But IIRC, AWT was not native (in the sense of "calls native OS GUI components") but only tried to look native and failed horribly at achieving that.

A quick check of wikipedia backs my memory, the Java classes were just a thin wrapper around the native components. AWT was mostly bad because it was limited, it does not even have a Table.

> even the basic look because various UI components use wrong size, are placed slightly differently and so on.

The windows API does not come with a layout manager AFAIK. I vagualy remember setting every bit of relevant size/position data by hand last time I used it directly. Same could be done with AWT, so this is mostly likely caused by programmer lazyness.

Re:Google’s not-so-secret new OS by dfox on Thursday February 16, 2017 @12:32PM (#13661819)
The part about sizing being wrong was not that much about AWT (although IIRC it also has this problem, at least on Unix, where it looks decidedly non-motif) as about just about any non-native toolkit that tries to look native. Windows does not have layout manager, but has API for getting preferred sizes for various low-level UI parts (in Windows 3.1 small part of of this was even user configurable).
Re:Google’s not-so-secret new OS by 72deluxe on Wednesday February 15, 2017 @05:13AM (#13650921)
Oddly you see non-native toolkits these days for many apps, and users don't seem as bothered anymore, unless I am mistaken?

For example, look at Windows 10 and the mishmash of controls (are they flat? or do they have a bevel?) available from the control panel, settings app, old COM dialogs, MMC etc. etc.

Re:Google’s not-so-secret new OS by TeMPOraL on Wednesday February 15, 2017 @05:24AM (#13650964)
> and users don't seem as bothered anymore

What choice do we have? Everyone's doing their own walled garden, so it's not like I can go and find an alternative SaaS / operating system with same features but better UI...

Re:Google’s not-so-secret new OS by flukus on Wednesday February 15, 2017 @06:20AM (#13651205)
Linux has two options that offer a lot more consistency than you'll find on windows.
Re:Google’s not-so-secret new OS by flukus on Wednesday February 15, 2017 @06:19AM (#13651200)
> For example, look at Windows 10 and the mishmash of controls (are they flat? or do they have a bevel?) available from the control panel, settings app, old COM dialogs, MMC etc. etc.

One of the last straws for me was the built in mail app that had this awful background image. Too many flashbacks of shitty access apps.

Re:Google’s not-so-secret new OS by xorcist on Wednesday February 15, 2017 @04:15AM (#13650726)
Users will say the software looks "different" but what they really mean is "ugly". The UX differences is not always a problem. See: Winamp.
Re:Google’s not-so-secret new OS by SixSigma on Wednesday February 15, 2017 @08:36AM (#13651857)
> I remember two issues with Java Applets

I remember issue no.3 :

United States Court of Appeals,Ninth Circuit.

SUN MICROSYSTEMS, INC., a Delaware Corporation, Plaintiff-Appellee, v. MICROSOFT CORPORATION, a Washington corporation, Defendant-Appellant.

No. 99-15046.

Decided: August 23, 1999

http://caselaw.findlaw.com/us-9th-circuit/1260682.html

Re:Google’s not-so-secret new OS by Yuioup on Wednesday February 15, 2017 @03:19AM (#13650520)
Don't forget about the security issues that left machines with unpatched Java versions vulnarable to attacks.
Re:Google’s not-so-secret new OS by idlewords on Wednesday February 15, 2017 @01:29AM (#13650154)
They were also completely insecure.
Re:Google’s not-so-secret new OS by josefx on Wednesday February 15, 2017 @03:12AM (#13650504)
So were Flash and JavaScript and I still don't fully trust either. It helps that blacklisting almost everything with NoScript actually speeds up 90% of the sites I visit.
Re:Google’s not-so-secret new OS by babayega2 on Wednesday February 15, 2017 @02:16AM (#13650294)
Chrome is already hanging and crushing on Ubuntu 14.04. I imagine adding applications will be worse.