8 ms·
>Today, the JVM runs on an estimated 89% of computers, 3 billion mobile phones, and 125 million TV devices. I'm not even sure the above is technically correct.
by coldtea 11y ago
>Today, the JVM runs on an estimated 89% of computers, 3 billion mobile phones, and 125 million TV devices.
I'm not even sure the above is technically correct. But even if it is:
1) it runs on most of those "89% of computers" as Java Applets, a technology noone cares about, not as a readily deployed Java runtime for the desktop.
2) Those 3 billion mobile phones either are Android, in which case they don't exactly run Java, or are insignificant featurephones with mobile Java that again nobody cares about.
3) Nobody cares about those "125 million TV devices" as platforms either.
- akandiah 11y ago> 2) Those 3 billion mobile phones either are Android, in which case they don't exactly run Java, or are insignificant featurephones with mobile Java that again nobody cares about. No. Java is more pervasive than you think. It's widely used in SIM cards: http://en.wikipedia.org/wiki/Java_Card http://en.wikipedia.org/wiki/Java_Card You can't get away from it.
- coldtea 11y agoStill, SIM cards are not a platform anyone cares about either. It's not like it matters what runs in SIM cards with regards to Java's viability. (Not to mention they'll probably get the boot soon, as they're an obsolete technology)
- Cyph0n 11y agoNot in Africa and other developing countries.
- coldtea 11y agoActually tons of people in Africa have Android phones by now...
- Macha 11y agoAndroid phones use SIM cards in most of the world. CDMA/locking the device to an account is basically a US only thing.
- x0054 11y agoBut who cares about sim cards? If SIM cards were to run on Fortran (for some strange reason), would you argue that Fortran is the wave of the future.
- coldtea 11y agoExactly that.
- coldtea 11y agoI didn't say Android phones don't use SIM cards. I'm a European, I have an Android and an iPhone with SIM cards both. I replied to the statement that "in Africa they don't use Android phones", not that in Africa they don't use SIM cards.
- Cyph0n 11y agoOf course they have Android phones. My point is that SIM-based applications for payments especially are still quite widespread in Africa.
- GFK_of_xmaspast 11y agoSince when are SIM cards going obsolete?
- coldtea 11y agoIt's been an ongoing research to get a new standard going: >"The GSM Association, an organization of wireless telephone operators including AT&T Inc., plans to replace the removable SIM card connecting handsets to networks with a system integrated in the devices." http://www.bloomberg.com/news/articles/2010-11-18/gsma-explores-software-based-replacement-for-mobile-sim-cards http://www.bloomberg.com/news/articles/2010-11-18/gsma-explo... Apple then made a first move adding a "programmable SIM card" -- which is a first step towards software-only SIM: >"Some of Apple’s latest iPads have a new type of SIM card that lets users switch easily between operators without replacing the card. This could seriously weaken the operators’ grip on their market, especially if Apple were to follow up by putting the new SIMs in iPhones or replacing them with software" http://www.economist.com/news/business/21633870-moves-reinvent-or-even-abolish-sim-card-could-have-big-consequences-endangered-sim http://www.economist.com/news/business/21633870-moves-reinve... >"As others have pointed out, as of right now the Apple SIM isn’t a huge threat to the existing smartphone sales model – contract subsidies are too attractive to customers. But ultimately, Apple is almost certainly hoping to replace the physical Apple SIM with a software solution built directly into devices; in fact, it was working on such a plan back in 2010, before that was axed by opposition from a coalition of European carriers in particular." http://techcrunch.com/2014/10/16/apple-sim-details-and-potential/ http://techcrunch.com/2014/10/16/apple-sim-details-and-poten...
- tptacek 11y agoThis is an argument that applies equally well to Linux; after all, my auto mechanic could give a shit what OS runs on his phone or set-top box.
- coldtea 11y agoIf Linux was only used inside phones or set-top boxes as embedded software, yes, it would be as insignificant as QNX. There would be some embedded software programmers employed, to write the set-top box or the phone OS, and that's it. The same way that before phones had "app platforms" nobody cared what OS an Ericsson, or a Nokia or a Motorola phone run, and the number of people who worked on them was insignificant (basically employees of said companies). What makes Linux important for millions of people is that it's used in servers, corporate and home desktops, phones, consoles, etc, that have active application platforms, it gives jobs to sys-admins, web apps, pages and services are written in it, etc. It's not just that an "auto mechanic" doesn't care what OS runs on his set-top box, it's that unless that OS also provides a platform that lots of people work on nobody else does either (except of the "coders of propriterary embedded-ware" that wrote it and those competing for jobs with them in a quite small market). A commenter lower down says it more succintly: ">who cares about sim cards? If SIM cards were to run on Fortran (for some strange reason), would you argue that Fortran is the wave of the future?.
- frik 11y agoIt's called Java Card and is used in smart cards (pocket-sized card with embedded integrated circuits) in Europe, Africa, etc.: http://en.wikipedia.org/wiki/Java_Card http://en.wikipedia.org/wiki/Java_Card and http://en.wikipedia.org/wiki/Smart_card http://en.wikipedia.org/wiki/Smart_card "Java Card bytecode run by the Java Card Virtual Machine is a functional subset of Java 2 bytecode run by a standard Java Virtual Machine but with a different encoding to optimize for size" It's a proprietary binary blob like the GSM-modem in your smartphone or the HTML5-DRM-module in your web browser. It probably falls under the category security by obscurity.
- twp 11y agoThe JVM has had billions of dollars of engineering effort poured into it. At the same time, it is still out-performed by low-budget small-team efforts (e.g. LuaJIT, Inferno). The article disassociates itself from Java the language. Java was a better C++ in 1994. It has long since been eclipsed by both improved old languages that have evolved (e.g. C++11/C++14) and new languages (e.g. Go and Rust) that are unencumbered by the JVM. This is despite recent incremental efforts to renew Java the language. Instead, the article tries to claim some success for Java by switching focus to the JVM. The JVM is still slow and - by its design (a clunky stack-based architecture) - simple to implement but very hard to run fast. Java will still be around for a long time to come. It's the COBOL of our generation: it's better than what it replaced, but far away from what we are capable of.
- coldtea 11y ago>The JVM is still slow What are you talking about? It's the fastest widely deployed VM out there...
- twp 11y agoIf you want to talk about "widely deployed VMs" then Dalvik is faster. If you want to talk about VMs in general then there are many that are faster, e.g. LuaJIT.
- coldtea 11y agoActually no, Dalvik is slower than the JVM and with worse GC. And LuaJIT faster than the JVM? Where you got that? You wont fine many benchmarks or people agreeing with you. LuaJIT is faster (much) than most scripting languages, but not faster than Java. Are you comparing startup time?
- danieldk 11y agoDalvik is ~3x slower than JVM for compiled (JITed) code (on an ARM Cortex A8): https://dl.acm.org/citation.cfm?id=2388956 https://dl.acm.org/citation.cfm?id=2388956
- 11y ago
- tim333 11y ago>Java Applets, a technology noone cares about I care about them as a security hazard. See "Java Primary Cause of 91 Percent of Attacks: Cisco" (2013) and similar. http://www.eweek.com/security/java-primary-cause-of-91-percent-of-attacks-cisco.html http://www.eweek.com/security/java-primary-cause-of-91-perce...
- devsquid 11y agolol, don't run java in your browser man. Just don't. boom bam no Java security flaws
- tsotha 11y agoYou don't always have that choice. There was a European country (I forget which one. Norway?) that was using applets for access to government services.
- kuschku 11y agoGermany was it – until 2011 the only way to file taxes digitally was through a Java Applet called ELSTER. Now there is a beta version of a JS based solution.
- giancarlostoro 11y agoYou can run Java selectively then, disable when not knowingly using it. Would provide a higher magnitude of security than just having it running while a rogue 0 day exploit hits advertisement servers or something similar.
- kjetil 11y agoNot to detract from your point, but the applet part of Norwegian BankID is now mostly replaced by the new Javascript-based solution.
- nevster 11y agoThey were in a bad place but in the last two years they've spent considerable time stomping security bugs - Java was the only one left standing at the pwn2own comp last year https://nakedsecurity.sophos.com/2014/03/13/pwn2own-day-one-reader-ie-flash-and-firefox-felled-java-left-standing/ https://nakedsecurity.sophos.com/2014/03/13/pwn2own-day-one-...
- noblethrasher 11y ago> 2) Those 3 billion mobile phones either are Android, in which case they don't exactly run Java, or are insignificant featurephones with mobile Java that again nobody cares about. It may or may not be as relevant as before, but one of the smartest things that WhatsApp did was to care about mobile Java.
- fuddle 11y ago"don't exactly run Java" - Dude, most Android app's are built using Java.
- tapirl 11y agobut not run Java
- Zigurd 11y ago> Those 3 billion mobile phones either are Android, in which case they don't exactly run Java That's true, but it's also academic. Android's runtimes, Dalvik and ART, have very similar semantics to runtimes that use Java bytecode. In the Android toolchain, Java source code gets compiled to Java bytecodes. This enables Java tooling to work with the Android toolchain. Then the Java bytecode is converted to Dalvik bytecode. So, on the one hand you can say "There is no Java in Android devices." But very few Android APKs are created without Java in the code base.