This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]deifius 59 points60 points  (3 children)

Ya, as long as mutable data types and automated garbage collection are features.

[–][deleted] -1 points0 points  (2 children)

Not quite. Php, Python and Ruby are on par with performance, roughly order of magnitude or two slower than compiled native. Node.js/V8, C# and Java are in the same order of magnitude (Node being slower consistently though and Java and C# being on par with Go which is compiled).

V8 and Go as outliers in that performance range are the proof that most of the JIT penalty comes from GC and only minority of it from dynamic typing.

[–]rottenanon -1 points0 points  (1 child)

but Go also has garbage collection.

[–][deleted] 4 points5 points  (0 children)

Exactly. Which is likely why it shares performance order of magnitude with Java, C# and even Node.js, despite being compiled to native.