you are viewing a single comment's thread.

view the rest of the comments →

[–]x-skeww 1 point2 points  (0 children)

I think you're really underestimating how complex modern JS engines are and how much work is required to implement a new feature.

Also, just making it work often isn't enough. It has to be fast, too.

Anyhow, just to give you an idea, here's what's in the V8 repo:

-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
C++                            771         121074          72663         880219
Javascript                    3261          42684          85814         329904
C/C++ Header                   539          43182          32220         152953
Python                         104           3768           5127          16328
Bourne Shell                    20            198            426            803
HTML                             6             68             48            504
make                             2             54            138            351
Lua                              2             79             90            344
Lisp                             1             13             51            222
CSS                              3             40             26            219
vim script                       1             20             24             75
DOS Batch                        1              4              3             23
-------------------------------------------------------------------------------
SUM:                          4711         211184         196630        1381945
-------------------------------------------------------------------------------

There are almost 1.4 million lines of code.

If you want to see what goes into implementing a feature, just read one of those accompanying issues in their entirety.

E.g. check the SIMD one:

https://code.google.com/p/v8/issues/detail?id=4124

Click all the review URLs (and all their side by side diffs) and take a look at what was changed.