Status of Jython, JRuby, Scala, etc Android development?

by remi » Thu, 23 Oct 2008 11:32:55 GMT


Sponsored Links
 I'm not to Android development - got my G1 today, like many other
developers.  I'm a professional Ruby developer (with previous Java
experience) and I'm working ... what is the status of writing Android
applications in other Java languages that compile to typical Java
bytecode (like JRuby, Jython, etc)?

( there's nothing wrong with plain vanilla Java, but I would be *very*
interested in developing open-source Ruby libraries to lower the bar
to entry for Android, for Ruby developers ... I'm sure the same goes
for Python developers, etc )

Thanks!

--~--~---------~--~----~------------~-------~--~----~



Status of Jython, JRuby, Scala, etc Android development?

by remi » Mon, 27 Oct 2008 16:58:16 GMT


 Interest in this seems pretty high.  I wonder ... does the official
Android team have any interest in getting dynamic languages running on
Dalvik?  The ability to code in Python, Ruby, Groovy, Scala, etc seems
like it could do *amazing* things for Android and multiple the number
of Android developers.

Also, some of these languages (Ruby, in particular) are *great* for
writing DSLs - a DSL for making Android apps could be spectacular.

Anyway, I'm replying with some resource that relate to this topic
incase someone else is interested, etc.

This Sun blog post mentions why dynamic languages currently won't run
on Dalvik,  http://blogs.sun.com/jrose/entry/with_android_and_dalvik_at ,
saying "Something like the dx tool can be forced into the phone, so
that Java code could in principle continue to generate bytecodes, yet
have them be translated into a VM-runnable form. But, at present, Java
code cannot be generated on the fly. This means Dalvik cannot run
dynamic languages (JRuby, Jython, Groovy). Yet. (Perhaps the dex
format needs a detuned variant which can be easily generated from
bytecodes.)"

This guy posted what happened when he tried getting JRuby running on
Android:  http://amazing-development.com/archives/2007/12/14/jruby-on-android/ 

Here are other Google Group posts on other google groups that are also
curious about the status of running dynamic languages on Android /
Dalvik - watch them for updates or, if someone posts updates here, you
might want to let these other threads know as well:

"Java/Ruby Support" 


Sponsored Links


Status of Jython, JRuby, Scala, etc Android development?

by remi » Mon, 10 Nov 2008 22:26:19 GMT


 ote: I posted a new thread, asking about this, on android-developers
@
http://groups.google.com/group/android-developers/browse_thread/thread/ba48bb0d90c9f8e1

I don't think I'm cross-posting! I'm asking a fresh new question -
I'd like to find out if there's an official status of running dynamic
languages on Dalvik, somewhere out there. Even if no one is working
on getting dynamic JVM languages running on Dalvik, I'd like to know
that, Obviously, I hope someone out there is working on this, or
considering working on it :P

On Oct 27, 9:57am, remi <[EMAIL PROTECTED]> wrote:
--~--~---------~--~----~------------~-------~--~----~



Status of Jython, JRuby, Scala, etc Android development?

by remi » Mon, 10 Nov 2008 22:35:50 GMT


 ust stumbled upon this ... looks like someone implemented Jython on
Dalvik???? http://code.google.com/p/jythonroid/ no idea how stable it
may or may not be ... could be hot, though!

On Nov 10, 3:26pm, remi <[EMAIL PROTECTED]> wrote:
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Image issue android

Hi guys,

I am  having a some problems at the moment with images using JJIL and
android, i was wondering if
anyone could help me.
My problem is this i need to run some analysis on an image and to do
so i need to have it in jjil.core.image format and once those
processes are complete i need to convert the changed image from
jjil.core.image to java.awt.image.
I cant seem to find a method of doing this does anyone have any ideas
or have any experience with this?

Thanks
--
Danny

-- 

2. listview +icons+ sqlite

Hi! I'm trying to read datas from a db, display them into a list with
icons ( not fixed but changing in base of the value read in the db). I
know how to do this thing, reading values from a simple array:

public class DynamicDemo extends ListActivity {
TextView selection;
String[] items={"cinema", "cinema", "sport", "sport", "music", "art",
"shopping", "shopping", "music"};

//@Override
public void onCreate(Bundle icicle) {
                super.onCreate(icicle);
                setContentView(R.layout.main);
                setListAdapter(new IconicAdapter());
                selection=(TextView)findViewById(R.id.selection);
}


class IconicAdapter extends ArrayAdapter {
                IconicAdapter() {
                super(DynamicDemo.this, R.layout.row, items);
}

//@override
public View getView(int position, View convertView, ViewGroup parent)
{

        LayoutInflater inflater=getLayoutInflater();
        View row=inflater.inflate(R.layout.row, parent, false);

        //set view for text
        TextView label=(TextView)row.findViewById(R.id.label);
        label.setText(items[position]);

        //set view for icon
        ImageView icon=(ImageView)row.findViewById(R.id.icon);

        //select correct icon
        if (items[position].equals("cinema")) {
                icon.setImageResource(R.drawable.cinema);
        }
        if (items[position].equals("sport")){
                icon.setImageResource(R.drawable.sport);
        }
        if (items[position].equals("art")){
                icon.setImageResource(R.drawable.art);
        }
        if (items[position].equals("shopping")){
                icon.setImageResource(R.drawable.shopping);
        }
        if (items[position].equals("music"))    {
                icon.setImageResource(R.drawable.music);
        }
return(row);
}
}
}

But I cannot find a way to do the same thing using the cursor with the
result of the query. Anyone can help?
thanks!

-- 

3. No light sensor and/or proximity sensor detected on Hero?

4. Programming the trackball light

5. How to create a map app with the new google maps?

6. How to make the consistent WebView (not lauching a new Web browser?)

7. why my onScrollStateChanged(AbsListView view, int scrollState) effetct nothing