Re:Yahoo Mail moving to React
by bad_user on Wednesday November 26, 2014 @12:25PM
(#8663389)
That's not an objective comparison, since Javascript has been optimized to deal with arrays and numbers, as that's one main use-case that people have in the browser. Take a look at the source code and tell me if that's the kind of code that you write.
[ Parent
| on HN ]
Re:Yahoo Mail moving to React
by ChrisAntaki on Wednesday November 26, 2014 @12:43PM
(#8663503)
> That's not an objective comparison, since Javascript has been optimized to deal with arrays and numbers
What were your thoughts on the regex-dna benchmark?
V8 is able to compile PCREs directly into efficient machine code (in some cases at least), CPython is not.
See: http://blog.chromium.org/2009/02/irregexp-google-chromes-new...
Re:Yahoo Mail moving to React
by ChrisAntaki on Wednesday November 26, 2014 @01:00PM
(#8663640)
Thanks for the insight!
So it's not an objective comparison because the V8 implementation performs well? :-)
No, it's not an objective comparison because that's not the kind of code that we deal with in 90% of the cases, except when doing games, but then again plain Javascript is shitty for doing games, unless you develop in a strict subset that isn't meant for humans.
Even if it were "not the kind of code that you deal with in 90% of the cases" that would not mean it "was not an objective comparison".
It might mean it wasn't a relevant comparison for you; but if those 10% of cases were performance critical it would be very relevant.