TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Google Dart target: Chrome soon, other browsers someday

29 pointsby daw___over 11 years ago

14 comments

_greim_over 11 years ago
I&#x27;m sad that it&#x27;s a Google-only thing and that all the other browser makers are balking. Purely in terms of the merits of the language, it strikes me as leaps and bounds better than JS.<p>I&#x27;m also a fan of Mozilla&#x27;s asm.js. It seems to have so much potential. As a full-time JS dev, I guess I&#x27;m easily impressed. I just wish the browser makers could get their heads together and agree on some way forward, instead of incrementally polishing the JS &quot;turd.&quot;
评论 #6922822 未加载
评论 #6923023 未加载
ChuckMcMover 11 years ago
Wow.<p>&quot;We have a language that works only&#x2F;best in our browser, features that work only&#x2F;best in our browser, a dominant OS which requires automatically includes&#x2F;installs our browser.&quot;<p>I guess it was a good strategy for Microsoft while it lasted (and still pays benefits) so they might as well copy it. It will be funny if the EU requires Android phones &#x2F; tablets to give you a &#x27;browser choice&#x27; when you first turn them on &#x2F; install them.
评论 #6923050 未加载
评论 #6923130 未加载
BrandonSmithover 11 years ago
Dart could be the glue between Chrome and Android.<p>* Sundar Pichai (Google VP) oversees both Chrome and Android.<p>* Google is experimenting with ART (LLVM-backed AOT runtime) for Android. This could be modified to run Dart directly.<p>* Angular was recently ported to Dart.<p>* Polymer is Google&#x27;s Web Component polyfill until browsers catch up.<p>* Android layouts and views are essentially a form of components. (Possibly mapped to Web Components???)<p>I could see a singular development vision of Angular + Dart + Web Components where Chrome apps are Android apps and vice versa.
salientover 11 years ago
Do we really need another Java-like language? I would think since web development is often an &quot;entry level&quot; for many beginning programmers, we need languages with prettier syntax and easier to grasp, something like Python.
评论 #6922770 未加载
评论 #6922763 未加载
评论 #6922853 未加载
评论 #6922769 未加载
评论 #6922788 未加载
fidotronover 11 years ago
Mozilla&#x27;s take on Dart really strikes me as an emotional and not technical reaction. They may have a valid point about PNaCl, but Dart presents the opportunity to do a managed transition from JavaScript to something better. Having someone for whom JS is their baby as your CTO is going to make letting go very difficult.
评论 #6923062 未加载
评论 #6923035 未加载
评论 #6923579 未加载
JonSkepticover 11 years ago
It probably won&#x27;t be successful, but I&#x27;m excited. I can&#x27;t stop dreaming of a future devoid of javascript.
kyrraover 11 years ago
Google is a large company that is pushing various tech from a lot of different angles. You have the V8 team that has done a lot of great work for Javascript speeds. Members of V8 also were part of the EMCAScript committee to help move the language forward. With Google&#x27;s focus on Dart, some of those V8 members have moved on to Dart.<p>Google has also been doing a lot of work with the Shadow DOM, Polymer, and lots of other fun tech.<p>Dart is an experiment to see if they can create a better scripting language for the web. Who knows if it&#x27;ll work out, but it&#x27;s nice to see a company trying something a little out there.<p>I&#x27;m sure creating large web apps like GMail or Docs in Dart would be much more pleasurable than doing it in Javascript. For smaller scripts just to do simple form stuff, it probably won&#x27;t be any better (but hopefully not worse than Javascript today).
CmonDevover 11 years ago
I can only hope that one day the tyranny of JS and HTML will be broken.
评论 #6922844 未加载
评论 #6922748 未加载
评论 #6922908 未加载
stcredzeroover 11 years ago
<i>Specifically, he pointed to problems with having two separate virtual machines, both trying to clean up computer memory through a process called garbage collection and both trying to control Web page elements through the browser&#x27;s Document Object Model (DOM) interface. &quot;Two runtimes sharing the DOM adds both bug habitat and a performance tax,&quot; Eich said. That&#x27;s an objection Apple has raised, too.</i><p>Why have two garbage collectors sharing the DOM? Couldn&#x27;t one construct a bridge that synthesizes Javascript under the covers to access the DOM and also maintains a reference for the separate Dart GC for the Dart object trying to access the DOM? This would mean that the native Javascript GC wouldn&#x27;t have to be aware of Dart at all, apart from the presence of some special Javascript objects that don&#x27;t get collected by it. Then, when the Dart side is done, and the Dart objects go away, remove the &quot;special&quot; flag from the JS bridge objects and let them be collected normally. (There are a few more wrinkles than that, of course.) Performance would be slower for non-native Dart VMs, but it should be possible to leave Javascript GC mostly untouched.
voidrover 11 years ago
As a web developer I have to say: a 2x increase in JS performance is insignificant.<p>If I would profile most web apps, JS execution wouldn&#x27;t account for much of the processing time, the DOM interactions are order of magnitude slower.<p>Users would barely notice a 2x increase in JS speed.<p>Also the snapshotting could be done with JS too if Google would be really concerned about startup time.<p>I would say that at this given moment in time the performance argument is BS, the real reason is that most of Google are Java developers that probably don&#x27;t like JavaScript and they want something that looks more like Java, because that&#x27;s what they are used to.<p>JavaScript has it&#x27;s issues, however I think that TypeScript the superior approach towards these kinds of problems.
liviuover 11 years ago
We wait first for Google to put Dart into Android development... then we&#x27;ll take a look at him.
manishsharanover 11 years ago
I have always wondered whether an average Javascript programmer could generate ninja like javascript code using Dart ? If so, I would gladly invest the time to learn Dart.
评论 #6923409 未加载
TheAceOfHeartsover 11 years ago
I saw some benchmarks showing that Dart was slower than JavaScript... Is there truth to this?
评论 #6922775 未加载
评论 #6923511 未加载
andylover 11 years ago
&quot;Works best in Chrome&quot;<p>Microsoft tried this with ActiveX. Deja-vu, all over again. <a href="http://technologizer.com/2010/09/16/the-unwelcome-return-of-best-viewed-with-internet-explorer/" rel="nofollow">http:&#x2F;&#x2F;technologizer.com&#x2F;2010&#x2F;09&#x2F;16&#x2F;the-unwelcome-return-of-...</a><p>In Google&#x27;s words: &quot;The goal of the Dash (Dart) effort is ultimately to replace JavaScript as the lingua franca of Web development on the open Web platform&quot;<p>I will never support Google&#x27;s walled garden. Dart is a pathogen.
评论 #6922721 未加载
评论 #6923497 未加载
评论 #6922747 未加载
评论 #6922927 未加载
评论 #6922724 未加载