Re:How to get C like performance in Java
by gaius on Wednesday July 20, 2011 @12:04PM
(#2786176)
If you have to fight the language like this, would you not be better off with a different language? Scala maybe.
[ Parent
| on HN ]
for most of his points you'd have to do the same things in scala, right? How do you do arbitrary memory access in scala? How do you use space efficient strings in scala? etc, etc.
Re:How to get C like performance in Java
by lucian1900 on Thursday July 21, 2011 @01:57PM
(#2790501)
While the parent is generally wrong, it has been shown that Scala programs have the tendency to generate slightly (5-10%) less garbage. This is especially interesting on Dalvik.
OK, C++ then, or my own favourite, OCaml, for GC.
Given that Scala targets the JVM, you are going to have to use the same tricks and probably a few others.