According to foreign media reports, Facebook released a new programming language named & ldquo; Hack & rdquo; on Thursday, claiming that the language will make code writing and testing more efficient and fast. Facebook has been using this language within the company for more than a year and will now officially release it in open source form. Hack is developed by Facebook and integrates dynamic language (such
According to foreign media reports, Facebook released a new programming language named "Hack" on Thursday, claiming that the language will make code writing and testing more efficient and fast.
Facebook has been using this language within the company for more than a year and will now officially release it in open source form.
Hack is a programming language developed by Facebook and combined with dynamic language (such as PHP) and static language (such as C. Generally, when programming in a static type language, developers will know where an error occurs before the program is run. In the current programming environment, dynamic language runs until the program fails.
alpha();}
Facebook is a family keen on using PHP, but Bryan O 'Sullivan, head of the Hack team, also pointed out that since many developers are developing many different projects, it makes sense to be able to capture errors before running the program. This makes the developer's programming process more efficient, which is of the same significance as making the program run more efficiently.
As a result, some senior Facebook engineers came together to develop the Hack language. Facebook has been using PHP and Hack internally for a year, and now has begun planning to port code to Hack as much as possible. Hack has no substantial impact on the running speed of the code.
As for Facebook's open-source Hack practices and questions about who will actually use the language, Jack said: "Maybe many people will think that this is only important for large companies, but in fact, small teams and individual developers can also use Hack and benefit from it. We believe that most people will eventually benefit ."