News for hackers. Stuff that matters.
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.
Re:How to get C like performance in Java by jshen on Wednesday July 20, 2011 @12:09PM (#2786205)
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.
Re:How to get C like performance in Java by gaius on Wednesday July 20, 2011 @12:46PM (#2786397)
OK, C++ then, or my own favourite, OCaml, for GC.
Re:How to get C like performance in Java by sehugg on Wednesday July 20, 2011 @12:22PM (#2786268)
Given that Scala targets the JVM, you are going to have to use the same tricks and probably a few others.
Re:How to get C like performance in Java by uriel on Wednesday July 20, 2011 @12:46PM (#2786399)
You would be better off with a language that gives you much more control over memory layout, for example Go.