4 ms·
Hmm, a language interpreted by a parser implemented in a scripting language. Won't that be rather slow? I'd be more comfortable with using it as a compiler that
by donaq 17y ago
Hmm, a language interpreted by a parser implemented in a scripting language. Won't that be rather slow? I'd be more comfortable with using it as a compiler that outputs js I can then include, rather than letting clients' browsers interpret it on the fly.
- tumult 17y agoI imagine it does the parse up-front rather than a separate interpretation step during execution.
- donaq 17y agoGranted, but that's still an extra step that I wouldn't want clients to have to take.
- jrockway 17y agoA parser implemented in a scripting language What's a "scripting language"? Won't that be rather slow? Firefox is implemented in JavaScript. It's pretty fast, and a little more complicated than a parser.
- pgbovine 17y agoFirefox is implemented in JavaScript i'm pretty sure that much of the performance-critical core is in C++; javascript is th UI/extensions layer, to the best of my knowledge
- jrockway 17y agoVimperator and Conkeror do some pretty complicated manipulation in pure JavaScript. (Sure, the rendering core is in C++, but that's because C++ was all they had when it was first developed.)
- ZeroGravitas 17y agoThey've been talking for years about written more and lower layers with Javascript. I'm not sure how far along they've got, it would be interesting to know. Obviously parts are C++ but isn't interfacing with such code one of the defining characteristics of a "scripting language" and javascript in particular?
- donaq 17y agoWhat's a "scripting language"? Or interpreted language, if the nomenclature is that important.