TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Dart's Future

14 点作者 Pharohbot超过 10 年前
What do you guys think about Dart's Future as a programming language of the web? I see a very bright future down Dart's long road but Im also kind of worried about many of the ignorant people's views about Dart(IE Java-like, made by Google, competing with JS(which it isnt)). if Dart is implemented to Google Chrome(Which is actually closer than you think) it will be a huge turning point for Dart and hopefully other browser vendors will follow the lead. There is nothing but good with Dart, its 2x faster than JS, it outperforms V8 JS engine and it has many packages being updated and created every day(see https://twitter.com/dartcode for automatic pub package updates). It wont replace JS, but it will be one of the big players(as it may be already) in web development. What do you think?

5 条评论

xpto123超过 10 年前
Unless other browsers support it via browser plugins, it could turn out to be a dead end, Google is betting on mutiple horses here because themselves cannot predict this.<p>Its also possible to compile Dart to Js and use it as an improved language for web development.<p>But the JS VMs are already very fast these days, so being the performance of Js VMs acceptable there is not much reason to go from Js to Dart.<p>I have the impression that Ecmascript 6 and Web standards like components, templates, imports and shadow dom are the future of the web, and not an alternative language.<p>All browsers are investing very heavily on that, in 2015 we should probably start having the first Ecmascript 6 compliant browsers.<p>ES6 seems to be the backwards compatible path of least resistance going forward, and that is the path that usually succeeds.
josteink超过 10 年前
Dart is a Google-only dead end.<p>Even if Google supports it in Chrome, the other browser wont bother supporting it, and like spankalee says, it will then become another &quot;runs best in Chrome&quot; thing, and cement Chrome&#x27;s position as the new IE.<p>I&#x27;m not sure if they want to do that, but Google&#x27;s (mis)direction as of late means I&#x27;m not going to leave out anything.
评论 #8665571 未加载
评论 #8641976 未加载
horrido超过 10 年前
Google is sending out a rather confusing message: use Dart; use AngularDart; use JavaScript (AngularJS); use AtScript (AngularJS 2.0). How long before we see: use Golang? (There&#x27;s already a Go2JS compiler.)<p>Also, if Chrome is the only browser to incorporate the Dart VM, the &quot;works best in Chrome&quot; attitude will annoy non-Chrome users, who will feel they&#x27;re treated as second-class citizens. You hope other browser vendors will follow the lead? Dream on. Politically, it&#x27;s not going to happen. Microsoft, Apple, and Mozilla will NEVER accept Dart.<p>I think Dart is an okay language. I might even use it someday. But I can think of alternative languages that are a lot more pleasant to use, eg: <a href="https://medium.com/@richardeng/js-christ-im-using-js-1d1d0864d33e" rel="nofollow">https:&#x2F;&#x2F;medium.com&#x2F;@richardeng&#x2F;js-christ-im-using-js-1d1d086...</a>
评论 #8669368 未加载
jack1011超过 10 年前
Well, i think dart is a great language, with many features. But I recently tried to build an app with it, and the real down side is, that every library out there needs to be ported to dart and maintained. Yes there are many updates on the libraries, but they mostly update to versions which are lot older than the ones released in Javascript. (e.g. Polymer: 0.5.2) The hard part is therefor to maintain the libraries of dart while the JS projects move on very quickly. So if u use dart you always have old libraries that will be used while there might be more possibilities with the js ones.
spankalee超过 10 年前
I&#x27;m on the Dart team, so I&#x27;m extremely biased here :) but I think Dart has a very bright future.<p>Many people seem to think that better performance is the main reason to choose Dart, which can be viewed in a positive or negative light, because a Chrome with the Dart VM could be great because of the performance gain, or terrible because it&#x27;s bringing a &quot;runs best in Chrome&quot; world.<p>So I like to say that better performance is just one reason to choose Dart, but that Dart brings many benefits over other languages (not just JavaScript) and so appeals to different developers for different reasons. A few examples:<p><pre><code> * Dart is very toolable and has a great IDE experience in a number of IDEs already: IntelliJ&#x2F;WebStorm, Eclipse, the Dart Editor, Sublime, etc. * The semantics are much more sane and predictable than JavaScript: objects are closed; Dart has class-based inheritance with interfaces and mixins; type coercion is eliminated and thus predictable; arrays are real arrays, bound checked and can&#x27;t have holes; &#x27;this&#x27; is lexically bound; accessing a undefined property throws an exception rather than propagating undefined through your program; there are no top-level statements, so startup is predictable; and on and on... * Dart&#x27;s syntax combined with interfaces allow for really great libraries, and Dart&#x27;s core libraries and dart:html take full advantage of that. [] is separate from property access, so Lists, Maps, and Sets have nice-to-use interfaces. There can be multiple implementations of List, Map, etc. It&#x27;s possible to write delegate&#x2F;wrapper&#x2F;proxy classes, etc. Dart&#x27;s core libraries are a joy to use. * Static type warnings and checked mode helps developers write correct programs. Type checks really do find errors early and save users time. We see this internally. </code></pre> The syntax is much lighter weight than Java. While people claim it&#x27;s Java-like just because we have types (though they&#x27;re optional), that&#x27;s really a nonsensical argument - Dart&#x27;s more like Smalltalk :) Dart programs are massively less verbose than Java, and I cringe every time I have to write Java code even a little.<p>So we&#x27;re seeing increased usage internally even though the VM isn&#x27;t in Chrome yet. The other advantages are huge and have enabled teams to deliver new apps at very fast rates. They&#x27;re mostly internal for now, but we&#x27;ll hopefully see more externally visible apps soon. Also, we&#x27;ve just begun the era of server-side Dart in earnest. That&#x27;s a big area for expansion that will feedback on the web usage.
评论 #8641925 未加载
评论 #8639541 未加载
评论 #8643138 未加载
评论 #8641036 未加载
评论 #8655353 未加载