3 ms·
Dart can be run in both modes. Chrome (dunno if enabled by default and/or in stable) contains a Dart VM, so you "only" need to transpile into JS for non-Chrome.
by xrstf 12y ago
Dart can be run in both modes. Chrome (dunno if enabled by default and/or in stable) contains a Dart VM, so you "only" need to transpile into JS for non-Chrome.
The main problem I had with Dart was [a year ago] that using existing JS libraries like jQuery wasn't as seemless as I would liked. So that would be a reason against Dart, if Angular wants to make that aspect easier.
Haven't looked at TypeScript's interop with JS. I got frightened by the name Microsoft and the fact that they only had a huge language spec PDF and not a single tutorial or something easier to digest.
- danellis 12y ago> Dart can be run in both modes. In production, it's only ever transpiled to JavaScript. > Chrome (dunno if enabled by default and/or in stable) contains a Dart VM, so you "only" need to transpile into JS for non-Chrome. Not the real Chrome. A version of Chromium that you can use to make the development cycle smoother. When you deploy, you still transpile to JavaScript for all browsers.
- jdmichal 12y ago> Haven't looked at TypeScript's interop with JS. All JavaScript is valid TypeScript. This was one of the founding tenants for TypeScript. So interop is "just use the JS". You can optionally also provide a binding file that tells TypeScript about the JS code so that it can perform compile-time checking on calls. There is a repository of these bindings for common libraries called DefinitivelyTyped [0]. > ... They only had a huge language spec PDF and not a single tutorial or something easier to digest. Not sure when you originally looked, but there is now a tutorial [1], handbook [2], and samples [3] in addition to the language spec [4]. [0] https://github.com/borisyankov/DefinitelyTyped https://github.com/borisyankov/DefinitelyTyped [1] http://www.typescriptlang.org/Tutorial http://www.typescriptlang.org/Tutorial [2] http://www.typescriptlang.org/Handbook http://www.typescriptlang.org/Handbook [3] http://www.typescriptlang.org/Samples http://www.typescriptlang.org/Samples [4] http://www.typescriptlang.org/Content/TypeScript%20Language%20Specification.pdf http://www.typescriptlang.org/Content/TypeScript%20Language%...