Category Archives: open source

mvn cloudtools:deploy

I love this. Write your Java EE app; then deploy to up to 20 virtual servers like this:

mvn cloudtools:deploy

The servers are Amazon EC2 instances, charged by the hour.

The tool comes from Chris Richardson, author of POJOs in Action. It combines a Groovy framework called EC2Deploy with appropriate Amazon virtual machine images and a Maven plugin. He calls the combination Cloud Tools. More on EC2Deploy here. The Cloud Tools home page is here. Open source under the Apache License 2.0.

Great for testing, could be good for live deployment too, especially now that you can get proper support from Amazon.

See also Jeff Barr’s Amazon Web Services Blog.

Ubuntu Hardy Heron – very cool

I had a spare desktop after upgrading my Vista box – at least, I popped my old motherboard in a spare case and added a hard drive. It seemed a good opportunity to try Ubuntu Hardy Heron. Ubuntu has a policy of  upgrading its Linux distribution every six months, in April and October, and Hardy Heron is this year’s April release. I tried a late beta, since final release is not until the end of the month. Burned a CD, stuck it in the drive, and installed it.

The install went smoothly. The main hassle with Ubuntu, and most other Linux distros, is that there are a few add-ons which you can’t easily do without, but which are excluded from the main release either for legal reasons, or because they are proprietary. For example, I tried to play a DVD, but the Totem movie player said it did not have the right GStreamer plugin. It would be nice if Ubuntu had a one-click install, something like “OK, I give in, give me libdvdcss2, give me Flash, give me Java, and I’ll take the consequences.” I fiddled around with Medibuntu, then realised you can get something close to a one-click install if you add ubuntu-restricted-extras to the repository. It didn’t actually take too long before I was up and running: DVDs played, YouTube worked, Java worked. I also added the NVIDIA proprietary driver which is needed to enable the Compiz Fusion 3D desktop. That one was easy: Ubuntu prompted me to do it.

The “what’s new” list includes Linux kernel 2.6.24, Firefox 3 (although still in beta), and better virtualization support with KVM. Gnome is updated to 2.22. Think incremental rather than dramatic changes.

Subjectively, Ubuntu performs better on the same hardware than Vista. There is just less waiting around. I had some fun connecting to my Vista desktop using the Terminal Server client. Then I pressed Windows-Tab to cycle between applications (note the cool reflections):

The key factor for Ubuntu is not features, but usability. In this respect, it seems to get better every time I look.

Technorati tags: , , ,

Now it’s Eclipse that has “baroque” code

This provoked a wry smile, from a Reg Dev article on the forthcoming Eclipse 4:

Underpinning all this, though, is an attempt to escape the “baroque” 3.x codebase for something that’s simple, clean and modular. That means eliminating repetition in code and interdependencies found in the monolithic 3.x.

“It’s getting to the point where it’s difficult to reach in and fix a bug without impacting lots of other things,” one e4 committer told EclipseCon.

Now, Eclipse is a child of the refactoring era. It is built using an MVC (Model-View-Controller), component-based, plug-in architecture. Design patterns guru Erich Gamma worked on Eclipse and on its Java Development Tools.

If Eclipse is now a ball of spaghetti, what went wrong? Though its possible the problems are being over-stated in an effort to justify version 4.

Technorati tags: , , , ,

Mono on the iPhone

Unlocked iPhone, of course. Miguel de Icaza has the details and some video links.

Flash, Silverlight, Mono, Java: surely Jobs won’t keep all these runtimes officially forbidden for ever? It strikes me that Flash has the best chance of getting there, simply because without it the Web is a little bit broken for iPhone users. It’s an influential device and its runtime support (or lack thereof) will be a factor in web development trends.

Technorati tags: , , , , ,

Erich Gamma on Eclipse and Jazz

Erich Gamma spoke at Qcon London on the subject of “How Eclipse changed my views on software development.” Or did he? This was a somewhat schizophrenic talk; in part an articulation of general development principles, and in part a description of how Eclipse is developed. Gamma spelt out the Eclipse philosophy, the starting point being that everything is a a plug-in; that APIs matter a lot and its better to get a small API right rather than get it wrong and have to support it for ever.

He then talked about iteration, a key tenet of agile development. He showed a great slide which charted the progress of some projects, from “all the time in the world” at the beginning, to “say goodbye to your loved ones” at the end, followed by total exhaustion after the thing is shipped. Iterative development with continuous builds and sign-offs every 6 weeks is less stressful and more productive.

It’s a great point, but does this work in every instance? What if you have a game to ship for the Christmas market?

He also talked about the benefits of open source development: transparency between developers and customers, critical mass of community activity, frequent feedback, and so on. Nothing new here; but perhaps this simply demonstrates the extent to which the merits of the open source model have become accepted.

Gamma then focused more sharply on Eclipse. He says there is a major new release every year, and they don’t want to ship in the summer or near Christmas, so they ship in June.

He described how the Eclipse project manages its large international team. It comes down to components: developers are divided into teams on specific sites, and each team manages one or more components, and has its own process for planning, building and testing. A weekly integration build prevents incompatibilities between components from getting out of control.

