TypeScript 与 C 对比:30项指标

TypeScript 对比 C

TypeScript

TypeScript 是一种Object-Oriented, Functional, Procedural编程语言,首次出现于 2012 年,由 Microsoft 设计。主要应用场景:Web Development, Automation, Scripting。

C

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

30项指标

指标TypeScriptC
GitHub Stars6309861804
Stack Overflow Tags825235860669
TIOBE Rank146
RedMonk Rank1111
PYPL Rank88
Average Salary (USD)130981132367
Job Postings4350141524
Benchmarks Score1.080.83
Learning CurveHardHard
Community SizeVery LargeVery Large
Documentation Quality810
Ecosystem Maturity1010
Industry Adoption1010
Type System Complexity98
Concurrency Support109
Performance - Execution Speed910
Performance - Memory Usage109
Performance - Startup Time810
Tooling Quality108
Package Manager Quality1010
IDE Support98
Debugging Experience99
GitHub Stars Rank1113
Stack Overflow Tags Rank136
Average Salary Rank107
Job Postings Rank611
Benchmarks Rank124
Learning Curve Score32
Community Size Score109
AHP Score8.478.28

AHP综合评分

  • TypeScript: 8.47 (#3)
  • C: 8.28 (#9)
TypeScript      | ######## 8.47
C               | ######## 8.28

何时选择TypeScript

Web Development, Automation, Scripting, General Programming. TypeScript 是一种Object-Oriented, Functional, Procedural编程语言,首次出现于 2012 年,由 Microsoft 设计。主要应用场景:Web Development, Automation, Scripting。

何时选择C

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

Hello World 示例

TypeScript:

console.log('Hello, World!');

C:

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

Other languages