Cloud Foundry: Design and Architecture
Derek Collison discusses the goals, the design premises and patterns employed in creating the architecture of Cloud Foundry, VMware’s open source PaaS, unveiling internal architectural details.
The content has been bookmarked!
There was an error bookmarking this content! Please retry.
Posted by Rick Hightower on Jul 01, 2011
Charles Oliver Nutter, of JRuby fame, recently started assisting the Rhino project (Java implementation of JavaScript) to speed up the Rhino JavaScript runtime to compete with the likes of V8. Rhino, although a solid implementation, does not have the performance of other JavaScript runtimes. Nutter feels Rhino can make up some lost ground by using Invokedynamic and other optimizations. This could put Rhino on par with V8 or at least more competitive.
InfoQ caught up with Nutter to find out what he and the Rhino team are up to. Nutter plans on employing the JVM's Invokedynamic to wire up Rhino's dispatch mechanism directly into the JVM's optimizing compiler. This should reduce or eliminate overhead for method lookup at call time, argument-boxing overhead, and JavaScript to JavaScript calls as well as JavaScript to Java calls by inlining and optimizing as a whole. Nutter explained that a side benefit of using invokedynamic is that the invocation logic of Rhino will be much simpler for the Java 6 case.
InfoQ went on to ask Nutter how important he felt it was for the JVM to have a faster JavaScript implementation since JavaScript has seemed to become increasingly important overall. Nutter responded:
I personally think a lot of the hype about JavaScript is overblown. It's a good language for the browser primarily because all browsers support it not because the language is significantly better than other options.
And on the server side, it has become popular because runtimes now perform well and there's a lot of libraries written for client-side that are applicable to the server as well. ...
However, given the recent popularity of JavaScript for end-to-end applications, it seems only natural for the JVM version to have a refresh. It's also something of an embarrassment that arguably the fastest managed runtime around -- the JVM -- can't manage to run JavaScript as fast as current competitors. I think it's time for that to change.
Finally we asked Nutter how Rhino compared with the challenges thrown up by JRuby from an implementation point of view. Nutter responded:
Rhino may actually be an easier target in many ways, since it does not have some of Ruby's wilder features. However, it presents an interesting challenge in that its prototype-based object model leaves no clear location to store method table caches as is the case in Ruby. Techniques used by V8 and John Rose's "DavinciMonkey" (an early attempt at invokedynamic-based Rhino) -- such as generating synthetic classes as prototypes are modified -- should make it easier to deal with Rhino's more fluid type structure.
There is a large performance gap between the V8 JavaScript engine employed by Chrome and Rhino. Nutter commented that JVM features like invokedynamic may close the gap, but Rhino itself needs to be updated with performance in mind. Although Rhino is a great implementation there are techniques to employ to speed things up with or without new JVM feature like invokedynamic.
It is too soon to tell if Rhino can compete with VMs written specifically with JavaScript in mind, but Rhino is sure to get a speed boost.
Introducing SQLFire: a memory-optimized, high performance SQL database
Taming HTML5 and JS: High Performance Mobile, WebKit, FireFox Dev Tools @QCon New York
Building HTML5 Apps in Hours, Not Days
VMware vFabric SQLFire - Test drive the data management system with memory speed, horizontal scalability and a familiar SQL interface
I do hope someone takes this up and gives the codebase an overhaul in terms of performance (ignoring invokedynamic). I came to the same conclusion recently in integrating our metering technology int the library to do Java-to-Javascript translation for profiling purposes.
JavaScript Metering with JXInsight/OpenCore and Mozilla Rhino
opencore.jinspired.com/?p=3623
I see this was posted in July. Was wondering if there are any preliminary results yet? Would love to hear about it!
Derek Collison discusses the goals, the design premises and patterns employed in creating the architecture of Cloud Foundry, VMware’s open source PaaS, unveiling internal architectural details.
Andrew Watson talks about the work of the OMG, where CORBA is alive and well (hint: in your car), UML and UML Profiles vs. custom Modeling languages, DDS and other middleware, and much more.
Sohil Shah discusses creating iPhone and Android enterprise mobile applications based on cloud services using the open source platform OpenMobster.
Paul Sanford presents the transformations supported by data throughout its life cycle, and how that can be better done with Splunk, an engine for monitoring and analyzing machine-generated data.
A common “best practice” for unit tests is to only write a one assertion in each test. I intend to question this advice by showing that multiple assertions per test are both necessary and beneficial.
John Rauser presents the architectural and technological evolution of Amazon retail websites starting with 1994 and ending with adopting Amazon Web Services.
Michael Stal discusses system architecture quality, how to avoid architectural erosion, how to deal with refactoring, and design principles for architecture evolution.
Every developer has had to integrate with another system, API or component. Tis article provides strategies to handle the change and for he separating system boundaries.
2 comments
Watch Thread Reply