title: How would you migrate from PHP to Hack?
body: <p>Facebook have introduced a new programming language, which looks mostly like an extension to PHP. They've called it <em>Hack</em> and it's running on their HHVM engine.</p>
  
  <p>After seeing their website and reading a bit about it, I wondered how fluid a migration from <em>PHP</em> to <em>Hack</em> could potentially be.</p>
  
  <p>Let's base this discussion around a web application already deployed to a LEMP or LAMP stack.</p>
  
  <p>Some of my initial thoughts and list of actions include:</p>
  
  <ul>
  <li>How do I run both PHP and Hack in the process of migrating the code base?</li>
  <li>Migrate from nginx/Apache to HHVM</li>
  <li>Migrate code base iteratively</li>
  </ul>
  
  <p>So, how would you approach this?</p>