News for hackers. Stuff that matters.
Re:Kotlin Post-1.0 Roadmap by systems on Thursday April 14, 2016 @11:36AM (#11497533)
is the plan for koltin to replace java in the development of jetbrains products

if yes, then i would assume the primary objective should be performance .. but this doesnt seem to be the case

and my question is, is there any jvm language which is faster than java

Re:Kotlin Post-1.0 Roadmap by lmm on Thursday April 14, 2016 @11:46AM (#11497632)
All JVM languages "are" the same speed, because they compile to the same bytecode.

OTOH some languages make it more practical / cheaper to write higher-performance code, e.g. in Scala you can use @specialized to automatically generate unboxed special cases for generic code that you'd have to write (and keep track of) by hand in Java. But if you ask "in which JVM language is it most practical/cheapest to write feature X with performance Y?" then the biggest component of the answer is going to be how easy programming in general in that language is, not anything specific to performance.

The question "how fast will a naive implementation in language X perform?" does have an answer, but it's not a question you should ever be asking - if a naive implementation in language X is faster than a naive implementation in language Y, but takes 3x as long to write as an optimised implementation in language Y that's faster than the naive implementation in language X, then language Y is the better choice.

Re:Kotlin Post-1.0 Roadmap by gregschlom on Thursday April 14, 2016 @12:47PM (#11498266)
They compile to the same bytecode, but some languages may have features that compile to a lot more bytecode than others. A dynamic language such as Clojure, for example, is definitely slower than Java, although they are both JVM-based, because it has to do a lot more.
Re:Kotlin Post-1.0 Roadmap by mike_hearn on Thursday April 14, 2016 @01:21PM (#11498647)
Kotlin relies quite heavily on bytecode level method inlining, for instance.

The advantage is that it makes code written in a functional style effectively free (well, almost, unless you could gain performance from step fusion). The disadvantage is that the JVM wasn't designed for that and it messes up stack traces.

Re:Kotlin Post-1.0 Roadmap by yole on Thursday April 14, 2016 @12:30PM (#11498078)
Yes, the plan is for Kotlin to replace Java at JetBrains. I don't see how the performance requirement follows from that. The performance of JetBrains products is determined far more by the implementation algorithms than by the compiler used to build their source code. Kotlin's performance is on par with Java, and that is all that JetBrains needs for its internal use.
Re:Kotlin Post-1.0 Roadmap by xaduha on Thursday April 14, 2016 @11:53AM (#11497702)
I'd be satisfied with it not being noticeably slower than Java and according to some it isn't. Do you speak from experience or just assume that it must be slower?
Re:Kotlin Post-1.0 Roadmap by cel1ne on Thursday April 14, 2016 @11:52AM (#11497689)
Kotlin should be equally fast and in some parts faster (function inlineing, lambda expressions). Check out the generated bytecode, it's in the docs.
Re:Kotlin Post-1.0 Roadmap by cwbrandsma on Thursday April 14, 2016 @11:47AM (#11497639)
I questioning if that is the fault of the language, the jvm, or the developer at this point.
Re:Kotlin Post-1.0 Roadmap by xaduha on Thursday April 14, 2016 @11:54AM (#11497716)
What fault are we talking about?