|
|
|
|
|
by brandonb
5243 days ago
|
|
When you're as concerned with frontend performance as Google is, computer science knowledge can really come in handy. For example, they wrote their own compiler for Javascript to check for errors and shrink down the code to an absolute minimum, by e.g., shortening variable names and pruning functions that are never called. This means they had to write a their own parser, run various graph-based algorithms to follow references, iterate and transform the abstract syntax tree, etc. http://code.google.com/closure/compiler/ |
|
Don't you think it's better to hire compiler experts for that exact problem rather than worrying about whether some frontend dude can write his own JS parser?