Ruby vs. Groovy: your perspective

Michael Neumann wrote:

Hehe, depends on what exactly JVM means. The machine architecture? Or the emulator, which in case of Sun's JVM
is not open-source. OpenJDK seems to be open source, except a few binary plugs ("Not all of the source code that makes up the JDK is available under an open-source license") [1].

I don't know what you mean by "emulator". OpenJDK *is* Sun's JVM, and other than the parts Sun couldn't legally open-source (owned by other companies) it's open-source. The "binary plugs" have also successfully been replaced by OSS equivalents; see the IcedTea project from RedHat.

- Charlie

Robert Dober wrote:

I am amazed that you say that, do you not think it would be easier to
port Groovy to e.g. Ruby than Ruby to Java?
Ok it would be lots and lots of work but surely less than the JRuby
project. Well I have no idea if it will be worth it, but that is not
my question.
To be honest I am not worried about Groovy, but about Clojure, which I
find most interesting.

I think the fact you're missing is that without the set of classes and
libraries on the Java platform, Groovy would be a shell of a language.
Moving Groovy off the JVM would mean you'd need to also port across all Java
classes that it needs to run,

that I was aware of

as well as annotations, generics, and many
other things that don't make much sense off-platform.

that I missed

I will concede it's

Thanx for explaining.
R.

···

On Tue, Apr 14, 2009 at 9:00 PM, Charles Oliver Nutter <charles.nutter@sun.com> wrote:

Charles Oliver Nutter wrote:

Michael Neumann wrote:

That's good news. They should have opened Java 10 years ago :slight_smile:
I fear you need bootstraps to be able to compile that, which are
binaries, so again it's limited to some more widely used OSes. And this
will probably take hours to compile.

Whine whine whine :slight_smile:

Took me less than an hour last time, and you can get JVM builds (based
on the same codebase) for building on all the BSDs already.

Hehe, I will try that on my "super-fast" netbook running DragonFlyBSD :slight_smile:

Regards,

  Michael

Hehe, depends on what exactly JVM means. The machine
architecture? Or the emulator, which in case of Sun's JVM
is not open-source. OpenJDK seems to be open source, except a few binary
plugs ("Not all of the source code that makes up the JDK is available
under an open-source license") [1].

Run everywhere? Have you ever tried Java on DOS :). I remember running
Ruby under DOS :). Okay lets agree on run everywhere, where everywhere
means 95-99% of all machines.

I'm pretty sure I run Java on DOS (or equivalent) every day. There's even an example in this thread!

jruby -S gem install hpricot

You can also kick off any Java application from the command line with `java -jar myapp.jar`.

Don't forget that Java also runs on some mobile devices as well. Some folks have gotten JRuby running on Android phones.

Logan Barnett
logustus@gmail.com
http://www.logustus.com

···

On Apr 14, 2009, at 6:43 AM, Michael Neumann wrote:

Charles Oliver Nutter wrote:

Michael Neumann wrote:

Hehe, depends on what exactly JVM means. The machine
architecture? Or the emulator, which in case of Sun's JVM
is not open-source. OpenJDK seems to be open source, except a few binary
plugs ("Not all of the source code that makes up the JDK is available
under an open-source license") [1].

I don't know what you mean by "emulator".

If you treat JVM as an instruction set architecture (like IA32/x86), then
the concrete machine or machine emulator that runs this ISA. Don't know how
this is correctly termed in Java. JVM is probably the concrete machine, but
then, how is the ISA termed? And how would one call other JVM implementation
like Jikes? Jikes-JVM? Don't worry, I think this is getting off-topic :slight_smile:

Regards,

  Michael