title: What changes would have to be made to JavaScript to make it compilable to binary?
body: <p>What changes would have to be made to JavaScript to make it compilable. I don't mean to make into executable that still relies on interpreter - I mean so that it compiles into binary in the way that C compiles.</p>
  
  <p>I expect the prototypal inheritance might be an issue - but I don't know.</p>
  
  <p>Also, I am pretty sure that <code>eval</code> would not be possible (or desired).</p>
  
  <p>Is there anything out there that is trying to do something like this?</p>
  
  <p>Is it technically achievable?</p>
  
  <p>Could JavaScript (with some small modifications) be used as to create efficient programs?</p>
  
  <hr>
  
  <p><strong>EDIT</strong></p>
  
  <p>I am specifically looking for something like what <code>RPython</code> is to Python - but for javascript.</p>
  
  <p>It also appears that dynamic typing would be difficult/impossible for a compiled language as I want.</p>