Wednesday, June 5, 2024
 Popular · Latest · Hot · Upcoming
186
rated 0 times [  191] [ 5]  / answers: 1 / hits: 31812  / 14 Years ago, tue, march 15, 2011, 12:00:00

I'm trying to figure out if web browsers use an interpreter to execute javascript, or some sort of compiler. It is well known that scripting languages are interpreted not compiled; however there is the JScriptCompiler that can compile javascript into MSIL. This leaves me to wonder if IE, FF, Chrome etc are using some sort of compiler or if it's an interpreter.



Can anyone cite the specific method in which browsers run javascript?


More From » javascript

 Answers
6

In the past, Javascript was interpreted -- and nothing more.



In the past two years or so, browsers have been implementing new Javascript engines, trying to compile some portions of code, to speed Javascript up.





For more informations on what has been done for Mozilla Firefox, you should take a look at :





For more informations about Chrome's engine, you'll want to read :





And for webkit (safari) :





Not sure what has been (or is being) done on other browsers -- but I suppose the same kind of thing exists, or will exist.





And, of course, for more informations : JavaScript engine, on wikipedia.


[#93269] Monday, March 14, 2011, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
herman

Total Points: 110
Total Questions: 90
Total Answers: 108

Location: Bosnia and Herzegovina
Member since Thu, Jun 24, 2021
3 Years ago
;