3 ms·
Yup, you can do things that'll start getting close to the metal with Java(arrays to keep caches warm, avoid allocations). However at the end of the day it's a h
by vvanders 10y ago
Yup, you can do things that'll start getting close to the metal with Java(arrays to keep caches warm, avoid allocations). However at the end of the day it's a huge pain and you lose the portability you get with C++.
- bluedino 10y ago>> you lose the portability you get with C++ Wouldn't Java be more portable than C++?
- schwarrrtz 10y agoNot on mobile. You can embed compiled C++ code in both iOS and Android apps, but there's no easy way to run Java on iOS.
- jack463782 10y agoIs that the reason unity 3d is popular. Never thought c++ would be more portable than Java. But it makes sense now.
- murkle 10y agoMaybe not "easy" but certainly quite possible (x2): https://github.com/google/j2objc https://github.com/google/j2objc https://software.intel.com/en-us/multi-os-engine https://software.intel.com/en-us/multi-os-engine
- vvanders 10y agoNot if you don't have a JVM on your target platform.