3 ms·
I was pretty excited for Dart before I found out it could be compiled into javascript. Is this a superficial feature, or is Dart built with this capability in m
by Kequc 13y ago
I was pretty excited for Dart before I found out it could be compiled into javascript. Is this a superficial feature, or is Dart built with this capability in mind? I was really hoping for a replacement entirely.
- btian 13y agowhy does it have any effect on if people should be excited about Dart? You can compile C++ to C but that doesn't mean they're the same language.
- Kequc 13y agoBecause if all you're looking for is a different way to write javascript then we already have coffeescript for that. A low level programming language that can be compiled into a lower level programming language, like c++ and c. Is not on par with compiling into a scripting language.
- rayiner 13y agoC and Java and god knows what else has been compiled to Javascript, so I'm not sure I see what you're point is.
- Kequc 13y agoI am skeptical of Dart's utility since it is limited to what Javascript is capable of. At the same time I lament about how tired I am of javascript. What I'm saying isn't difficult to understand at all you're just being dickish.
- tree_of_item 13y agoJavaScript is turing complete. That's not a very meaningful limit. You seem to be implying Dart's semantics are influenced by JavaScript's because it compiles to it, but that's not the case. It's true for CoffeeScript because CoffeeScript doesn't try to add semantics to JavaScript, it's just a syntactic translation. Yes, there is an aspect of "works best in Chrome" performance-wise, since Dart VM will be faster than dart2js, but if you were sold on Dart before hearing about dart2js, I don't know why that would make you change your mind. You were hoping for a JavaScript replacement, and Dart is exactly that. Compiling to JavaScript is just something to ease the transition.
- Zikes 13y agoThe idea is that it would be a native-run replacement that any browser is able to implement, but can run Javascript as a backup for those browsers that do not support it.
- lnanek2 13y agoIt would be useless if it couldn't, since then sites that use Dart instead of JS wouldn't run on most browsers.