News for hackers. Stuff that matters.
Re:The V8 Myth: Why JavaScript is not a Worthy Competitor by adgar on Wednesday January 18, 2012 @12:49PM (#3480863)
> Of course you can promise types to the JS engine.

Because a variable can always change types, it's actually trivially proven that in a dynamically-typed language, there will always be programs in which the type cannot be inferred.

Re:The V8 Myth: Why JavaScript is not a Worthy Competitor by ootachi on Wednesday January 18, 2012 @01:31PM (#3481088)
Well, statically-typed languages have a "dynamic" type too. Consider void * in C and C++ and Object in Java and C#. You have to downcast to do anything with them. That's the equivalent of what JS is doing with its dynamic typing. The basic difference is that the "dynamic" type is the default in JS, and the static type is the default in statically-typed languages.
Re:The V8 Myth: Why JavaScript is not a Worthy Competitor by georgemcbay on Wednesday January 18, 2012 @01:55PM (#3481223)
The premise of this article is that Javascript's pure dynamic variables lead to slowness.

I'm not sure what your point with this post was because if you litter your C/C++ code with non-static casts, it is also going to be much slower than code without casts.

Re:The V8 Myth: Why JavaScript is not a Worthy Competitor by ootachi on Wednesday January 18, 2012 @02:38PM (#3481441)
The parent comment was pointing out that there exist programs in JavaScript in which the types cannot be inferred. All I was saying was that this is not unique to JavaScript, or to dynamically typed languages generally.
Re:The V8 Myth: Why JavaScript is not a Worthy Competitor by jasonwatkinspdx on Wednesday January 18, 2012 @01:16PM (#3481007)
Statically.