News for hackers. Stuff that matters.
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.
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?

Re:Yahoo Mail moving to React by meowface on Wednesday November 26, 2014 @12:53PM (#8663581)
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!
Re:Yahoo Mail moving to React by igouy on Wednesday November 26, 2014 @06:57PM (#8665267)
So it's not an objective comparison because the V8 implementation performs well? :-)
Re:Yahoo Mail moving to React by bad_user on Thursday November 27, 2014 @03:19AM (#8666427)
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.
Re:Yahoo Mail moving to React by igouy on Thursday November 27, 2014 @01:16PM (#8668319)
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.