C 与 Go 对比:30项指标

C 对比 Go

C

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

Go

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

30项指标

指标CGo
GitHub Stars6180459948
Stack Overflow Tags860669818506
TIOBE Rank638
RedMonk Rank1131
PYPL Rank832
Average Salary (USD)132367115006
Job Postings4152440063
Benchmarks Score0.830.82
Learning CurveHardHard
Community SizeVery LargeLarge
Documentation Quality1010
Ecosystem Maturity109
Industry Adoption108
Type System Complexity810
Concurrency Support96
Performance - Execution Speed108
Performance - Memory Usage99
Performance - Startup Time106
Tooling Quality88
Package Manager Quality1010
IDE Support88
Debugging Experience98
GitHub Stars Rank1319
Stack Overflow Tags Rank617
Average Salary Rank728
Job Postings Rank1116
Benchmarks Rank2428
Learning Curve Score22
Community Size Score98
AHP Score8.287.5

AHP综合评分

  • C: 8.28 (#9)
  • Go: 7.5 (#25)
C               | ######## 8.28
Go              | ######## 7.5

何时选择C

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

何时选择Go

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

Hello World 示例

C:

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

Go:

package main
import "fmt"
func main(){ fmt.Println("Hello, World!") }

Other languages