Towards the end of his session, Gamma gives us a tour of Jazz, IBM’s open source but commercial project for collaborative software development. Interesting, but I’m not sure that this product pitch belonged in a talk that was billed as something more general.

Overall: good insight into how Eclipse comes together, but not too exciting. I don’t envy these guys who face heightened expectations because of significant contributions they have delivered in the past. Nobody can change the world daily.

Technorati tags: , , , ,

Chris Anderson on Freeconomics

Chris Anderson, the Wired editor who coined the term “long tail”, has written a lengthy piece on Free – why $0.00 is the future of business, and is writing a book on the subject.

It caught my eye in part because of what Sun’s Jonathan Schwartz told me the other day: the only acceptable price is free.

The idea must terrify Microsoft, which makes most of its money from software licenses, while letting third-parties take the profits from custom development and services. Companies are less vulnerable if they sell both hardware and software, or have strong services departments.

The paradox here is that even when the marginal cost drops close to zero, there still has to be a business model. Something I am still trying to figure out as I give away content on this blog.

Sun’s OpenSolaris community fracas: not just a name thing

While I was at Sun last week I was following the discussion in the OpenSolaris community about the naming and repositioning exercise which saw a Project Indiana become the official OpenSolaris distribution. Some of the external members most deeply involved in OpenSolaris were immensely frustrated not by the decision itself, but by the way it was made and announced, with little consultation of those who were supposedly governing OpenSolaris. It was exactly this issue which provoked Ben Rockwood’s post which I quoted in a blog post on 15th February and again in The Guardian. Unfortunately I didn’t see Roy Fielding’s post resigning from the OpenSolaris community until later, otherwise I would likely have quoted him as well:

This well is poisoned; the company has consumed its own future and any pretense that the projects will ever govern themselves (as opposed to being governed by whatever pointy-haired boss is hiding behind the scenes) is now a joke. Sun should move on, dissolve the charter that it currently ignores, and adopt the governing style of MySQL. That company doesn’t pretend to let their community participate in decisions, and yet they still manage to satisfy most of their users.

On 14th February I spoke to Rich Green, Sun’s Executive Vice President, Software, and asked him to clarify the changes to OpenSolaris:

This is one of those classic “what’s in a name” things. OpenSolaris is a community, is a source code base, and is the distro from Sun Microsystems. We’re going to put a lot of energy into it, not only in terms of the quality of the technology, but the business model around it, very much akin to other open source programs focusing on subscriptions and support, but that open source base is out there for other distros to be derived, and we encourage them. There was a naming complexion change, but the feedback from the community was mostly, not uniformly, it never is uniformly: thank you, for clarifying what we all expected you to do. Thanks for putting your name and brand behind a distribution of the source code base which is out there. And thank you for moving it out into the open so others can do the same. So that’s where we are, that’s where we’ll stay. The reaction has been generally, never uniformly, very positive.

I didn’t realise at the time that “not uniformly” included the resignation of such a prominent member of OpenSolaris – Fielding’s post is dated just after midnight on the previous evening. However, Green is correct in saying that many see the decision itself as sensible, which makes this whole fracas rather unnecessary. Fielding makes further comment here.

Of course this is not really a naming thing, it is about how Sun relates to the community it is building around its open source projects, and to which it attaches huge importance. I lost count of how many times CEO Jonathan Schwartz and others used the community word to describe how it would create new business opportunities and monetize its open source efforts. Quite possibly Sun misjudged the impact of the way this particular decision was made, but in a way that is the point; it is a failure of relationship, and suggests that Sun wants to maintain tight control of its software even though it has made the decision to make it free and open source. I asked Schwartz about this but did not get a particularly illuminating response.

Technorati tags: , , ,

Microsoft moves to protect its Office business in format war

Here’s a key snippet from yesterday’s interoperability announcement:

We’re also designing new APIs for Microsoft Word, Excel and PowerPoint applications that will enable developers to plug in additional document formats and allow users to select those formats as their default for saving documents.

Translation: if OOXML fails to get ISO standardisation, and/or if the rival ODF catches on or is mandated by institutions, then Microsoft wants you to keep using Office.

Product Manager Gray Knowlton has a little more detail here.

I’m not clear how extensive these changes are. Presumably it amounts to more than just tweaking the open and save dialogs to enable different defaults. Office applications already let you select from a range of different formats.

A few further comments. First, I’d like to see OOXML standardized. Aggressive IBM-sponsored lobbying has not convinced me this is a bad idea. And yes, I’ve pored over the spec and even done a little development with OOXML. Standardization tends to improve documentation and helps to protect developers from arbitrary changes.

It is interesting to see someone like Patrick Durusau, Chair of incits, coming out in favour of  OOXML standardization [PDF]:

I have seen some attacks on OpenXML saying it is not an “open” standard. I am quite puzzled by those attacks and think that OpenXML makes the case for open development of standards.

Understand that as the Project Editor for ISO/IEC 26300 and the OpenDocument Format TC editor in OASIS, I carry no brief for OpenXML. However, a well defined and publicly controlled OpenXML would be a great benefit for future work on the OpenDocument Format standard so I have no reason to wish it ill.

