Do everything in Java…
John Colvin via Digitalmars-d
digitalmars-d at puremagic.com
Sun Dec 7 13:36:36 PST 2014
On Sunday, 7 December 2014 at 19:56:49 UTC, Dmitry Olshansky
wrote:
> 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.
Got an example? I'd be interested to see a numerical-code example
where the JVM can beat the llvm/gcc backends on a real
calculation (even if it's a small one).
More information about the Digitalmars-d
mailing list