+ 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 ☺

8th May 2017, 4:41 AM
Pao
Pao - avatar
4 ответов
+ 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
8th May 2017, 5:41 AM
Pao
Pao - avatar
+ 8
@anubhav-pandey yup, double checked it a few seconds later, thanks again :)
8th May 2017, 5:59 AM
Pao
Pao - avatar
+ 7
@anubhav-pandey: that's a very interesting technical info, thanks a lot! 😊👌
8th May 2017, 6:48 AM
Pao
Pao - avatar
+ 1
@Paola, The JavaScript interpreters which are in JavaScript aren't actual JavaScript interpreters but simulators of JavaScript interpreters.
1st Jul 2017, 1:05 PM
Bruh