News for hackers. Stuff that matters.
Re:HHVM 4.0.0 by wink on Tuesday February 12, 2019 @05:59AM (#19142534)
I'm not sure anyone is debating that in the terms of PHP7 vs HHVM. Hack has been a different language for quite some time and that is exactly the problem. The more it diverged from PHP the less sense it made for most people to go that direction.

Also on a personal level I'm really not sure why anyone would want to go that direction. Of all the problems people usually say they have with PHP, just fixing the type system is not even close to #1. If Hack then really is a different language and you don't like PHP, why not migrate to something completely different?

Re:HHVM 4.0.0 by pushtheenvelope on Tuesday February 12, 2019 @12:20PM (#19145417)
Hack layered a sane type system on the existing runtime, but the changes above are all about runtime logic. These type coercions lead to many subtle bugs in PHP programs.

What this demonstrates is that one can have a much safer programming language while keeping the key attributes of PHP that make it great: each web request having isolated state, concurrency model, and programmer workflow (ref. https://slack.engineering/taking-php-seriously-cf7a60065329).

Yes, I'm not necessarily advocating for any web developer to start building in Hack now -- mainly because it lacks PHP's rich ecosystem. The good folks working on the PHP language may be interested in these changes though.

Re:HHVM 4.0.0 by pushtheenvelope on Tuesday February 12, 2019 @12:27PM (#19145505)
> If Hack then really is a different language and you don't like PHP, why not migrate to something completely different?

For server-side web programming, what shall one adopt?

Python and Ruby are great dynamically-typed languages, with rich ecosystems, but don't have any type system. This makes maintenance, and evolution of the codebase, tricky in the long run.

For languages that do have type-systems: Go's is a bit too simplistic, while Java/Scala have robust type systems but are rather slow and don't hit the programmer workflow sweet spot.

There's no silver bullet around.

Re:HHVM 4.0.0 by luuio on Tuesday February 12, 2019 @12:33PM (#19145574)
TypeScript? Python 3 with type hint? .NET core?