On Tue, Apr 5, 2011 at 10:07 PM, David Gerard dgerard@gmail.com wrote:
On 5 April 2011 21:29, Aryeh Gregor Simetrical+wikilist@gmail.com wrote:
To the contrary, I'd expect JavaScript in the most recent version of any browser (even IE) to be *much* faster than PHP, maybe ten times faster on real-world tasks. All browsers now use JIT compilation for JavaScript, and have been competing intensively on raw JavaScript speed for the last three years or so. There are no drop-in alternative PHP implementations, so PHP is happy sticking with a ridiculously slow interpreter forever.
So if we machine-translate the parser into JS, we can get the user to do the work and everyone wins! [*]
(Magnus, did you do something like this for WYSIFTW?)
Nope, all hand-rolled, just like my last 50 or so parser wannabe implementations ;-)
(this one has the advantage of a "dunno what this is, just keep the wikitext" fallback, which helped a lot)
Magnus