Conference presentation: [PPT]
Abstract: This paper addresses major issues related to compilation of applications written in the PHP language and their solutions proposed and implemented in the Phalanger system targeting the Microsoft .NET platform. Main focus is given to those PHP features that are specific to the interpreted and dynamic nature of this language and that are making the compilation process more challenging. Since a language compiler and runtime are usually tightly coupled, this paper also presents parts of the Phalanger runtime related to the discussed language features. Additionally, the support for various web application execution scenarios within the ASP.NET server is outlined as PHP applications usually target web servers. The effectiveness reached by the compilation to the intermediate language of the .NET platform is demonstrated in a comparison with existing products addressing an optimization of PHP code execution.
A talk introducing Phalanger internals and the new features of forthcoming version to the students of Faculty of Mathematics and Physics, Charles University in Prague (MFF UK).
A talk presenting Phalanger internals to Czech students hosted by Czech Technical University in Prague (CTU).
An interview we gave to Channel9 during a visit to the Microsoft Whidbey Compiler Lab in Redmond, Washington, USA.
Abstract: In this paper we describe problems related to compilation of the PHP language and their solution proposed and implemented in the Phalanger project. Main focus is given to the specific PHP language features bound to the interpretative nature of the PHP language, that are making the compilation process more difficult or less effective. The run-time provided by the Phalanger for PHP applications including ASP.NET cooperation is discussed further. The effectiveness reached by the compilation into intermediate language of the .NET platform is demonstrated in a comparison with existing products addressing optimization of PHP code execution. Additionally, the Phalanger integrates PHP language into Visual Studio .NET which is briefly mentioned in the very last section of the paper.