10.02.2013 Views

PHP Programming Language - OpenLibra

PHP Programming Language - OpenLibra

PHP Programming Language - OpenLibra

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Phalanger (compiler) 185<br />

Phalanger (compiler)<br />

Operating<br />

system<br />

Cross-platform<br />

Website http:/ / www. php-compiler.<br />

net/<br />

Phalanger is a project which was started at Charles University in Prague and was supported by Microsoft. It<br />

compiles source code written in the <strong>PHP</strong> scripting language into CIL byte-code. It handles the beginning of a<br />

compiling process which is completed by the JIT compiler component of the .NET Framework. It does not address<br />

native code generation nor optimization. Its purpose is to compile <strong>PHP</strong> scripts into .NET assemblies, logical units<br />

containing CIL code and meta-data.<br />

Phalanger can run real-world <strong>PHP</strong> applications, many with minor to no modifications. Examples include MediaWiki,<br />

phpMyAdmin and phpBB.<br />

There is an ongoing software project [1] at Charles University to re-implement the Phalanger core using the Microsoft<br />

Dynamic <strong>Language</strong> Runtime, and to develop a Visual Studio integration tool to provide Intellisense for the <strong>PHP</strong><br />

language.<br />

A project involving Phalanger was mentored by the Mono team during the Google Summer of Code program in<br />

2008. During this period Phalanger was ported to the Silverlight 2.0 framework with the goal of making it work on<br />

Moonlight as well. [2]<br />

Early in 2008, UK Content Management vendor Jadu partnered with the Prague-based team to improve<br />

communication between .NET and the Phalanger compiler. It’s based on duck typing and provides a way for<br />

accessing objects from the dynamic <strong>PHP</strong> world that lack compile-time type information from a statically typed<br />

language in a .NET environment in a type-safe way. [3]<br />

According to Microsoft, the primary goal of the project, released under Microsoft Shared Source Permissive License<br />

on the Microsoft Codeplex, is to enable full functionality of existing <strong>PHP</strong> scripts on the .NET framework without<br />

any modifications. [4]<br />

In December 2008, Jadu announced that it has made the compiler available to the developer community and in<br />

interviews with ITPRO [5] and VNUnet [6] said that the development would help close the skills gap between <strong>PHP</strong><br />

and .NET.<br />

External links<br />

• Official Web Page for v1 [7]<br />

• Official Web Page for v2 on CodePlex [8]<br />

• eWeek article about Phalanger [9]<br />

• Microsoft accommodates dynamic languages (article) [10]<br />

• Channel 9 Phalanger [11]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!