Thursday, May 13, 2010

[android-developers] Re: new interpreter for Android

I don't mean to be discouraging; in fact, I'd like to be encouraging
of such efforts in general.

But I'm not clear on what problem you are solving.

Why scripting? Why a new language, as opposed to say using Javascript
and adding Android facilities?

A bit more explanation of your motivations and goals would put it in
context.

On May 12, 2:36 pm, Andrei <gml...@gmail.com> wrote:
> I am writing pure Java interpreter for Android
> The language itself looks similar to JavaScript
> The goal is to be able to write majority of apps on the Market
> using scripts
> It is in Alpha stage
> The interpreter jar right now is 62 Kb
> If you are interested to see how it works,
> install apk from link below, it has examples of scripts and the src
> Long press entry to see it's source
> Please let me know what you think.
> Thanks
>
> http://gmlvsk.appspot.com/apk/IProgram.apk
>
> This is just one of the examples.
> It places 2 buttons on screen and changes text when you click them
> -------------------------------------------------------------
>
> var layout;
> var button1, button2;
> var cb1[], cb2[];
> var counter1 = 0;
> var counter2 = 0;
>
> layout = LinearLayout.newObj();
> layout.setMainView();
>
> button1 = Button.newObj( "button1" );
> button2 = Button.newObj( "button2" );
>
> cb1["onClick"] = {
>   counter1++;
>   button1.setText( "clicked " + counter1 + " times" );};
>
> button1.setCallback( cb1 );
>
> cb2["onClick"] = {
>   counter2++;
>   button2.setText( "clicked " + counter2 + " times" );};
>
> button2.setCallback( cb2 );
>
> layout.addView( button1, LinearLayout.FILL, LinearLayout.WRAP );
> layout.addView( button2, LinearLayout.FILL, LinearLayout.WRAP );
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscribe@googlegroups.com
> For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate