Swift vs R: 30 Metrics Comparison

Swift vs R

Swift

Swift is a Object-Oriented, Functional programming language first appeared in 2014, designed by Apple. Main use cases: Mobile Apps, Cross-Platform Development.

R

R is a Multi-paradigm programming language first appeared in 1993, designed by Ross Ihaka, Robert Gentleman. Main use cases: Data Science, Scientific Computing, Statistics.

30 Metrics

Metric 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 Score

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

When to choose Swift

Mobile Apps, Cross-Platform Development. Swift is a Object-Oriented, Functional programming language first appeared in 2014, designed by Apple. Main use cases: Mobile Apps, Cross-Platform Development.

When to choose R

Data Science, Scientific Computing, Statistics, Visualization. R is a Multi-paradigm programming language first appeared in 1993, designed by Ross Ihaka, Robert Gentleman. Main use cases: Data Science, Scientific Computing, Statistics.

Hello World Example

Swift:

print("Hello, World!")

R:

print('Hello, World!')

Other languages