That does not mean Microsoft has done everything right. Microsoft’s Jean Paoli, now an evangelist for standardization, told me three years ago that OOXML was not suitable to be managed by a standards body. Why the change of heart? Simply, the threat of losing market share to a rival that was standardized. Microsoft had years of unchallenged Office supremacy in which it could have opened up its formats; but did nothing until its profits were threatened.

This should tell us something about the benefits of competition.

Despite Microsoft’s efforts, gains in ODF market acceptance will damage Microsoft Office. It will take more than a few API changes to make Microsoft Office as good an ODF editor as Open Office, which has a family relationship with the rival formats.

Standardization is only a small piece of this puzzle. On the Microsoft side, Office is a decent product with massive market dominance. On the ODF side, Open Office is also a decent product and is free and open source. The fight will still be on, no matter how the standards thing plays out.

Technorati tags: , , , , ,

Sun’s Jonathan Schwartz makes the case for free and open source software

I interviewed Sun CEO Jonathan Schwartz last week, and wrote it up for Guardian Technology. By the way, the picture is much better in the print edition.

Sun is gambling on open source – not only open source, but free software. This is possibly easier for Sun that it would be for, say, Microsoft or Oracle, because Sun, like Apple, is a hardware company. You can therefore think of the software as an overhead for selling the hardware. It is not without risk though – most of the software (including its Solaris operating system) runs on commodity x86 hardware as well as on Sun’s SPARC processors.

Not everything we discussed made it into the Guardian piece. I put it to Schwartz that Sun has historically done a poor job of monetizing the software it gives away. For example, it made Java the most popular programming language in the world, with huge enterprise adoption, yet until recently the company was posting losses. I then asked whether he considered that the fundamental open source model – give away the software, make money on support and services – was the future for the whole industry, rather than just for Sun and a few others?

I think first of all our strategy is to build the broadest global communities we can, and then from those communities to identify the opportunities to make money by building datacenters and by building the technologies that go into those datacenters. Software, systems, services, and microelectronics. So right now, in responding to the question is that the future of the industry, right now if you’d like a free Microsoft-office compatible Office suite, you could go to OpenOffice.org, download it, as roughly 100 million people have done in the past couple of years, and you’d have to pay nothing. Or, you could go to your local retailer and pay for the latest proprietary office suite. So if you were a betting man, and you looked at 3.3 billion people online today, where do you think the majority of them will acquire their office productivity suites? They’ll probably acquire the free ones, by definition those will be the most popular.

Now the same thing would apply to search. If you wanted to be in the search business can you imagine trying to run a search portal today, charging customers 50 cents per search? You’d probably have no takers. So, if you want to be the broadest supplier of volume technology into the marketplace, the only acceptable price tag is free.

We are in fact interested in pursuing the broadest global developer community possible, for whom the only acceptable price is free. So I think, if you’re going to try to compete against our virtualization products, our office productivity products, our network infrastructure products, you have to come to the table with a free product. Absent a free product, you won’t even be considered by the majority of the marketplace. So right now I believe we stand alone in having evolved our business model to actually monetize that community. That’s exactly what we’re doing, every day. So when people ask, when will you monetize those free software downloads, again, we had 7% operating margin last quarter. It’s not going to be a single line item, it’s going to be the whole company’s market opportunity expanding. So I feel very comfortable that this is not only the direction for Sun, and it’s a great direction, it’s the direction for the industry. The move towards free software is unstoppable. Not simply in your home, but at your workplace.

Note that it helps to consider this in a global context, not just the traditional highly developed locations like Europe or the USA.

Is he right? The world’s biggest and most profitable tech companies are not built on open source. IBM, Microsoft, Apple, Oracle, Google, for example. All these companies flirt with open source, even make real and meaningful contributions, but they keep their prize jewels proprietary.

Bottom line: Schwartz may well be right, but he’s not right yet. Still, follow the trend. Free software continues to improve; the proprietary vendors are giving away more of their stuff; the cloud is growing in importance relative to the desktop; and tough economic times are likely in tech’s most profitable markets. I doubt Sun will be the only company to change its business model.

Technorati tags: , ,

Mono at Mix08

Back in 2003, I blogged about how Miguel de Icaza could not get his proposed Birds of a Feather session approved at Microsoft’s Professional Developers Conference.

There’s always been ambivalence at Microsoft about Mono. Extending the value of .NET – good. Making it possible to ditch Windows – bad. Mono events at Microsoft conferences have tended to be off-site affairs in nearby hotels.

Viewing the sessions for Mix08, it’s clear that Mono has been pretty much welcomed into the fold. The catalyst for change was Moonlight, which solves a problem for Microsoft by enabling Silverlight to run on Linux. Miguel de Icaza is participating in a panel discussion on open technologies (with Andi Gutmans at Zend and Mike Schroepfer from Mozilla), and has his own session on Moonlight, subtitled “Come experience .NET on Linux”.

Don’t expect Microsoft to open source Office any time soon. That said, the company has changed significantly since 2003. Yes, it’s been forced by the market; but it’s a welcome development nonetheless.

If the Yahoo deal goes ahead, open source at Microsoft will get even more interesting.