title: Alternatives to Lua as an embedded language?
body: <p>I am working on an embedded system running Linux on a DSP. Now we want to make some parts of it scriptable and we are looking for a nice embeddable scripting language. These scripts should integrate nicely with our existing C++ code base, be small and fast.</p>
  
  <p>I understand that Lua is the industry choice for problems like this. We will probably go with Lua because it is tried-and-true and proven to be stable and so on. However, as a programming language it has some rather quirky corners.</p>
  
  <p>So, what alternatives are out there for embeddable languages?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>This is about a year later.  </p>
  
  <p>We actually used Lua on our embedded system and it performs marvelously well. Over time, we added more and more scripting support to more and more parts of the project and that really helped to bring it along.  </p>
  
  <p>Performance is outstanding, really. Even rather complex operations that involve searching through long arrays or fancy string operations perform surprisingly well. We basically never ran into Lua related performance problems at all.</p>
  
  <p>Interfacing with C functions is very straightforward and works really well. This allowed us to grow the scripting system painlessly.</p>
  
  <p>Finally, we were astounded at how flexible Lua proved to be. Our Lua interpreter has to run on a system with a nonstandard memory allocator and without support for the double data type. There are two well-documented places in one header file we had to modify to make Lua work on that system. It is really well suited for embedding!</p>