3 ms·
Because that's a pretty laughable idea. There's no reason for browsers to choose Dart over CoffeeScript or TypeScript, and Dart is so far behind CoffeeScript i
by Helianthus 13y ago
Because that's a pretty laughable idea. There's no reason for browsers to choose Dart over CoffeeScript or TypeScript, and Dart is so far behind CoffeeScript it's not even funny.
Google wants to do it, sure, but that doesn't mean they'll succeed, even if they try something as stubborn as running Dart alongside Javascript in Chrome.
There simply isn't a path to ubiquity for Dart, and if there were it's not the only language on it.
- davidstalnaker 13y agoIn what way is Dart "so far behind" CoffeeScript?
- Helianthus 13y agodeveloper mindshare. Check tag count for questions on SO; 4500 for CoffeeScript, 1500 for Dart. Not to mention the violent revulsion many people (myself included) are expressing in this topic.
- eco 13y agoThat's not a very good metric. CoffeeScript is twice the age of Dart.
- Helianthus 13y agoFair point; I was trying to get github numbers and got sidetracked.
- cromwellian 13y agoBy that metric, GWT blows away CoffeeScript with ~15,000 questions on SO. Are you sure you want to use that metric?
- Helianthus 13y agoPoint was to compare compile-to-javascript languages.
- spankalee 13y agoUh, GWT is a Java-to-JS compiler. On that note, Java has 508,338 questions on StackOverflow, which crushes CoffeeScript, /especially/ with those 15,000 GWT questions ;)
- Helianthus 13y agoOh, interesting. Is it really a standalone transpiler or is it a set of tools? As someone else pointed out, SO isn't a great metric, but finding github activity by language seemed to take more time than I was willing to invest.
- spankalee 13y agoNo metric will be great right now because Dart is so new compared to CoffeeScript. CoffeeScript 1.0 was released 3 years ago. Give us a chance to get 1.0 out the door :)
- rdtsc 13y ago> Not to mention the violent revulsion many people (myself included) are expressing in this topic. Immaturity seems like a good explanation of that effect
- Helianthus 13y agoNot your best work.
- rdtsc 13y agoI just let Occam do the dirty work for me sometimes.
- Helianthus 13y agoOh don't be so simple. :P
- spankalee 13y agoYou have it backwards. There's no reason for browsers to choose CoffeeScript or TypeScript because they do not change the semantics of JavaScript which make it hard to optimize for. There really isn't anything for a browser to adopt with one of those languages, other than a small translation to JS. Dart is fundamentally different in that it was designed for speed (as well as toolability and readability) and by directly supporting Dart a VM can make many more optimizations than a JS VM can. The Dart VM is already 1.5-2x faster than JS in some cases, while being _much_ younger.