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/
15 comments
[ 3.1 ms ] story [ 40.2 ms ] threadThe 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.
Err... I'm not quite parsing this. It's very easy to try things in Hecl, you can even write mobile applications on line, entirely in a browser:
http://www.heclbuilder.com
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.
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...
As long as it's for fun then it can be!
http://handheld.softpedia.com/get/Desktop-and-Shell/Developm...
I personally find this heartbreaking.
If you want to do anything else with your phone, you don't really want a windows mobile, though :-(