Ask HN: Programming on Mobile Phone.
I just bought the Samsung Corby touchscreen phone. While playing games on it, it just struck me that if we can edit texts files and view pdfs on a mobile why cant we program on it?Ok not like actual major programming work, but lite tests for the time u have a brain wave and just need to test it. I searched for it and found some non mainstream scripting languages like hecl[1], mathpro [2] and mobilebasic [3].
I was wondering if anyone knows implementation of a mainstream(er) language. I think something like lisp would be good also as jRuby can be run on JVM cant a java enabled mobile act as JVM?
[1]http://www.hecl.org/ [2]http://www.mobile-sciences.com/ [3]http://www.mobilebasic.com/
I wrote Hecl, and think you should give it another look:-)
The problem is that 'mainstream' languages are awfully big. The initial versions of Hecl ran on my Nokia 3100, which had a limit of 64K for applications. Also, most mainstream languages that run on top of Java run on 'regular' Java, not Java ME, which lacks things like reflection. This means that porting them to Java ME is not trivial. Android might be a better bet, but it's still tricky, and it's still an environment where you don't want to be wasteful with space.
The Nokia N900 smartphone is currently the mobile programmer's paradise. Underneath its Maemo OS veneer is a fairly standard Linux. A terminal is part of the standard install, and there's no jailbreaking needed to install whatever you want.
There are packages for Python, Perl, GCC... And of course you can run pretty much anything by building it from source. The ARM A8 Cortex CPU is fast enough that it actually makes sense to do this.
If you want a more desktop-like programming environment, it's even possible to install Debian on the N900.
Why not Python? Maemo, Android and Nokia's s60 (at least) support it fairly well. Also, if you have a decent idea, have a look at http://ycombinator.com/rfs5.html
I find the Android Scripting Environment to be quite cool: http://code.google.com/p/android-scripting/
And it offers quite a few languages to play with, including Python, JRuby and Javascript (via Rhino).
Now if it would only have a better development environment...
You can run python on windows mobile; I even found some kind of IDLE version for it - there's a bunch of links here: http://www.awaretek.com/pymo.html#win I thought it was pretty good, but typing symbols was a pain. I wrote some twitter data mining stuff with it while waiting for a plane with it once.
If you want to do anything else with your phone, you don't really want a windows mobile, though :-(
The T-Mobile G1 has an excellent, 5 row hardware keyboard, and I made use of it on many occasions to SSH into my server and make some modifications to code that I had ideas for, but didn't want to wait to get home to work on. Because the keyboard actually had multiple alt/shift and hardware keys, ConnectBot could remap them as tab, control and escape keys, so I could actually use Vim without any problems. Can you say that about your phone? :P
Well, if you want a challenge, there's Pocket APL, which offers a complete IDE for APL on Windows Mobile:
http://handheld.softpedia.com/get/Desktop-and-Shell/Developm...
Okay, testing, trying... something just to spend time and learn instead of playing games. But I doubt you can do any work on it (if you have a project with databases and that needs lot of programs to execute).
As long as it's for fun then it can be!
I believe this is one of PG's requests for YC applications.
all these options you people give are good but work on either s60 or windows mobile, anything for java?