Tomas Matousek & Ladislav Prosek talk about their PHP .NET compiler, Phalanger. They don’t work at Microsoft, but Charles Torre ran into them at a recent CLR compiler lab held on MS’ main campus.
Tomas Matousek & Ladislav Prosek talk about their PHP .NET compiler, Phalanger. They don’t work at Microsoft, but Charles Torre ran into them at a recent CLR compiler lab held on MS’ main campus.
that will not work on Mono, but it’s planned!
From
http://www.php-compiler.net/ (FAQ section)
Is it possible to use Phalanger under Mono?
No, it is currently not possible because some parts of Phalanger are mixed assemblies written in Managed C++, which is not supported in Mono. Although we are planning on rewriting these components to C++/CLI as we switch to FW 2.0, one of them – the Extension Manager – will always contain some native code. So it is likely that Phalanger will run under Mono in the future but without the Extension Manager. However, if Mono supports C++/CLI in the future we would probably port the Extension Manager to Mono.
And there are folks who still believe that .Net was made to make multiplatform programs… Poor Icaza…
I prefer the solution of BinaryPHP:
http://binaryphp.sourceforge.net/wakka.php?wakka=HomePage
or Roadsend Compiler for PHP
http://www.roadsend.com/home/index.php?SMC=1&pageID=compiler
I can develop windows only python/php/java/perl/whatever software. Does that means that python can’t be used to develop multi-platform software?
Besides, compiling to .NET allows one to use all .NET classes… it’s not only about portability. Palhaço…
I can develop windows only python/php/java/perl/whatever software. Does that means that python can’t be used to develop multi-platform software?
Besides, compiling to .NET allows one to use all .NET classes… it’s not only about portability. Palhaço…
I think that you need to clue up a bit about the framework and CLR; yes, it does support other languages, but it also bastardises them so that they can conform to the specifications which allow the CLR to exist.
There is this missinformation that some how, through some miracle, you can grab any old code, and recompile it on .net, which isn’t the case. The fact remains, .NET is a great piece of software, but lets on try to make out that you can do everything that the particular language allows.
Would it be possible to compile the Phalager code in Windows and then run it on any Mono platform?
Thanks!
What I cant understand is… why dont do this with Java?
It would be great to parse PHP into Java code, as its done with JSPs!
Also, Java has been there for much more time, and is a more mature plataform! With a greater user base, and much more code avaliable under opensource licences!
Hey, and it is quite possible! Look at jython! Its python compiling to java bitecode.
This looks interesting!
Its nice to see new languages coming to the .net framework