views:

122

answers:

2

As Oracle sues Google over the Dalvik VM it becomes clear, that you cannot implement a Java VM without license from Oracle (EDIT: Matthew Flaschen points out, that the claims of Oracle may not be valid. Anyways we have currently a situation, where Oracle threats VM-implementations.). That may become the death for Open-Source-implementations of Java (like Apache Harmony).

I don't want to discuss the impact or the legitimation of this lawsuit. but as a Java-programmer I want to take a deeper look into the alternatives, to be prepared for every case. As I see the creation of a compiler as a minor problem, my main interest are alternative VM-implementations, that serve a similar purpose as the JVM.

The VM I'm looking for, should meet some conditions:

  • free of patent-issues
  • an Open-Source-implementation exists
  • potential for optimizations/good performance
  • platform independent (the VM can be ported to different platforms without bigger hurdles)

Please add some recommendations for me.

+4  A: 

I don't think there is any significant piece of software that is free from patent issues.

If you are an independent developer or working for a smaller company you probably won't get hit directly by the problems though. It's unlikely that big companies holding patents will go after lots of small claims - it's an expensive process and causes a lot of resentment. SCO tried something like that and it didn't work out too well for them.

I would concentrate on finding the best tool for the job without worrying too much about the patent issues, otherwise you will never get anything done.

Mark Byers
SCO has never asserted patent claims, only copyrights and contract.
Matthew Flaschen
+3  A: 

LLVM is a really good optimizing, low level virtual machine. It can support languages like C and C++, and does not have built in support for high level features like garbage collection.

VMKit is an implementation of the Java and CLI virtual machines on top of LLVM. Since it uses Java bytecode, this probably wouldn't help with the patent issues.

HLVM is another interesting high level virtual machine built on top of LLVM. It is probably different enough to avoid most well known patents, but it is mainly targeted at numerical computing and functional programming.

On the dynamically typed side, there is Parrot.

I am actually working on a compiler and VM for a language of my own design, but don't count on it ever being finished. ;-)

Keep in mind that any large piece of software will infringe on numerous patents, the important thing is how well known they are (and how much the patents' owners actively seek out infringers). Of course, the whole patent system is absurd, and we would be much better off getting rid of it.

Zifre
"It is probably different enough to avoid most well known patents" And what about the thousands of not well-known patents? "the whole patent system is absurd" I'm not sure I agree - I think patents are sometimes useful - if you invent a cure for cancer you should be allowed to patent it. But patents should not be given out for trivial things like double-clicking. The patent system needs to be there, but it is badly in need of reform and more strict checks on actual innovation.
Mark Byers
@Mark Byers: About HLVM, I meant that most patents on Java and similar VM technology (e.g. CLI) would probably not apply. Of course, that doesn't mean it's completely safe, but nothing is. As for the patent system, software patents are the most obviously absurd part, but I do question the usefulness of the rest of the system too - there is really no evidence that it has done any good. And if someone invented a cure for cancer, it would be nice if it weren't patented, because it would be cheaper. The question is, without patents, would that cure have been invented? Nobody knows.
Zifre
HLVM looks like a great candidate, Parrot like another one. I will check out these alternatives a little bit further. Thanks for your recommendations. :-)
Mnementh