7 ms·
The world "primarily" is important here. Sure, you _can_ use Java for embedded and even real-time stuff. Some games are written in Java, etc. But no one would s
by jlnho 3y ago
The world "primarily" is important here. Sure, you _can_ use Java for embedded and even real-time stuff. Some games are written in Java, etc. But no one would say that Java is the primary language of choice in such domains.
- belter 3y agoAgree. Will leave the comment up for my eternal shame.
- bad_user 3y agoJava has been used for soft real-time systems, such as payment processors or real-time bidding. For a GC-ed language, its latency guarantees can be pretty OK due to having good garbage collectors and runtime optimizations. But, yes, obviously it can't be used for systems where latency is a matter of life and death, like operating the breaks on a car.
- _old_dude_ 3y agoOr a nuclear power plant https://www.quora.com/The-license-agreement-of-Java-says-You-can%E2%80%99t-use-Java-to-run-a-nuclear-power-plant-Why-do-you-think-SUN-cared-to-incorporate-this-point https://www.quora.com/The-license-agreement-of-Java-says-You...
- kaba0 3y agoThere actually are special, hard real-time JVMs that are used in missile defense systems. Do note that hard real time is not about performance (and as computers are so fast, you really don’t need much time for millions of calculations), but the guarantee of executing it in X time. But it does require very special engineering.