views:

96

answers:

2

I need to deploy a dynamic language to a small embedded Linux device, and have difficulty finding the right one: I want to build a small web-application with this language (with a small framework like Sinatra or Camping ) and write some scripts for maintenance.

I would prefer Ruby, as I have some experience in it, but after several days of trying to cross-compile it, I could only build the barebone interpreter, without the libs (miniruby). The problem with it is, that it's just Too Damn Large: more than 1 MB stripped!

What language are you using, and how difficult was it to get it working?

+1  A: 

Dynamic languages are very, very hard to minify. Perhaps tinypy will give you some inspiration for squeezing out more.

Ignacio Vazquez-Abrams
+4  A: 

I don't use it personally but lua has a very small footprint.

mikerobi
a co-worker of mine has had great success with lua. Depending upon your needs it can get pretty small as well.
Beanish
I'll second this. Lua is quite easy to get going since it will pretty much compile as ANSI C89 (as either C or C++).Feel free to check out eLua, which also has some patches and modules that make it suitable for microcontroller environments: http://www.eluaproject.net/ (the whole project might not meet your needs, but some of the ideas/patches/code might be useful)
James Snyder