+ 10
What's the use of a Javascript interpreter written in Javascript?
Why would someone use a Javascript interpreter written in Javascript? Although these JS interpreters are actually written in C, then compiled with emscripten and then called Javascript interpreters written in pure Javascript (like Narcissus with SpiderMonkey). Wouldn't the performance and memory usage be less viable than other languages? Thanks ☺
9 Respostas
+ 8
@anubhav-pandey thanks for your quick response 😊 I read the 2 answers you copied from Stackoverflow, it makes sense that C++ would be a better choice when it comes to performance but then I still can't explain why are there JS interpreters written in Javascript instead
+ 8
@anubhav-pandey yup, double checked it a few seconds later, thanks again :)
+ 7
@anubhav-pandey: that's a very interesting technical info, thanks a lot! 😊👌
+ 1
@Paola, The JavaScript interpreters which are in JavaScript aren't actual JavaScript interpreters but simulators of JavaScript interpreters.