PHP finally ushered in its official language specification
As a scripting language, PHP has been playing a key role in web development, and now it is beginning to work on semantic and grammatical aspects to reduce differences.
Although the PHP scripting language has been around for about 1995 years and occupies an important place in web development, it has not had its own formal language specification-providing only a wide range of user documentation. But the adverse situation is turning.
Led by Facebook, a draft specification has been posted on GitHub to provide a complete definition of PHP language semantics and syntax.
"The next major version of PHP-that is, PHP 7--is under development-to ensure that it is fully consistent with existing PHP scripts and, most importantly, to understand everything about the use of the engine," said Sara Golemon, who specializes in the development of the code, Facebook. "In addition, due to the introduction of alternative implementations such as HHVM, it is also important to keep the various differences at a minimum, which requires an in-depth understanding of the features required by a well-functioning engine." ”
The PHP team included the PHP language creator Rasmus Lerdorf and the tool supplier Zend Technologies CEO Andi Gutmans, which oversees the normative development work. Changes to the specification require the participant to have a php.net account.
The HHVM project, officially named Hiphop Virtual Machine, was built by Facebook, designed to make PHP code run faster. The specification in this plan will ensure that HHVM becomes an implementation that exactly matches PHP, Golemon explains. "For example, the conformance suite we publish in the specification can show the number of failures that occur with HHVM in the edge case." With this kind of information, we can make HHVM and php more tightly bound. ”
The next step in specification development is to improve the presentation, refine the edge, and strengthen the conformance suite. "In the long run, this document will take the same development steps as the PHP implementation to provide documentation for the new syntax in a formal way, such as the recently-emerging POW operators, variadics, and Splat," Golemon points out.
Developers who use this language have been working to improve their application performance in real-world environments. In the lab, these changes have reduced the number of device instructions required for application execution, which in turn reduces memory usage.
Portal (GitHub):
Https://github.com/php/php-langs ... c/php-spec-draft.md
http://www.bkjia.com/PHPjc/859173.html www.bkjia.com true http://www.bkjia.com/PHPjc/859173.html techarticle PHP finally ushered in its official language specification as a scripting language, PHP has been playing a key role in web development, and now it is beginning to make a difference in semantics and grammar for reducing differences ...