Analysis Of Hack Programming Language Developed By Facebook
In recent times new programming languages have been developed by companies such as Facebook and Google. While Facebook developed and champions the "Hack" programming language. Google develops and champoins the "Go" programming language. These are languages are said to come with new dimension of problem solving techniques.
For example the "Go" programming language developed by Google, is fronting a fiarly new concept of program execution called "Concurrent Computing". It is a form of computing in which several computations are executing during overlapping time periods. This hopefully will bring a whole new experience to the world of programming, and the way processors compute data. It is quite different from parallel programming which usually needs you having a dual processor that is aware to perform the parallel execution. But Go does it in a single processor allocating resources appropriately and running processes concurrently.
Hack on the other hand, is an off-shoot of the popular PHP programming language. Facebook is taking PHP and making it more strictly typed for variabes and parameters in functions too. Facebook is currently running Hack on its Facebook.com social networking service. But Hack does not run on common Apache or Zend server which we are accustomed to. A whole new processing technology and server; HHVM (HipHop Virtual Machine). Prior to this moment, PHP was interpreted (while mean the server runs every line of code and delivers it raw and processes request from the PHP code). But Hack is moving more to be of a compilation paradigm than the interpretation form which PHP works with.
Hack code is acutally compiled to an intermediary language which is what is even processed by the server. This in its sense makes Hack faster than PHP is execution. Though PHP codes can also be written in Hack which makes them interoperation, Hack comes with a difference in its own syntax.
<?hh
echo "Hello World";
Also unlike PHP, Hack does not mix with the client sides (HTML, CSS, Javascript). A special template engine will be needed to do that. An engine like XHP
Think PHP programmers should start looking into Hack, it looks very promissing with the new features embedded into it. Even PHP was an off-shoot of Perl, by Rasmus Leedhorf who in 1994 developed a newer and easer of developing his own websites.
most people run from having to learn new syntax. Except these new languages bring lots of new things and advantages to the table. i doubt i'd be interested.