Re:Pythonic syntax to declutter Javascript
by donaq on Thursday January 14, 2010 @09:27PM
(#1054093)
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.
[ Parent
| on HN ]
Re:Pythonic syntax to declutter Javascript
by tumult on Thursday January 14, 2010 @10:41PM
(#1054187)
I imagine it does the parse up-front rather than a separate interpretation step during execution.
Granted, but that's still an extra step that I wouldn't want clients to have to take.
Re:Pythonic syntax to declutter Javascript
by jrockway on Thursday January 14, 2010 @11:03PM
(#1054218)
A 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.
Re:Pythonic syntax to declutter Javascript
by pgbovine on Thursday January 14, 2010 @11:55PM
(#1054298)
Firefox 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
Re:Pythonic syntax to declutter Javascript
by ZeroGravitas on Friday January 15, 2010 @07:18AM
(#1054729)
They'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?
Re:Pythonic syntax to declutter Javascript
by jrockway on Friday January 15, 2010 @02:22AM
(#1054444)
Vimperator 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.)
What's a "scripting language"?
Or interpreted language, if the nomenclature is that important.