AmsterdamPHP Monthly Meeting Talk 17-10-2013: PHP-CPP

Опубликовано: 04 Ноябрь 2024
на канале: AmsterdamPHP
3,697
38

Talk: Speeding up PHP - mixing PHP with C++

PHP is a language designed for creating web pages -- but for running complicated CPU or memory intensive algorithms not always the most appropriate choice. In such situations you better switch to a language like C or C++.

However, although PHP offers a C API that allows one to combine PHP and C/C++, using this API is tough. The PHP C API is not very well documented - and could have a better and simpler structure. Most PHP developers therefore never consider writing in C, and stick to their PHP scripts -- with good reason.

That's why the PHP-CPP library is being developed. To overcome the problems that the C API has, Copernica is building a C++ library that is easy to use, and that has an object oriented structure. This library allows developers to move their algorithms and data structures from PHP to C++, and speed up applications significantly.

Emiel Bruijntjes will show examples of how to use the C++ library, and will speak about the design of the library, and the plans he has with it. This presentation will also be the first time the library is showed to the public, so feedback and thoughts from the audience are greatly appreciated.


Speaker: Emiel Bruijntjes

Emiel Bruijntjes has been working with PHP for more then 10 years. He is one of the founders of Copernica BV. This year he has been working on MailerQ, a fast and flexible MTA that uses AMQP message queues, and PHP-CPP, a C++ library for building PHP extensions.