This MedLibrary.org supplementary page on Project Zero is provided directly from the open source Wikipedia as a service to our readers. Please see the note below on authorship of this content, as well as the Wikipedia usage guidelines. To search for other content from our encyclopedia supplement, please use the form below:
Related Sponsors
| Developed by | IBM |
|---|---|
| Latest release | 1.0.0.0 / 28 May 2008 |
| OS | Cross-platform |
| Type | Application Server |
| License | Proprietary |
| Website | http://www.projectzero.org |
WebSphere sMash is a development and runtime environment from IBM for the creation of dynamic web applications using the scripting languages Groovy and PHP. It contains a PHP runtime written in Java. Project Zero is the experimental software development community in which new versions of WebSphere sMash are incubated.
WebSphere Smash integrates with Eclipse and produces REST-style services on top of Groovy or PHP 1.
Contents |
Architecture
There are a number of distinguishing aspects to the architecture of WebSphere sMash.
Event based Programming model
WebSphere sMash uses an Event Driven Programming Model. Applications are typically composed of a number of small modules which communicate with each other by firing events which are then caught by other handlers that have registered to catch the events. The code firing the event does not have any knowledge of the code that will handle the event. This architecture allows application to be built up from a mixture of code written using PHP, Java, Groovy or the Flow language.
Global Context
Since events are stateless, a mechanism is required to share data between event handlers. This mechanism is the Global Context. The Global context functions basically as a large map of data divided up into various zones with different lifetimes, properties and persistence.
Repository management system
sMash makes use of the Ivy dependency manager. sMash applications are composed of models which can specify dependencies on other modules which may be present in a local Ivy repository or which can be fetched from a remote repository. IBM maintains a repository of useful modules at projectzero.org and dependencies can also be specified on the maven2 repository.
Language runtimes
Features
Flow Language
Connection API
REST Framework
Community-Driven Commercial Development
PHP Support
The PHP support in WebSphere sMash is provided by a PHP runtime implemented in Java. 2. PHP scripts are compiled into Java Bytecodes which then run on the Java Virtual Machine (JVM). This is similar in concept to the approach taken by other projects such as JRuby and Jython which run the Ruby and Python Languages respectively against the JVM. Running on the JVM allows direct, same process calls between PHP, Java and Groovy code allowing applications to be assembled using a variety of languages.
In contrast to the approach taken by Quercus, the other JVM based PHP implementation, sMash is able to re-use existing PHP extensions from PHP.net attaching them to the Java virtual machine via the Java Native Interface (JNI) and an API layer called XAPI-C.
The runtime has a DBGp debug port allowing debug access from IDEs and debuggers which support the DBGp protocol such as the Eclipse PDT project.
The PHP runtime does not have an identity outside of sMash so it is simply referred to as the "WebSphere sMash runtime for PHP."
As of October 2008 webSphere sMash is capable of running several well known PHP applications on a Java Virtual Machine. These include SugarCRM 3, phpBB 4,WordPress 5 and Mediawiki 6.
References
- ^ "About Project Zero". Project Zero Site. Retrieved on 2008-06-23.
- ^ "Project Zero PHP FAQ". Project PHP FAQ. Retrieved on 2008-06-30.
- ^ "Smash4Sugar project at SugarForge". Smash 4 Sugar. Retrieved on 2008-06-30.
- ^ "PhpBB running on Project Zero". phpBB on PZ. Retrieved on 2008-06-30.
- ^ "Try out PHP Application WordPress on sMash". WordPress on PZ. Retrieved on 2008-10-09.
- ^ "Try out PHP Application MediaWiki on sMash". MediaWiki on PZ. Retrieved on 2008-10-19.
External links
Wikipedia content modification information:
- This page was last modified on 7 November 2008, at 23:19.
Wikipedia Authorship and Review
Wikipedia content provided here is not reviewed directly by MedLibrary.org. Wikipedia content is authored by an open community of volunteers and is not produced by or in any way affiliated with MedLibrary.org.
Wikipedia Usage Guidelines
This article is licensed under the GNU Free Documentation License. It uses material from the Wikipedia article on "Project Zero".
The URL for this specific entry is:
All Wikipedia text is available under the terms of the GNU Free Documentation License. (See Copyrights for details). Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc.
