The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Running Groovy natively without the JVM

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Joe Walnes

Posts: 151
Nickname: jwalnes1
Registered: Aug, 2003

Joe Walnes, "The Developers' Coach" from ThoughtWorks
Running Groovy natively without the JVM Posted: Jan 6, 2004 7:07 PM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by Joe Walnes.
Original Post: Running Groovy natively without the JVM
Feed Title: Joe's New Jelly
Feed URL: http://joe.truemesh.com/blog/index.rdf
Feed Description: The musings of a ThoughtWorker obsessed with Agile, XP, maintainability, Java, .NET, Ruby and OpenSource. Mmm'kay?
Latest Agile Buzz Posts
Latest Agile Buzz Posts by Joe Walnes
Latest Posts From Joe's New Jelly

Advertisement

Two days ago I was hacking away at some Ruby scripts and thought it would be nice if I could write them in Groovy (not necessarily useful, just nice).

Of course, for small scripts that honour the UNIX philosophy, that would be a terrible idea. These scripts should start instantly and have minimal overheads.

What changes would be needed to allow Groovy to compete with languages like Perl, Python, TCL, Ruby or plain old shell scripts in this space?

  • Better performance / reduced overheads (cpu, memory, start-up time).
  • Simple install (src tarball, RPM, dpkg, windows installer, OS-X whatever).
  • No JVM required.
  • Ability to use Groovy to access less Javaish libraries (POSIXy style stuff, MFC, .NET).
  • Ability to use Groovy (and Java) objects from other languages (C, C++, Perl, Python, Ruby, .NET, etc)

As an experiment, I've created a subproject of Groovy (groovy-native) that aims to address these issues.

Take a peek at where I'm going with this.

So far:

  • Created a stripped down native runtime library (libgroovy.so).
  • Compiled a .groovy file to a native executable (linked with libgroovy).
  • Created a native C++ app that calls interops with Groovy objects.

Read: Running Groovy natively without the JVM

Topic: Amazing spam Previous Topic   Next Topic Topic: #import is back

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use