There is java implementation of PHP.

http://caucho.com/resin-3.1/doc/quercus.xtp








Thursday, November 30, 2006, 5:24:41 PM, you wrote:

CS> -----BEGIN PGP SIGNED MESSAGE-----
CS> Hash: SHA1

CS> Martin,

CS> Martin Gainty wrote:
>> This is going O/T so feel free to ping me off the list
>> 
>> These current graphs may help if you want to gage PHP assignments
>> http://mshiltonj.com/sm/categories/languages_p-z/
>> then compare to Java assignments
>> http://mshiltonj.com/sm/categories/languages_a-m/

CS> Wow... Java seems to enjoy a nice margin over the others. My experience
CS> has been that Java developers are not that much in demand -- at least
CS> not in the DC area.

>> Can you show how a simle math routine or for loop routne in a script
>> language PHP performs faster than a language java?

CS> I believe that PHP is not entirely interpreted, at least not all the
CS> time. It's unclear to me what Zend brings to the table, honestly. I
CS> think what you'll find is that most web apps are very simple, and that
CS> the performance characteristics of each language are far outweighed by
CS> the performance of network connections (both HTTP and database) as well
CS> as any database activity that you are doing in your app.

>> Can you show how PHP supports <multi-threading>?

CS> Yeah, PHP doesn't really do threads. You have to rely on the web
CS> server's request processing configuration for concurrency. One advantage
CS> of PHP is that pretty much everything is isolated (at least, if you use
CS> apache httpd and the prefork MPM), so you generally need not worry about
CS> synchronization, etc. -- at least not for objects and such.

>> Can you show how PHP supports inheritance, polymorphism and encapsulation?

CS> I don't think any of that is available in PHP. They do have objects, but
CS> they are loosely typed, which sort of blurs definition of "true" OO.
CS> Still, I maintain that most webapps are stupid simple, and many don't
CS> even write their own code outside of CRUD functions. Since those types
CS> of things don't require you to know anything about OO, many developers
CS> can get away without an OO language.

>> Can you show how PHP supports all Java scope (request/page and application)?

CS> The request scope /does/ exist, and the page scope implicitly exists
CS> since a PHP script can be thought of a one big method (kinda like a
CS> vanilla JSP page). The application scope pretty much does not exist.
CS> There is a "global" scope, but I am unclear as to the behavior across
CS> multiple instances of the PHP engine... for instance, does each script
CS> get a separate copy of the "global" variable? Probably. Does that make
CS> it not really a global variable? I suppose that depends on your point of
CS> view.

CS> The bottom line for the whole PHP versus Java thing for me is perceived
CS> complexity of a project. If I want it done super fast and super simple,
CS> I'll go for PHP. If I want to actually architect something, then I'll
CS> turn to Java. My experience has been that as PHP projects grow, they
CS> become very difficult to maintain. Not so (or, at least, not so much!)
CS> with Java.

CS> Just my .02.

CS> - -chris

CS> -----BEGIN PGP SIGNATURE-----
CS> Version: GnuPG v1.4.5 (MingW32)
CS> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

CS> iD8DBQFFbve59CaO5/Lv0PARAtL5AKCnv/4r+x3IwHciEPqCSc+HlUu64wCffgNw
CS> x1TiKimfohpVEURjN6tAcQI=
CS> =b1TS
CS> -----END PGP SIGNATURE-----

CS> ---------------------------------------------------------------------
CS> To start a new topic, e-mail: users@tomcat.apache.org
CS> To unsubscribe, e-mail: [EMAIL PROTECTED]
CS> For additional commands, e-mail: [EMAIL PROTECTED]

 



-- 
Best regards,
 Dima                            mailto:[EMAIL PROTECTED]



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to