While PHP is an excellent language for building complex web application, it imposes certain limitations. Writing code that performs low-level, computationally intensive tasks in PHP is generally impractical--it'd simply be too slow. The QB extension addresses this particular weakness of PHP. By translating Zend opcodes and executing them through a statically typed virtual machine, QB offers an order-of-magnitude gain in performance. The added power allows PHP programmers do things they were unable to do before, such a complex, pixel-level image manipulation.
An oft encountered image effect on the Internet is one which makes a photograph looks like it's a handdrawn cartoon. This article discusses how your could build such a filter in PHP+QB.
A key improvement brought by QB 2 is the support for multi-core processors. Converting a script from single-thread execution to multi-threading is very easy. This article will guide you through the process.
Here is a good demonstration what QB is capable of. The script renders a three-dimensional Mandelbulb fractal. I have no idea what that is exactly, but the generated images are certainly interesting.
After months of hard work, Basia is finally ready to be seen by the general public! For the time being, binary packages are only available for 64-bit Ubuntu and Windows. I’ll cover a fuller range of platforms once the inevitable kinks are ironed out. You can, of course, always build QB from the source.
QB 2.1 is an improved version of the Basia language engine. It fixes a number of critical bugs that were present in version 2.0. There's no change in terms of functionality. For a list of changes between 1.X and 2.X, please read the QB 2.0 release notes.
In this article, we'll construct a filter that reduces an image to grayscale except for the part where it's red. It's a relatively simple effect that can produce some striking results.
Here's another script ported from Pixel Bender. It generates a monochrome Mandelbrot fractal.
In my discussions with PHP developers about QB, a topic that inevitably comes up is HipHop. Although QB is designed to handle a different set of problems than that faced by HipHop, it’s natural enough for people to want to know how the two perform relatively to each other. After all, they are both some sort of accelerators for PHP. In this article, I’ll run some tests to see how QB fares vis-à-vis HipHop.
Page 1 of 4