title: How does the dart javascript compiler (dart2js) work?
body: <p>Dart runs in its own Dart VM, but you can compile it to modern optimized JavaScript. But how does that work? Are there any articles or papers online which explain that process?</p>
  
  <p>I am wondering if that is an easy straight forward matching element to element, only time consuming to develop, process or are there some elements/aspects of Dart which could not be compiled to JavaScript.</p>
  
  <p><a href="http://www.dartlang.org" rel="nofollow">http://www.dartlang.org</a></p>
  
  <p>EDIT:thx for your 2 answers. The point is, that i told a collegue of mine about dart and that dart can be compiled to JavaScript. He accepted that it could be compiled to JavaScript but it would result in mumbojumba code and will only work for simple stuff. In the end he said: '''ok, explain me. how is this compiling going to work on nontrivial code?'''</p>
  
  <p>That's why i am asking. I was hoping that there is some material online i could link him.</p>