Re:Steve Jobs Doesn't Want Shit In His App Store, And Neithe...
by rimantas on Saturday April 17, 2010 @05:37AM
(#1272852)
Sorry, but if you knew what you are talking about, you would not call a parser with callbacks a compiler with VM. Maybe SAX parsers are also compilers and run some VM?
What does parsed CSS selector compile to? Where is that VM and what does it run? Bytecode?
Sizzle is just a parser what parses given selector into parts, gets matchin DOM elements, filters them and returns what matches. There is no compilation or virtual machines involved, just some string parsing, callbacks and DOM API.
That's my explanation for how these selectors are, in fact, a language that is compiled and executed.