4 ms·
In the hierarchy of performance, Java is what comes just after native C++, it may even be faster than Rust because while Rust is potentially faster, Java has de
by GuB-42 5y ago
In the hierarchy of performance, Java is what comes just after native C++, it may even be faster than Rust because while Rust is potentially faster, Java has decades of refinement. And remember that Java appeared in 1995, it had to be usable on machines of that time.
Electron is at the bottom end for many reasons; it uses JS, a dynamic language that will have a hard time beating static/native code despite all the work poured into it. It has a ridiculously large runtime (a full browser), and every app, no matter how small, has a copy of it.
And remember that Java was used in some way in early phone apps, including the first Android devices, at that time phones were seriously underpowered compared to the quasi-desktop performance we not have.
- laumars 5y agoJava was used long before Android. It was in feature phones, like from manufacturers like Sony Ericsson (and developers would write games and mapping software in it too).
- tcoff91 5y agoSIM cards actually run a stripped down Java on them.
- laumars 5y agoSo do Blueray players, Java is everywhere.
- pdkl95 5y agoA friend of mine had one of these (1998-99): https://electronics.howstuffworks.com/gadgets/home/digital-jewelry3.htm https://electronics.howstuffworks.com/gadgets/home/digital-j... > The Java Ring is a stainless-steel ring, 16-millimeters (0.6 inches) in diameter, that houses a 1-million-transistor processor, called an iButton. The ring has 134 KB of RAM, 32 KB of ROM, a real-time clock and a Java virtual machine A wearable device that could run arbitrary portable code was a cool idea.
- KronisLV 5y agoI still remember playing some of those games on my phone with the Symbian OS: https://en.wikipedia.org/wiki/Symbian https://en.wikipedia.org/wiki/Symbian Honestly, it was nice while it lasted and it was interesting to see developers do a lot with so little screen real estate, memory and other hardware limitations, like an evolution of the consoles of the older days, before phones became essentially scaled down fully featured computers. It is especially interesting because most modern JDK releases are known to be pretty memory hungry, in contrast to what the developers had to pull off back then. If Java had a stronger focus on embedded and low resource environments, who knows, maybe it'd be as usable as MicroPython nowadays. It appears that there are actually a few apps available that can supposedly load these games, though i haven't personally checked them out: https://play.google.com/store/apps/details?id=ru.playsoftware.j2meloader https://play.google.com/store/apps/details?id=ru.playsoftwar... That said, i do have fond memories of Doom RPG back in the day, as well as the likes of Galaxy on Fire, as well as the old classic Gravity Defied. What a nice decade that was!