regular (or even novice) users to write less performant code than in Java?
For example usage of immutable lists and operations on them from stdlib. Or calling too often copy on data classes just because you can.
I don't want to say that you can't write simillar code in Java. I'm just sayin that there are some features that easy to use and they can bring you to less performant code.
Roman made the correct statement. We always need to take the experience of the one, who writes the code into account. A C++ code from super-experienced C++ developer will be probably better, then the same from Java developer. The beginner and middle-level code will be better on Java because there are a lot of intrinsics in JVM. As for Kotlin, it will depend on your style. Java-style kotlin. Will be exactly the same as Java. The functional-style kotlin could be a little bit slower, but I do not think that the difference will be significant.
Обсуждают сегодня