35 points · by grobmeier · 14y ago · 46 comments
https://lists.webkit.org/pipermail/webkit-dev/2011-December/...
"WebKit branch to support multiple VMs (e.g., Dart)", halfway down the page.
In particular, some of Oliver Hunt's responses:
https://lists.webkit.org/pipermail/webkit-dev/2011-December/...
https://lists.webkit.org/pipermail/webkit-dev/2011-December/...
https://lists.webkit.org/pipermail/webkit-dev/2011-December/...
Aside from that, Google seems to be arguing that 1) there exist languages that compile to EcmaScript, so 2) single-vendor VMs in browsers is now OK. I'm being harsh here but that is the essence of it and it makes no sense at all.
Notabene it also featured CSS, ActiveX controls and Microsoft Java VM with Java Applets - http://en.wikipedia.org/wiki/Internet_Explorer_3.
Comparing this to Microsoft and ActiveX is an unfair comparison, imho.
2 things can happen: either Dart falls flat and this has no implications to anyone, or Dart becomes a major success and nothing is stopping IE, FF or Opera to writing their own implementation based on the open specification and code.
I fail to see the problem.
The type attribute gives the language of the script or format of the data.
I see no reason why some WebKit developers want to restrict what languages people can add by technical means. If there's a political reason to restrict it, they probably should discuss it within W3C and remove "type" attribute if they come to conclusion that JavaScript is the only language allowed.It would also saddle them with an extra maintenance & support burden for the foreseeable future, to the strategic benefit of nobody but Google.
I think the original conversation was hampered by a miscommunication - it was never made clear whether it was just about hacking on a custom version of WebKit, or about adding Dart support to WebKit based browsers.
Standards Compliance
WebKit aims for compliance with relevant web standards,
and support for new standards In addition to improving
compliance, we participate in the web standards community
to bring new technologies into standards, and to make sure
new standards are practical to implement in our engine.
We use regression testing to maintain our standards compliance
gains.
Clearly, one of their goals is to help bring new technologies into standards, as evidenced by first implementing CSS animations, transitions, and transforms, and other various -webkit- things, and then submitting them to standard bodies. Plus there are some code paths in WebKit that only apply to OS X Dashboard, which are really the maintenance burden, given that some OS X relevant bugs are kept in Apple's closed rdar system (I know this because I helped find a bug in canvas). I see no problem if Google will maintain their code -- at least, we'd be able to see bugs in an open bug-tracker.Why restrict innovation only to certain areas?
Secondly I would agree that WebKit has its own OS X-related baggage, but that just goes to show that nobody's perfect. It's not an argument for adding more. I would also agree that in the hypothetical case of Dart support being added to WebKit that Google would be expected to maintain their code, just as Apple would be expected to maintain OS X stuff.
But again, I think the original conversation was had at cross-purposes. What started as a conversation about hosting a branch of WebKit to do some innovating turned into a conversation about standards and the broader web. In the former case it's a purely technical question of where the work is done, but in the latter, I think the "participate in the web standards community" bit comes in to play. Why did Google come directly to WebKit to ask about integrating Dart instead of talking to e.g. the W3C or WHATWG?
It's pretty transparent what Google wants here; anyone who forks WebKit (ie everyone not named Mozilla, Opera, Microsoft) to get Dart by default. Adding the VM is just a small additional step.
Edit: Added link.
Sorry I don't get this. If Dart is delivered to the browser in source form, you'll still want script compressors and/or tools like Closure Compiler to eliminate unused code. Even if Dart is delivered to the browser in bytecode format you'll need a toolchain on the backend--and you'll still need symbol tables for client debugging.
If anything, the toolchain and project setup will be more complex for Dart developers if they want to support all browsers. They'll need to create one set of files for Chrome with native Dart and cross-compile to JavaScript for all other browsers. Then they'll need to conditionally include one set of script files or the other.
But adding another language besides JS is not ok because that would be bad for the web.
Now, personally I don't care about dart, but I know that I had the same bad feeling back in the day when Safari learned the then nonstandard canvas tag than I have now when it should learn the nonstandard scripting language.
I do find it hypocritical though to allow one and disallow the other.
By contrast, Dart is squarely aimed at competing with a feature that's both a defacto and a formalized standard for web browsers. Not an abandoned and aging feature, either: JavaScript's proven far more capable than most of the industry gave it credit for, it's been growing and changing over time, and there's currently very active development, discussion, and collaboration underway to improve the language and its performance -- and expand the features exposed to it by various APIs.
There's a world of difference between those two situations. In the former, you're introducing a new feature a platform doesn't have yet. In the later, you're splitting the industry on an existing feature.
Every browser vendor at times adds new tags or attributes if they think they can improve the web as a whole. When possible things are vendor prefixed, but still, it's something all the vendors do. It's the only way to get that technology into customers' hands.
Even though the canvas API is arguably a bad design, it certainly gets the job done - and nobody else stepped up to solve the problem before Apple did. It also made it into standards relatively quickly, and was implemented by other browser vendors pretty easily.
ref: http://www.mozilla.org/grants/perl-foundation.html & http://www.parrotblog.org/2008/09/final-report-for-mozilla-f...
No, the actual WebKit mailing list shows the exact opposite. Opposition (mainly from Apple) was quite strong, and it looks like Google will not be able to do this as a WebKit branch.
Instead, it will be a branch somewhere outside WebKit apparently. In that respect it will be like several other Google-specific technologies that are in Chrome but not WebKit, like NaCl and Pepper.
Getting near native performance in the browser would help take web apps to another level. Photoshop in a browser, for example.
http://www.readwriteweb.com/mobile/2011/08/android-is-the-le...
It involves things like multi-vendor support, open project management & roadmapping, standards bodies where applicable, etc. These are all things Dart doesn't have.
http://en.wikipedia.org/wiki/Embrace,_extend_and_extinguish
And don't think it's not possible, a number of MSFT folks who employed this strategy are now in leadership roles at GOOG.
Clue: open source != open standard. Code overspecifies badly. Any implementor who cannot or will not use the (evolving) Google code would have to reverse-engineer the "interop spec", which is less specific than the C++.
Now lets step back and look into the past: was JavaScript implementation or specification as open to comments and feedback as Dart is now? There are public mailing lists, issue tracker and open repositories that accept patches and suggestions. Did you have that for JavaScript?
I might be utterly wrong but I bet you did not. Yet instead of participating in the language effort or at least stepping back and patiently watching it's birth and growth into something standardizable you criticize and bash it.
May I humbly ask you why?
- Verboseness
- Patterns
- No type safety (combined with that dishonest “optional typing” non-sense)
- No traits (didn't they get the memo that single implementation inheritance didn't work out?)
- Map being no Iterable
- No HOFs in the collection library
- nulls even for primitive types, ...
I don't like superlatives, but I'm pretty confident calling Dart the worst language I have seen.
The only mistake they missed are probably Checked Exceptions.