Haskell 与 C 对比:30项指标

Haskell 对比 C

Haskell

Haskell 是一种Functional, Pure编程语言,首次出现于 1990 年,由 Haskell Committee 设计。主要应用场景:Functional Programming, Academic Research, Type-Safe Applications。

C

C 是一种Procedural, Object-Oriented, Generic编程语言,首次出现于 1972 年,由 Dennis Ritchie 设计。主要应用场景:Systems Programming, Embedded, Performance-Critical Applications。

30项指标

指标HaskellC
GitHub Stars4355161804
Stack Overflow Tags566327860669
TIOBE Rank696
RedMonk Rank5911
PYPL Rank718
Average Salary (USD)101476132367
Job Postings2847741524
Benchmarks Score0.740.83
Learning CurveMediumHard
Community SizeLargeVery Large
Documentation Quality710
Ecosystem Maturity710
Industry Adoption810
Type System Complexity58
Concurrency Support89
Performance - Execution Speed910
Performance - Memory Usage99
Performance - Startup Time910
Tooling Quality58
Package Manager Quality510
IDE Support58
Debugging Experience59
GitHub Stars Rank5313
Stack Overflow Tags Rank566
Average Salary Rank527
Job Postings Rank5511
Benchmarks Rank4224
Learning Curve Score62
Community Size Score79
AHP Score6.68.28

AHP综合评分

  • Haskell: 6.6 (#41)
  • C: 8.28 (#9)
Haskell         | ####### 6.6
C               | ######## 8.28

何时选择Haskell

Functional Programming, Academic Research, Type-Safe Applications. Haskell 是一种Functional, Pure编程语言,首次出现于 1990 年,由 Haskell Committee 设计。主要应用场景:Functional Programming, Academic Research, Type-Safe Applications。

何时选择C

Systems Programming, Embedded, Performance-Critical Applications. C 是一种Procedural, Object-Oriented, Generic编程语言,首次出现于 1972 年,由 Dennis Ritchie 设计。主要应用场景:Systems Programming, Embedded, Performance-Critical Applications。

Hello World 示例

Haskell:

main = putStrLn "Hello, World!"

C:

#include <stdio.h>
int main(){ printf("Hello, World!\n"); return 0; }

Other languages