Elixir 与 C 对比:30项指标

Elixir 对比 C

Elixir

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

C

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

30项指标

指标 Elixir C
GitHub Stars 48156 61804
Stack Overflow Tags 641278 860669
TIOBE Rank 67 6
RedMonk Rank 62 11
PYPL Rank 68 8
Average Salary (USD) 111550 132367
Job Postings 28149 41524
Benchmarks Score 0.71 0.83
Learning Curve Hard Hard
Community Size Large Very Large
Documentation Quality 5 10
Ecosystem Maturity 7 10
Industry Adoption 6 10
Type System Complexity 7 8
Concurrency Support 9 9
Performance - Execution Speed 9 10
Performance - Memory Usage 10 9
Performance - Startup Time 10 10
Tooling Quality 7 8
Package Manager Quality 6 10
IDE Support 6 8
Debugging Experience 7 9
GitHub Stars Rank 39 13
Stack Overflow Tags Rank 38 6
Average Salary Rank 34 7
Job Postings Rank 58 11
Benchmarks Rank 46 24
Learning Curve Score 4 2
Community Size Score 8 9
AHP Score 6.76 8.28

AHP综合评分

  • Elixir: 6.76 (#36)
  • C: 8.28 (#9)
Elixir          | ####### 6.76
C               | ######## 8.28

何时选择Elixir

Functional Programming, Academic Research, Type-Safe Applications. Elixir 是一种Functional, Pure编程语言,首次出现于 2011 年,由 José Valim 设计。主要应用场景: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 示例

Elixir:

IO.puts "Hello, World!"

C:

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

Other languages