Can PHP Script get back to Big Data?
PHP is widely known as an interpreted language. But with version 8 of PHP, the language received a Just In Time (JIT) compiler. According to the PHP folks at Zend, this JIT compiler could pave the way for more widespread use of PHP for big data and machine learning workloads.
PHP crushed the computer scene in the early 2000s when the scripting language gained popularity. A large number of web developers have adopted PHP to help them build Web 2.0 applications as part of the emerging LAMP (Linux operating system, Apache web server, MySQL database and PHP) stack (although the “P In LAMP could also refer to Python and Perl).
But adding the JIT compiler could create a script for a change in PHP usage patterns. That’s according to Matthew Weier O’Phinney, senior engineer at Zend (now owned by Perforce) and owner of Project Laminas (formerly Zend Framework).
“The JIT compilation will open up the possibility for PHP to move into the systems programming landscape, as well as to move into the machine learning and big data landscape,” he said during a recent webinar.
Adding the JIT compilation will dramatically speed up data processing speeds and response times for PHP applications, Weier O’Phinney said. Instead of waiting to see if a given script already exists in OPcache, then performing a number of steps to get it, parse it, compile it, and then run it, the JIT compiler ignores a number. of these steps and just run the script (if it exists in OPcache, that is).
“We don’t even need to compile the OPcode into machine code,” he says. “We’re just running the machine code, so you skip all of the more expensive parts of processing that inbound request.”
This acceleration will be useful for machine learning and big data workloads, which require a program to quickly process large amounts of incoming data. The C language is one of the favorites of machine learning engineers because of its speed. Rust is often compared to C because of its speed. And everyone loves Python these days, if not for its relatively simple syntax, then for the fact that it has native C bindings, “so it can actually compile its own code at the C level or run libraries directly. C, ”Weier O ‘Says Phinney.
“PHP with JIT now gets that kind of speed, if not faster,” he continues. “It’s able to do this faster than Python and it’s closer to Rust or C in this particular case, which means we can have an open API endpoint that’s constantly taking things and is able to do them.” process it via machine learning rules and categorize them so that people can analyze it later. “
PHP version 8 was released in November 2020, so it is still quite recent. For more information, see www.PHP.net.
Left for dead, R leaps again
Which programming language is best for big data?
Is Scala going to conquer the world of Big Data?