News for hackers. Stuff that matters.
Re:TeaVM – Ahead-of-time transpiler of Java bytecode to Java... by C14L on Friday January 05, 2018 @03:30AM (#16077357)
The browser would cache that automatically. And in many cases, you'd probably use a Service Worker to implement your own custom cache and "install" the application locally in the browser, so that is usable offline and only version updates are downloaded in the background.
Re:TeaVM – Ahead-of-time transpiler of Java bytecode to Java... by oblio on Friday January 05, 2018 @03:50AM (#16077426)
Weren't applets also cached?

To be honest, I think that hate of applets comes from a time when 56kbps download speeds were considered very high, the average CPU had 1 core at 200 Mhz and the average webpage weighed 20k and executed 5-10 lines of Javascript.

I haven't used applets in the time, but if the user experience would be improved (nice looking UI, respecting modern UX conventions, etc.), I imagine your average applet from circa 1999 would run circles around Gmail, for example :)

Re:TeaVM – Ahead-of-time transpiler of Java bytecode to Java... by mping on Friday January 05, 2018 @04:48AM (#16077617)
Not only that, swing applets are notoriously fugly. One reason electron is successful is because it kinda looks like native. Swing Look and Feels all seem alien.
Re:TeaVM – Ahead-of-time transpiler of Java bytecode to Java... by oblio on Friday January 05, 2018 @04:58AM (#16077668)
Swing can be styled, it's that not a lot of people really bothered. Jetbrains products use Swing and they're decent.

Not amazing, but decent.