Swift 与 R 对比:30项指标

Swift 对比 R

Swift

Swift 是一种Object-Oriented, Functional编程语言,首次出现于 2014 年,由 Apple 设计。主要应用场景:Mobile Apps, Cross-Platform Development。

R

R 是一种Multi-paradigm编程语言,首次出现于 1993 年,由 Ross Ihaka, Robert Gentleman 设计。主要应用场景:Data Science, Scientific Computing, Statistics。

30项指标

指标 Swift R
GitHub Stars 55291 58302
Stack Overflow Tags 732460 729989
TIOBE Rank 23 36
RedMonk Rank 24 20
PYPL Rank 33 24
Average Salary (USD) 119941 122736
Job Postings 36421 38329
Benchmarks Score 0.99 1.0
Learning Curve Hard Hard
Community Size Large Very Large
Documentation Quality 8 8
Ecosystem Maturity 9 10
Industry Adoption 8 8
Type System Complexity 10 9
Concurrency Support 10 8
Performance - Execution Speed 10 8
Performance - Memory Usage 10 9
Performance - Startup Time 9 8
Tooling Quality 9 8
Package Manager Quality 9 9
IDE Support 9 8
Debugging Experience 10 9
GitHub Stars Rank 26 20
Stack Overflow Tags Rank 24 25
Average Salary Rank 25 23
Job Postings Rank 24 22
Benchmarks Rank 6 4
Learning Curve Score 1 2
Community Size Score 8 9
AHP Score 7.86 7.66

AHP综合评分

  • Swift: 7.86 (#20)
  • R: 7.66 (#23)
Swift           | ######## 7.86
R               | ######## 7.66

何时选择Swift

Mobile Apps, Cross-Platform Development. Swift 是一种Object-Oriented, Functional编程语言,首次出现于 2014 年,由 Apple 设计。主要应用场景:Mobile Apps, Cross-Platform Development。

何时选择R

Data Science, Scientific Computing, Statistics, Visualization. R 是一种Multi-paradigm编程语言,首次出现于 1993 年,由 Ross Ihaka, Robert Gentleman 设计。主要应用场景:Data Science, Scientific Computing, Statistics。

Hello World 示例

Swift:

print("Hello, World!")

R:

print('Hello, World!')

Other languages