Why not make jQuery a core script engine to the browser without parsing it by JavaScript as a library?
I would like to know if the developers of jQuery ever considered the library to work like the V8 JavaScript engine rather than as a JavaScript library. Considering that everything is being re-done over and over by the next parser:
myscript -
jQuery
(doing what myscript was trying to do, just the harder and longer way)
-
JavaScript
(again repeating the same) -
Browser
(again..., to other underlying libraries) -
OS that then eventually directs the entire machine on executing the command, which responds back the same route up.
Isn't that repetition of work for the machine and slowing of things down, which is even made worse by
jQuery libraries such as jQuery.UI
(myscript - jQuery.UI - jQuery - JavaScript -...)?
Besides,
from the looks of things jQuery itself is
like a new scripting language rather than a JavaScript library. When i first saw jQuery, I couldn't understand how it could be a library because it looked totally different, only that I had to run it together with JavaScript did i only think of it as JavaScript. I immediately noticed that eventually JavaScript will become obsolete considering a lot of developers moving towards jQuery rather than native JavaScript.
Can integrating
(or even making browsers fetch the library from jQuery repositories at runtime) jQuery as a STANDALONE SCRIPT ENGINE inside the browser be done to speed things up or there are many advantages towards the present approach that i am missing?
I know that the JavaScript language doesn't develop further as aggressive as the jQuery lib and that, if it is integrated, browsers will have to factor in the new parser each time there is an update to jQuery, but making it a script engine rather than a library has big advantages considering the speed related to parsing it directly into the browser rather than as a library of a scripting language.
So why not just doom JavaScript as nature is dictating and develop jQuery as a scripting language in the core of things further inside the browser or whatever hosting application?
re-edited
Regards, Emmanuel Mahuni