Kotlin 与 Scala 对比:30项指标

Kotlin 对比 Scala

Kotlin

Kotlin 是一种Object-Oriented, Functional编程语言,首次出现于 2011 年,由 JetBrains 设计。主要应用场景:Backend Services, Enterprise Applications, Android。

Scala

Scala 是一种Object-Oriented, Functional编程语言,首次出现于 2004 年,由 Martin Odersky 设计。主要应用场景:Backend Services, Enterprise Applications, Android。

30项指标

指标 Kotlin Scala
GitHub Stars 57848 55399
Stack Overflow Tags 812870 668243
TIOBE Rank 33 49
RedMonk Rank 20 51
PYPL Rank 39 56
Average Salary (USD) 125921 108106
Job Postings 38742 32694
Benchmarks Score 0.98 0.77
Learning Curve Hard Hard
Community Size Large Large
Documentation Quality 8 9
Ecosystem Maturity 8 9
Industry Adoption 8 9
Type System Complexity 9 7
Concurrency Support 10 4
Performance - Execution Speed 10 6
Performance - Memory Usage 10 5
Performance - Startup Time 9 6
Tooling Quality 7 9
Package Manager Quality 9 9
IDE Support 8 9
Debugging Experience 8 9
GitHub Stars Rank 21 25
Stack Overflow Tags Rank 18 32
Average Salary Rank 17 41
Job Postings Rank 21 35
Benchmarks Rank 8 36
Learning Curve Score 2 4
Community Size Score 8 8
AHP Score 7.66 7.17

AHP综合评分

  • Kotlin: 7.66 (#22)
  • Scala: 7.17 (#30)
Kotlin          | ######## 7.66
Scala           | ####### 7.17

何时选择Kotlin

Backend Services, Enterprise Applications, Android. Kotlin 是一种Object-Oriented, Functional编程语言,首次出现于 2011 年,由 JetBrains 设计。主要应用场景:Backend Services, Enterprise Applications, Android。

何时选择Scala

Backend Services, Enterprise Applications, Android. Scala 是一种Object-Oriented, Functional编程语言,首次出现于 2004 年,由 Martin Odersky 设计。主要应用场景:Backend Services, Enterprise Applications, Android。

Hello World 示例

Kotlin:

fun main(){ println("Hello, World!") }

Scala:

object Main extends App { println("Hello, World!") }

Other languages