by lansing · 14y ago · 0 comments
The justification for why it matters seems a bit "off" to me:
For perspective on why this matters, consider that many Facebook engineers
spend their days developing PHP code in an endless edit-reload-debug cycle.
The difference between 8-second and 5-second reloads due to switching from
hphpi to the hhvm interpreter makes a big difference to productivity,
and this improvement will be even more dramatic once we enable the translator.
Big leap of intuition follows, bear with me:Clearly there are some very talented engineers working at Facebook, as evident by this project. On the other hand, apparently a large number of Facebook engineers are spending all their time in a run-debug cycle, trying to "make this darn thing work," and the engineers with talent are being used to incrementally improve the mediocre coders' lackluster productivity.
Guys, if three seconds in compile overhead makes such a difference in your productivity, maybe you should think for a few seconds about code correctness before you hit the compile button.
Personally, I think the fewer times you have to go around that wheel, the better.
I don't want to diminish the technical excellence of the achievements touted, and as a coder of primarily compiled languages, I would welcome any such improvements in the compilers I use.
However, my larger point stands-- which is that if a few seconds shaved on the run-debug loop is really a big deal for your total productivity, it means you're looping too much.
Trial and error is a fine way to learn a language, or to debug truly mysterious issues, such as those that exist outside of the abstraction layer you're working in. But in my opinion it's a poor way to work. It means that you don't understand the code you're writing.
One of the other annoyances we had (I think its addressed in the note?) is that until now the interpreter (on our dev machines) and the compiler (hphpc in production) occasionally differ in small, occasionally painful ways. Unifying our development and production environments will eliminate another potential source of bugs.
Also: Tight loops don't imply a lack of understanding. Often times when you're trying to get the CSS on a page just right (across all browsers) it requires quick iteration, even if you do understand CSS well.
Of course, you can do static analysis to some degree which would cut down that time even further, but you may also get false alerts or miss some issues.