Hacker Newsnew | comments | leaders | jobs | submitlogin
Google Open Source Blog: Introducing Android Scripting Environment (google-opensource.blogspot.com)
81 points by Anon84 245 days ago | 29 comments


14 points by inc 245 days ago | link

This is great. I remember writing games as a kid on a pocket computer during long car rides. Imagine being a kid today, with all these great toys.

-----

8 points by dflock 245 days ago | link

Time to finally get a new phone, methinks.

-----

5 points by sketerpot 245 days ago | link

I'm waiting for some more Android phones to become available, so I'll have more choice:

http://en.wikipedia.org/wiki/Android_%28operating_system%29#...

-----

3 points by callahad 245 days ago | link

I picked up a Dev Phone 1 (G1 / HTC Dream) last week, knowing full well that more refined devices are in the pipeline. I'll probably replace it for day to day usage in the not so distant future, but it'll stay relevant as a lowest common denominator for app development and testing.

-----

2 points by defrex 245 days ago | link

I recently got the HTC Magic (G2). It's pretty sweet. The battery life is good, too. It lasts me all day with heavy use.

-----

1 point by pmorici 245 days ago | link

I'm waiting for the OpenPandora, http://openpandora.org/

-----

5 points by buugs 245 days ago | link

I kind of really want an android phone now.

-----

5 points by ianbishop 245 days ago | link

Does anything like this exist on the iPhone/Pre?

-----

9 points by jodrellblank 245 days ago | link

The iPhone EULA (or maybe app store agreements) prohibit scripting and interpreting, but if you have a jailbroken one you can install Python (search for Python in Cydia).

Coding using the iPhone keyboard isn't much fun, and as it's unsupported there are limited APIs - but there is a Python/Objective-C package, and a sample GUI app which loads a long list from a data provider (with full scrolling), and with a jailbroken phone and SSH, you can upload and edit remotely and so on.

-----

4 points by nileshk 245 days ago | link

I wish the iPhone supported Bluetooth keyboards (or some form of external keyboard). It would make using SSH and such much more pleasant. Maybe someone will use the external peripheral framework in OS 3.0 to add an external keyboard. I've seen one hack that did add a keyboard.

Does either of the Android phones support Bluetooth keyboards?

-----

1 point by Zaak 244 days ago | link

Android doesn't yet support the bluetooth profile you'd need to pair with a keyboard. I hope that full bluetooth support will be in an Android update later this year, but I don't think anything definite has been announced.

-----

3 points by kingsley_20 245 days ago | link

PhoneGap will let let you develop with HTML/Javascript/CSS, but compile to native code. That's the closest I know of. Bonus: it will also compile to android (basically a webkit wrapper).

-----

2 points by tremendo 245 days ago | link

Titanium mobile, beta was just released today http://www.appcelerator.com/products/titanium-mobile/

-----

2 points by pavlov 245 days ago | link

Hmm. Python has been available for Symbian/S60 for at least five years. Surely there are interactive scripting environments on Windows Mobile as well. What makes ASE special?

-----

3 points by bad_user 245 days ago | link

Every time some new project comes along, the "what makes this project special" inevitably appears.

In this case, shouldn't it be "What makes Android special?", since ASE is a complementary addition?

-----

1 point by limmeau 245 days ago | link

Can you write Python/S60 programs on the phone's keyboard? (Honestly, I don't know)

-----

3 points by pavlov 245 days ago | link

I haven't tried it, but I don't see why not... The project's feature list mentions that there's a console for interactive development.

Of course Symbian is one of those old-fashioned operating systems with a user-accessible file system, so one can also just open a text editor, write a script, save it as a file and run it the PyS60 script shell.

-----

2 points by danw 245 days ago | link

Yes you can. It's a normal python interpreter.

-----

2 points by davidw 245 days ago | link

Well, that sort of blows the raison d'etre for Hecl's Android port out of the water, but it's really cool to see nonetheless, and one of the reasons why Android is a great platform for those who want to hack on stuff.

Actually, I think Hecl will still be useful for some things: it compiles directly to dalvik bytecode, whereas these are native processes which are launched/managed/interacted with via jsonrpc.

-----

2 points by joshsharp 245 days ago | link

I really thought that they'd make versions of these languages that would compile to Dalvik bytecode, so that people weren't restricted to writing Java Android apps. Makes sense given it's a custom VM, right? Guess we're halfway there now.

-----

3 points by davidw 245 days ago | link

I think you could definitely do that with Lua (I know someone has ported it to J2ME), and Javascript. Python and Ruby are harder, because they are bigger, and their Java implementations use lots of more 'advanced' stuff like reflection and bytecode generation that are not going to fly on Dalvik.

-----

1 point by Andys 245 days ago | link

Anyone having trouble installing this on a G1? I am getting "not enough space" messages upon download, even though I have >50MB free on the phone.

-----

2 points by joeyo 245 days ago | link

Worked for me. I'm on Cupcake. Not sure how much space I had before the install, but after it I have 7MB left.

-----

3 points by Andys 245 days ago | link

Yes, I got it to work by rebooting the phone (eek!)

Whole thing takes about 12MB after install, much bigger than any other app.

-----

1 point by davidw 245 days ago | link

Wow, that's huge. Ok, now I'm not feeling quite so bad about Hecl.

-----

1 point by peregrine 245 days ago | link

Well if they give an easy way to deploy it this could be fun.

-----

3 points by martey 245 days ago | link

I get the impression that this is for prototyping as opposed to a new way to create applications.

ASE lets you develop on the device itself using high-level scripting languages to try out your idea now, in the situation where you need it, quickly.

-----

2 points by Andys 245 days ago | link

It would be possibly to make them deployable, but use of an application would require pre-installation of the rather hefty SDK install.

Kind of like a ".NET" scenario.

-----

2 points by peregrine 245 days ago | link

The easier it is to deploy applications, and the more options available the better. :)

-----




Lists | RSS | Bookmarklet | Guidelines | FAQ | News News | Feature Requests | Y Combinator | Apply | Library

Analytics by Mixpanel