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 Werner Schuster on Aug 08, 2011
Modern Web and Javascript debuggers are powerful and well integrated into the browsers - but only if the code in the debugger is plain, hand written Javascript. Nowadays, a lot of executed and deployed Javascript is generated by software, not developers. The most common case is minified or otherwise compressed code. Setting a breakpoint in one of those files is tricky or impossible as they tend to be single lines - even if the original source was well formatted.
Another problem: Javascript is gaining popularity as compiler target for languages, mainly due to the ubiquity of Javascript VMs. CoffeeScript is just one example of a new language, the recently introduced ClojureScript is an example of an established language, compiling to Javascript. Debugging code written in these languages means using the generated Javascript code, not the input language for setting breakpoints, console.log() messages and other source related functionality.
The problem's not new; JVM languages had the problem too, which led to JSR-045 - Debugging Support for Other Languages, which is used for various languages compiling to the JVM, like JRuby.
Source Maps (SMAPs) are the solution, ie. files that map between the source language and the target representation. Google's Closure compiler can generate SMAP files for it's minified Javascript files, although currently the only tool that can read the SMAP files is the Closure Inspector, a Firebug extension.
Both the Mozilla and the WebKit projects have started work on supporting SMAPs in their debugging features.
Mozilla has an in-depth planning document for the SMAP and debugging functionality. The document also mentions yet another potential area for source mapping: CSS, which is also used as compilation target by supersets of CSS such as SASS or LESS.
The Mozilla ticket tracking the work is Bug 618650 - Map JS source coordinates to source language that was translated to JS; the planning document lists Firefox 9 as target release.
WebKit is also planning SMAP support, and the actual SMAP format might be an evolved version of the Closure Inspector format, which is considered by Mozilla as well. Bug 63940 - Web Inspector: draft implementation of compiler source mappings support in debugger tracks the development of the feature.
Introducing SQLFire: a memory-optimized, high performance SQL database
Taming HTML5 and JS: High Performance Mobile, WebKit, FireFox Dev Tools @QCon New York
RDBMS to NoSQL: Managing the Transition
VMware vFabric SQLFire - Test drive the data management system with memory speed, horizontal scalability and a familiar SQL interface
hi, where is your source for the supposed "Firefox 9" target release? could u link to it? (oh, and uh... get rid of the spam here?)
The Firefox 9 reference is in the planning document linked to in the text. Firefox 9 is due to go to Aurora at the end of September and be released in December.
thanks, Kevin! I guess i missed that among the plethora of links in there...
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.
3 comments
Watch Thread Reply