5 ms·
So coincidentally I work at Facebook and know a bunch of these guys pretty well, but I don't actually interact with the Hack stuff at all (as I work in infrastr
by alexgartrell 13y ago
So coincidentally I work at Facebook and know a bunch of these guys pretty well, but I don't actually interact with the Hack stuff at all (as I work in infrastructure doing flash and network stuff, primarily). I recently played around with the Open Source hack stuff and I installed it on my VPS.
Has anyone else played with Hack in a productionish environment? I'm just wondering what deployments and stuff are actually looking like in the world outside of Facebook.
p.s. tutorial that really exposed me to hack is here: http://hacklang.org/tutorial http://hacklang.org/tutorial
- adamors 13y agoConsidering that you can convert PHP files to Hack by just changing the opening tag, I think it would be very similar to the way HHVM is used currently.
- alexgartrell 13y agoSorry, to be clear I'm more curious about how it's integrated with version control and how things like MVC are done. I really haven't got a clue. For that matter, are people mostly using HHVM via fast-cgi?
- adamors 13y agoOh I see. I think the best answer to your question is the Hack example site https://github.com/hhvm/hack-example-site https://github.com/hhvm/hack-example-site. It contains the source for the Hack site along with build instructions. Although it's not an MVC site, they do a lot of inline HTML ...
- kmavm 13y agoYeah, almost everyone in the real world is using it via FastCGI. People have a huge investment in the configuration and operation of their existing http server (nginx or apache).
- dan15 13y agoI work at Facebook as well, but mainly in JavaScript so I haven't done a lot of PHP either :) You could use a common PHP framework like FuelPHP, Laravel or Kohana. I'm not sure which frameworks are 100% compatible with HHVM, but I think they're all getting quite close to 100% (or may even be at 100% with the 3.0 release). It's fine to mix PHP and Hack in the one project, so you could use a PHP framework and use Hack just for your code.