In what form is squirrel sent?

Just out of curiosity, in what form is the squirrel code sent?  Is there a VM running on the Imp and plaintext gets downloaded to the imp.  Or is it compiled server side in to some native executable and then sent out?


-Kris

Neither, really. Squirrel, like most embeddable languages, compiles to portable bytecode. The bytecode is downloaded to the imp, which contains only the bytecode interpreter, not the compiler. This is part of the reason why run-time errors, such as objects not found, behave a bit differently from compile-time errors, such as syntax errors.

Peter

Interesting, thanks.  I come a straight C embedded world, I’ve never really dealt with any scripting languages before.