Google To Pay JavaScript Frameworks To Implement Performance-First Code (zdnet.com)
An anonymous reader quotes ZDNet:
Google will be launching a fund of $200,000 to sponsor the development and implementation of performance-related features in third-party JavaScript frameworks... Frameworks with original ideas to improve performance and those which ship "on by default" performance-boosting features will be favored in the funds allocation process. Nicole Sullivan, Chrome Product Manager, and Malte Ubl, Google Engineering Lead, have told ZDNet that the popularity, size, or the adoption of any participant framework will not count as a defining factor for being selected to receive funding. "The objective of this initiative is to help developers hit performance goals and hence serve their users with high-quality user experiences by default and ensure that this happens at scale," the two told ZDNet in an email...
"One key factor is also whether the respective feature can be turned on by default and thus have maximum impact rather than being only made available optionally," Sullivan and Ubl said.... "We want developers to be creative in approaching and solving the performance problem on the web but at a high-level we'll be looking at features that directly impact loading performance (e.g. use of feature policies, smart bundling, code-splitting, differential serving) and runtime performance (e.g. breaking tasks into smaller, schedulable chunks & keeping fps high)...."
But in addition to putting up funds to help frameworks improve their codebase, Google has also invited the development teams some of these frameworks to provide feedback in a more prominent role as part of the Google Chrome development process... "Frameworks sometimes make web apps slower. They are also our best hope to make it faster," a slide in Sullivan and Ubl's Chrome Dev Summit presentation read.
"It's still JavaScript," complains long-time Slashdot reader tepples. "The fastest script is the script that is not loaded at all."
"One key factor is also whether the respective feature can be turned on by default and thus have maximum impact rather than being only made available optionally," Sullivan and Ubl said.... "We want developers to be creative in approaching and solving the performance problem on the web but at a high-level we'll be looking at features that directly impact loading performance (e.g. use of feature policies, smart bundling, code-splitting, differential serving) and runtime performance (e.g. breaking tasks into smaller, schedulable chunks & keeping fps high)...."
But in addition to putting up funds to help frameworks improve their codebase, Google has also invited the development teams some of these frameworks to provide feedback in a more prominent role as part of the Google Chrome development process... "Frameworks sometimes make web apps slower. They are also our best hope to make it faster," a slide in Sullivan and Ubl's Chrome Dev Summit presentation read.
"It's still JavaScript," complains long-time Slashdot reader tepples. "The fastest script is the script that is not loaded at all."
Do you know how many times I see jQuery code like this:
$('.someEle').addClass('class-1');
$('.someEle').addClass('class-2');
$('.someEle').addClass('class-3');
$('.someEle').addClass('class-4');
For god sake, assign that DOM lookup to a fuckin variable and reference it! No need to skim the DOM four effin' times to do some work on an element.
Funds only for Chrome-only improvements?
AC comments get piped to
[How about] security first? Oh no? Yeah, thought so.
Well, it worked for Intel. Oh, wait...
Get rid of the bloody framework. Why include 200K of compressed javascript when you're only going to use two five-line functions.
Not to mention all the potential security vulnerabilities you just needlessly included in your code.
#DeleteChrome
Too bad that browsers didn't caught some better scripting language like Lua or something else early on, now we're stuck with javascript for basically forever.
Oh wait, if they did that, that would mean al LOT LESS WORK for the Project Zero guys... so no! Performance it is!
*** Suerte a todos y Feliz dia!
How about they just pay them to like totally go away?
Confucius say, "Find worm in apple - bad. Find half a worm - worse."
In a couple of years, JS will be basically dead. Since WebAssembly allows you to run code from any language in their VM that they falsely call a "browser".
(Somebody add a URL bar and tabs to VirtualBox already! And have a HTML5OS snapshot to copy-on-write clone on hot standby. [Just mention that you didn't come up with it, as I've been suggesting this since the first JSLinux now.])
At this point, the web browser has become the prime example of the inner-platform effect (an anti-pattern), in being nothing more than a more shitty implementation of the OS below it. In a VM that only serves as a false sense of security. I'd prefer if we'd get rid of it, and make the HTML viewer application (the top layers of what I called "HTML5OS") independent.
This would allow for a whole class of new possibilities, and free everyone from having to use HTML5 on the web, while allowing every platform to be "web-enabled" simply thanks to the features of the underlying OS.
The OS could also handle application firewalling, certificates, etc, freeing the need for the browser to do it a second limited and incompatible time.
May I introduce you to LuaJIT? http://luajit.org/
... but JavaScript is atrocious. I think that pretty much any language can be used to produce something that's functional and reliable. Maybe not as elegant as it could be but still functional. I'm a guy that uses PHP regularly, I develop mission critical database solutions sometimes using MS Access and I've written entire projects in Visual Basic. They weren't the only options either, I could have chosen other paths, but circumstance and costings led to those decisions. None are great, but at least they all work well enough.
JavaScript is basically herpes though. Irritating, impractical, unsightly and it sticks with you forever. I'd never volunteer for herpes. At least my PHP chlamydia can be effectively treated.
Just to mitigate some of the hate I'll be getting I'd like to add that the vast majority of my work is for microcontrollers and the higher layer software for user interfacing is usually for smaller companies, the bigger implementations are usually handled by in-house people and I focus on the hardware... so be gentle.
>suggests Lua instead of JavaScript for performance
That's quite possibly the only language that's even *slower* than JavaScript.
Funny that you single out the one language that actually has an implementation matching or exceeding the performance of the best JS implementations, and completely ignore the languages for which your claim actually holds, such as Python, Ruby, Perl, PHP, Tcl etc.
Ezekiel 23:20
Majority of the comments seem to be by people who feel the need to feel better about themselves by bashing a language and people they know very little about. Yes, there are bad Javascript developers, but so what? There are bad Java developers as well. Just because you're not able to grok it, isn't a reason to bash it. It's a poor craftsman who blames his tools.
No. All the cool kids are learning Techno Psycho Bitch now?
http://saveie6.com/
...for certain tasks. If you need to rapidly prototype something; if you are dealing with a small amount of data; or if you need to run something just once a week or month then scripting is a quick way to accomplish this. But if you are doing anything many times each hour, dealing with huge data sets, or if otherwise performance is really important you don't use scripting! There is a reason why things like file system drivers, network controllers, or enterprise databases are not written in a scripting language.
At this point, the web browser has become the prime example of the inner-platform effect (an anti-pattern), in being nothing more than a more shitty implementation of the OS below it.
Exactly. But you've totally forgotten the reason the browser is winning. It's precisely *because* you can use it as a platform and needn't think twice about what brand, version and Iteration of operating systems the target audience is running. F*ck MS, Oracle, Apple, some obscure Linux with a bazillion desktop and lib variants, BSDs and whatnot. Take your proprietary heap of lock-in garbage and go die in a fire. And all hail the mighty Webbrowser! Ten times over!
So yes, it's an OS behind the curve, but no, it's absolutely not an Anti-pattern, is the exact opposite. And I thank God for once again the laughed at toys winning and taking over the planet. Just like that silly open architecture toy computer x86 back then.
Toys win and the web will own everything and the world will be a better place because of it.
We suffer more in our imagination than in reality. - Seneca
30 seconds for the inbox to load is a joke.
Also _whole_ $200K Google? wow, thats a lot of money, could almost pay for a month of free candy at Googleplex, almost.
Who logs in to gdm? Not I, said the duck.
1. fast
2. secure
3. easy to use
On a long enough timeline, the survival rate for everyone drops to zero.
Vanilla.js is the most secure, most enabling javascript ever!
You can't beat Vanilla.js; it outperforms every other framework in usability.
Yet Vanilla.js is the smallest, most efficient, fastest loading framework available!
Vanilla.js lets you use less code to do more work, in more standardized ways, and future proofs your code by reducing legacy burden.
Get Vanilla.js for your project, today!