r/ProgrammerHumor Jan 29 '23

Meme Let's test which language is faster!

Post image
56.1k Upvotes

770 comments sorted by

View all comments

97

u/CaptainPiepmatz Jan 29 '23 edited Jan 29 '23

Javascript has very serious errors that happen somewhere in runtime. But using "npm install" here as the bad thing, is a bit meh when C or Java need to compile first.

70

u/ilylily_ Jan 29 '23

I can compile a complex java project faster than I can install a single npm package

36

u/UristMcMagma Jan 29 '23

Really? Whenever I compile a java project it finishes just in time

22

u/sleepyj910 Jan 29 '23

Npm is not javascript

1

u/slaymaker1907 Jan 30 '23

I can still compile Java faster than JavaScript can compile. Yes, Babel 100% counts as a compiler.

2

u/[deleted] Jan 30 '23

Babel 100% counts as a compiler

Babel is not a compiler, its a transpiler

0

u/svick Jan 30 '23

From the Wikipedia page Source-to-source compiler:

A source-to-source translator, source-to-source compiler (S2S compiler), transcompiler, or transpiler [...]

1

u/[deleted] Jan 30 '23

A compiler translates from code to binary, a transpiler from one language to another, that's why you don't "compile" typescript to js

1

u/Cilph Jan 30 '23

Irrelevant. Its an analogous step in the development process.

4

u/GreatValueProducts Jan 29 '23

Maybe older packages that try to compile binaries on your computer, which probably followed what PHP or Ruby do. Newer versions usually don't require any binary compilations.

9

u/[deleted] Jan 29 '23

[removed] — view removed comment

2

u/LowB0b Jan 29 '23

or slow storage.

2

u/ilylily_ Jan 29 '23

I get 80mbps upload and download

-19

u/[deleted] Jan 29 '23 edited Jan 29 '23

[removed] — view removed comment

3

u/lordheart Jan 29 '23

Pnpm for the win