I am baffled as to why you'd build your castle atop a crumbling foundation. I have wondered why FB didn't use a proper language with proper typing to begin with. I mean, I "understand" logistically: they already had a giant codebase in PHP, migrating a codebase is expensive, and it's difficult to hire and train 1000s of hackers in e.g., OCaml. (They do have some OCaml people, but they are outliers. OCaml was my favor…
Hack: a new programming language for HHVM
101–110 of 422 posts
Re: Hack: a new programming language for HHVM
#102I am baffled as to why you'd build your castle atop a crumbling foundation. I have wondered why FB didn't use a proper language with proper typing to begin with. I mean, I "understand" logistically: they already had a giant codebase in PHP, migrating a codebase is expensive, and it's difficult to hire and train 1000s of hackers in e.g., OCaml. (They do have some OCaml people, but they are outliers. OCaml was my favor…
As far as I can tell they are using local inference, which is basically just unification. The set of possible types seems pretty narrow[1] as well so I don't see much room to go wrong. You're right that there is a lot of mathematical theory about type systems and that inference can easily go wrong (be undecidable) but that is mostly for type systems that try to do inference for higher rank polymorphism and other thin…
Re: Hack: a new programming language for HHVM
#103I'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 and thanks, Are you planning a Windows build ? do you think Hack could replace all PHP stacks (PHP cloud stacks , not talking about shared host wordpress toys) in a 5 years time frame ? What do you think about the current state of PHP? what would you tell PHP core devs about that? Does an async frameworks like React runs with Hack? What can you answer to people that are concerned that it is Facebook who is develop…
Yes. auroraeosrose is working on it (the same person who did the port for php) https://github.com/auroraeosrose/hhvm/tree/win32_start
Re: Hack: a new programming language for HHVM
#104I'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.
Is there any interest in adding named parameters to Hack?
Re: Hack: a new programming language for HHVM
#105Earlier quoted context omitted.
The HN crowd seems to dislike (or despise perhaps?) PHP, but it's really not that bad. Yes it has a lot of warts, but it has a lot of things that make it nice for web development. a) try your new code by saving in your editor, and hitting reload in your web browser. b) it's very approachable. People who only know HTML and CSS can be expected to do a little bit of PHP work to integrate their changes. If you setup the…
a) WTH? I hope you do not test your code in production. If you don't that feature (a ide that constantly compiles your code) is a common feature. b) Theorem: Leting your web designers program is a way worse than letting your programmers do web design. c) Every simple project can become complex at some point. Facebook certainly is.
b) Not everyone has programmers. That was his point
Re: Hack: a new programming language for HHVM
#106I am reminded of http://en.wikipedia.org/wiki/Greenspun%27s_tenth_rule.
Facebook is now at sufficient scale where they are reimplementing Common Lisp on top of PHP.
Re: Hack: a new programming language for HHVM
#107Re: Hack: a new programming language for HHVM
#108Earlier quoted context omitted.
I'd rephrase the question to be "Would Facebook be Facebook without PHP?"
I don't see why not. It's possible to have done it any any mainstream language.
Re: Hack: a new programming language for HHVM
#109Re: Hack: a new programming language for HHVM
#110This rubs me the wrong way. > Thus, Hack was born. We believe that it offers the best of both dynamically typed and statically typed languages, and that it will be valuable to projects of all sizes. In which way does it offer the benefits of dynamic typing? The entire point seems to be to abandon dynamic typing, which is fine, but not what that sentence says. I'm guessing, for example, you can't really do meta-progra…