06-Dec-2014 18:33, H. S. Teoh via Digitalmars-d пишет:
On Sat, Dec 06, 2014 at 03:26:08PM +0000, Russel Winder via Digitalmars-d wrote:
[...]
primitive are passed by value; arrays and user defined types are
passed by reference only (killing memory usage)
Primitive types are scheduled for removal, leaving only reference
types.
[...]
Whoa. So they're basically going to rely on JIT to convert those boxed
Integers into hardware ints for performance?
With great success.
Sounds like I will never
consider Java for computation-heavy tasks then...
Interestingly working with JVM for the last 2 years the only problem
I've found is memory usage overhead of collections and non-trivial
objects. In my tests performance of simple numeric code was actually
better with Scala (not even plain Java) then with D (LDC), for instance.
--
Dmitry Olshansky