Drupal and Quercus

emilong - February 5, 2008 - 17:53

Hello!

My name is Emil Ong and I work for Caucho Technology, the maker of Quercus. I thought I'd introduce myself and let the Drupal community know what Caucho is up to with Drupal. Quercus is our cleanroom Java implementation of PHP. It's open source (GPL) and runs PHP code in both interpreted and compiled modes (i.e. the PHP is compiled to Java, then run on the JVM). The interpreted mode version of Quercus is available to run in any Java servlet engine (the Glassfish guys actually have a lot of tutorials up about this), but the compiled mode only runs on Resin, our Java application server, and is only available with a license. We've found up to 4x performance improvement for Drupal in the compiled mode over the usual Apache+PHP.

The way that we're approaching development of Quercus is to make sure it's as compatible as possible with PHP, quirks and all ;-). To do this, we've been choosing popular PHP applications and certifying them to run on Quercus. Drupal is one of the top applications that we continually develop for and we run our own forums on Drupal 5.1+Quercus (http://forum.caucho.com). Thanks for making a great app! Please let me know if you have any questions about Quercus and/or how it works with Drupal.

Thanks!

[Moved from 'Drupal core to 'News and announcements': nevets]

Interpreted vs Compiled

msimanga - February 13, 2008 - 11:43

Since PHP is already interpreted, would the be any benefit in using the interpreted version of Quercus?
Mpume
mahalasoft.za.net

Re: Interpreted vs Compiled

emilong - February 14, 2008 - 19:03

Absolutely. Quercus is written in Java, so you get a lot of security and management for free over the C implementation (buffers are checked for overflow, JMX allows management tools to connect and monitor the state of the application, etc.). Quercus also allows you to use Java code and projects for extra features and performance. For example, you could write your complicated business logic in Java, which would be compiled, then call it from PHP. You could also use popular projects like Spring, Hibernate, etc. to enhance your code. For the purposes of Drupal, this might be something that the developers or plugin writers would be more likely to use.

Thanks for the question!

---------------------------------------------------------------------
Emil Ong
Chief Evangelist
Caucho Technology, Inc.
Tel. (858) 456-0300
mailto:emil@caucho.com
http://forum.caucho.com - Drupal running on Quercus

Caucho: Reliable Open Source
--> Resin: application server
--> Quercus: PHP in Java
--> Hessian Web Services

 
 

Drupal is a registered trademark of Dries Buytaert.