Re:Stop making Linux distributions, make applications instead
by mnd999 on Sunday December 10, 2023 @06:30AM
(#38590837)
Applets are still a thing. We just call them webasm and canvas these days.
Re:Stop making Linux distributions, make applications instead
by samus on Sunday December 10, 2023 @10:56AM
(#38592379)
The crucial difference is that these technologies are embedded differently. Java Applets had access to dangerous APIs that had to be restricted by the SecurityManager. Also, the JVM was installed externally to the browser, turning it into an uncontrollable component which made the browser vulnerable in turn.
The newer technologies were designed from the beginning with a well-defined security boundary and are based on a language that was designed from the beginning to be embedded. Everything is implemented within the browser and can be updated together with it.
Re:Stop making Linux distributions, make applications instead
by mikrotikker on Sunday December 10, 2023 @06:47PM
(#38596187)
I'm living in the future. We have golang and rust now. Java is a pile of junk and should be relegated to the past.
Re:Stop making Linux distributions, make applications instead
by samus on Monday December 11, 2023 @01:51PM
(#38603766)
Golang's only consistent advantage over Java is lower latency on compilation, startup, and GC. OpenJDK will eventually level the playing field with Project Valhalla. In terms of FFI and language features Java has already caught up. And faster startup can be achieved with CRaC.
Rust in turn is not competing with Java.
Edit: admittedly, one of the reasons for that was that the sandbox was indeed prone to security holes. Also, the developer ergonomy of the SecurityManager was unsatisfying for both JDK and app developers. Good riddance.