Earlier quoted context omitted.
What IDE do people use for Hack?
Stay tuned. You'll hear more in due course. In the mean time, the open source release of Hack includes integration with both Emacs and Vim.
Hack: a new programming language for HHVM
61–70 of 422 posts
Re: Hack: a new programming language for HHVM
#62I'm the manager of the team that developed Hack, and I'm sitting here with some of the language designers. Happy to answer your questions.
Hi Bryan, I know most people know you from your prolific work on many great Haskell libraries ( Criterion, Attoparsec, Aeson, ...). Did Haskell have any role in the development of Hack? Looking at the code base it seems like the type system is primarily written in ML, what made the team decide to use OCaml over Haskell?
Re: Hack: a new programming language for HHVM
#63I'm the manager of the team that developed Hack, and I'm sitting here with some of the language designers. Happy to answer your questions.
public string $x = '';
instead of
public $x:string = '';
It seems inconsistent to me, probably because I've used AS3/Haxe.
Re: Hack: a new programming language for HHVM
#64Re: Hack: a new programming language for HHVM
#65I'm the manager of the team that developed Hack, and I'm sitting here with some of the language designers. Happy to answer your questions.
My impression is that Facebook mostly write their stand-alone services in Java or C++, and are using PHP only where they're "stuck" with it due to a large existing code base. Do you think Hack is a good language to start a new project in, compared to non-PHP languages? Are you using Hack for things besides the main web page?
Yeah, I think Hack is a good language to start a new project in. For as much flak as PHP gets, there are actually a lot of good things about the language. The fast development cycle -- edit php script, refresh -- is something amazing that you don't get in a lot of statically typed languages, which usually have a compilation step. The crazy dynamic things you can do also occasionally have their place, though it's certainly easy to shoot yourself in the foot.
On the other hand, a lot of the time you want the safety that strong static typing can give you. Even just the null propagation checking can immediately find tons and tons of silly little bugs without even running the code, and ensure that the code stays consistent as a "mini unit test" if you will.
Hack hits the sweet spot of both. Wiring the Hack typechecker into vim was really revolutionary for me -- having both the immediate feedback of the type system for all the silly bugs that I was writing, along with the fast reload/test cycle from PHP, is great.
Re: Hack: a new programming language for HHVM
#66I'm the manager of the team that developed Hack, and I'm sitting here with some of the language designers. Happy to answer your questions.
How do you protect from type errors when a value crosses from the untyped to typed fragment? Do you use contracts?
Re: Hack: a new programming language for HHVM
#67I wish these extensions came by way of the PHP core rather than a language that is superimposed on PHP. However, this is awesome. Is this a layer that is superimposed on PHP that falls back to the default interpreter for unimplemented features or is this a fresh implementation. I suppose my question is, how reliable is this. Are the core PHP bugs going to manifest here? If a bug gets fixed on core PHP, will hack be l…
Well where is PHP core then? to my knowledge while PHP 5 was a huge step forward, PHP core did little to fix PHP stupid design flaws,for the sake of backward compatibility.
We are in a new era, libraries are more and more decoupled,so they are easy to write or rewrite,backward compatibily shouldnt be an issue when libraries are well versioned and tested across different versions.
And Wordpress folks dont care about PHP.next.Why bother with them?
Re: Hack: a new programming language for HHVM
#68I'm the manager of the team that developed Hack, and I'm sitting here with some of the language designers. Happy to answer your questions.
Why use public string $x = ''; instead of public $x:string = ''; It seems inconsistent to me, probably because I've used AS3/Haxe.
Re: Hack: a new programming language for HHVM
#69Naming a language hack ... very poor choice. Searching for Go, C, C++ is already bad, now you can add hack to the list.
Hacklang. There, just like go, problem solved.
> • [ X ] The name of your language makes it impossible to find on Google”
appending "-lang" certainly gives you better results but still does not find you a lot of un-tagged good blog posts
Re: Hack: a new programming language for HHVM
#70Earlier quoted context omitted.
What IDE do people use for Hack?
Perhaps Sublime Text 2?
Feel free to send us a pull request: https://github.com/facebook/hhvm/tree/master/hphp/hack/edito...