Facebook launches programming language for developers
A few days back, Facebook has launched a programming language “Hack”. It has been released to speed up the development process. A team of engineers was working over the project for the last couple of years, now proudly announces the tool for modern day Facebook app development.
As the new programming language claims, developing, testing and debugging apps for the Facebook will be easier and faster. Hack has been designed for Hip-Hop Virtual Machine (HHVM). The open source virtual machine executes Hack and PHP code. The just-in-time (JIT) approach used by helps it to achieve better performance while keeping the development flexibility of PHP. The HHVM is quickly becoming a favorite platform for PHP developers. The reason is that HHVM can run (even after its minor incompatibilities) top 20 GitHub PHP frameworks. The engineering team that developed HHVM has reiterated its objective to be able to run all PHP code existing out in the wild.
While CSS is about to replace JavaScript, Facebook’s combo of HHVM and Hack has promised to speed up the application development. Developers have faced huge problems while testing and debugging web apps. The reason is simple, they always have to follow a set of steps. Editing code, uploading, testing and debugging and repeating it again and again until it fits. Before Hack, it was never easy to test and debug web apps, and now this can be streamlined with Hack.
As Hack has been launched as an open source project, it is up to the PHP community to make it living up to the expectations. The thing we expect to see is an easy migration and support on other PH virtual machines and parsers. Another aspect of the expectations is built around competing engines and the possibility of competition driving performance improvements. In order to share the code and migration between cloud services and providers, support for Hack on multiple run-time will be crucial.
Hack is released, let’s hope it stays.
I have to say I don't think this is a good article and I think it's important to write good articles on Hack and HHVM because a lot of PHP devs should be skeptical about it regardless of whether they write apps for facebook or not.
ReplyDeleteHack is potentially problematic to adopt because it's a fork of the PHP language which is not supported outside of HHVM, whilst it adds some nice constructs and implements them well, it should still be approached with caution and the time taken to learn and integrate these features in a developers repertoire should be balanced with how much the dev will actually write code for HHVM.
Debugging is not a 'huge problem', writing and testing web apps is not difficult. Yes there are steps to follow and it's just the process of debugging. You can make your life easier by:
a) Using an IDE that supports all modern PHP features like type hinting
b) Using an IDE that supports real-time PHP code validation and checking
c) Build and test everything locally
d) Use xdebug (or similar) and integrate with you IDE
Hack wont change the way you debug your code. You will still need a debugger to step through your code and find your bugs:
http://docs.hhvm.com/manual/en/debugger.about.php
HHVM might be able to compile and execute the top 20 Github PHP framework projects but I don't see how this correlates to platform popularity with PHP devs.
I don't know how to approach the statement that 'CSS is about to replace Javascript' and, even if I did, how it relates to Hack and PHP. Unless you are claiming that Hack will replace PHP in the same way that CSS isn't going to replace Javascript.
If you are already heavily invested in Facebook development then presumably running HHVM and learning Hack is a no-brainer, you already know that things change quite frequently and this wont be the last time you have to ditch what you learnt a few years back.
If you are a PHP developer thinking 'hey, my app will work faster if i migrate all my code to Hack and switch to a host that supports HHVM' then do please take articles like this with a pinch of salt and spend some time understanding the trade offs.
Toby
ReplyDeleteشركة تنظيف بالدمام _شركة الأهرام المثالية
افضل شركة تنظيف مكيفات بالدمام
شركة تنظيف فلل بالدمام شركة الأخرام المثالية
شركة تسليك مجاري بالدمام شركة الأهرام المقالية
شركة تنظيف خزانات بالدمام شركة الأهرام المثالية
شركة تنظيف مجالس بالدمام شركة الأهرام المثالية
شركة تنظيف سجاد بالدمام شركة الأهرام المثالية
افضل شركة رش مبيدات بالدمام شركة الاهرام المثالية
شركة الأهرام المثالية شركة مكافحة حشرات بالدمام
شركة الأهرام المثالية للخدمات المنزلية