You Are Here:

Community: Blogs

Jacek Wojciechowski's Forum Nokia Blog

Open source scripting for mobile phones (part 1)

jack44 | 06 September, 2007 16:48

If you had to create a prototype of mobile application quickly, many of you would probably choose Python - someone may justify this choice by pointing out that you can write and run the code (script) immediately on the device and that other similar solutions aren't so integrated with smartphone's advanced functions. For simpler tasks you can choose Perl, Ruby, Opl (or some others). Such solutions have one substantial drawback - they need operating system to work on, in this case - Symbian. Recently, I've found interesting Java based option (it works with J2ME, MIDP + CLDC based devices). It's called HECL and it's an open source project.


Hecl derives simple, flexible, command based approach from Tcl and it's easy to learn even for people who aren't programmers. Of course, Hecl isn't a 'replacement for Java', but I find it as a complementary approach to Java. It's unlikely that an entire software would be written only in Hecl, so it's interesting how you can integrate Hecl and Java. Generally, there are two ways of doing this:

  • calling Hecl from Java - to utilize Hecl code from Java, you need to initialize the interpreter and then use it to evaluate the code
  • creating Java Extensions for Hecl - write your program in Hecl and add Java extensions to perform specific tasks. This model is very popular with mature languages like Tcl, Ruby and Python, where the scripting language contains all the functionality necessary to write a fully functioning system, and extensions (usually written in C) are needed only to deal with specific tasks.

You can use Hecl for example to script some configuration, automatically get the updates of the application just by downloading a text file (self-updatable script); one interesting thing is that you may have more than one of the interpreters at a time (in java code).


Thus, you don't have to wait for JavaFX Script to appear, you may try similar idea today.

RSSComments

You must login to post comments. Login
 

Rate This

 
 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fblogsE2eforumE2enokiaE2ecomhttpE3aE2fE2fblogsE2eforumE2enokiaE2ecomE2findeE78E2ephpE3fopE3dViewArticleE26blogIdE3d15055E26articleIdE3d691X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZBlogContentQ qdcZtypeQUqfntypeZBlogE45ntryQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZjavaQ qfnZtopicQUqfnTopicZseriesE5f40Q qfnZtopicQUqfnTopicZseriesE5f60Q qfnZtypeQUqfntypeZBlogContentQ qfnZtypeQUqfntypeZBlogE45ntryQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZuserE5ftagQSxjavaX qfnZuserE5ftagQSxs60X qfnZuserE5ftagQSxseriesE2d40X qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZBlogContentQ qrdfZtypeQUqfntypeZBlogE45ntryQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