Lochemem Bruno Michael

.Lochemem Bruno Michael, a recent graduate of the United States International University – Africa, is a PHP enthusiast from Kampala, Uganda. Author of PHP libraries such as bingo-functional and the fauxton-client as well as a PHP C++-powered extension for CouchDB, he is a passionate open-source contributor. In addition to PHP, Mr. Lochemem loves to dabble with other web technologies like JavaScript, and TypeScript. He is also a passionate cinephile profoundly interested in many things such as rap music, video games, podcasting, and sports.

Articles

Asynchronous Programming in PHP

By Lochemem Bruno Michael

PHP is, in many communities, scorned and even trivialized for many reasons—a lack of asynchrony being one of the biggest detractions. Fallacies as egregious as the aforestated derision are intolerable because of the language’s current robustness. Asynchrony—using interleaved processes in a single thread—is available to users of the PHP language to address the inefficiencies of inherently slow input/output operations. We can implement it either via language modules like Swoole or idiomatic PHP solutions like ReactPHP and Amp.

Published in Advanced Design & Development, June 2020

Building PHP Extensions With C++

By Lochemem Bruno Michael

PHP extensions are primarily composed of additions (functions and classes) to the PHP userland. Considering the PHP virtual machine is built in C, it holds that extensions are generally idiomatic C-based syntaxes. C++, a syntax-base with C-linkage capability, is an eligible extension-builder language and quite robust in its offerings. In particular, C++ 11 and newer versions boast modern features such as Lambda functions, the auto keyword, and templates. Together they can allow for the materialization of powerful PHP modules when used in conjunction with PHP engine-facing syntax.

Published in Object Orientation, November 2019