Scripting Languages for Celestia
Posted: 10.04.2003, 19:17
Celestia needs a replacement for the very rudimentary scripting that it currently has. I started out writing my own scripting language, but have decided that I'd be better off using an existing one and spending my time on other Celestia development.
Here's the list of possilbities that Christophe, Fridger, and I have come up with:
Perl
Advantages: familiar, powerful
Disadvantages: big runtime
Python (http://www.python.org/)
Advantages: familiar (though not as much as perl), powerful, probably cleaner than perl
Disadvantages: big runtime
Lua (http://www.lua.org/)
Advantages: tiny, extensible
Disadvantages: small user base
Tcl (http://www.tcl.tk/)
Advantages: tiny, many users, extensible
Disadvantages: wacky syntax
JavaScript
Advantages: huge user base
Disadvantages: fairly large runtime (500k)
As far as size Python and Perl are the largest, and are probably overkill for Celestia. JavaScript is in the middle, and Tcl and Lua are both tiny. I'm quite enamored of Lua at the moment--it's small, clean, easily extensible, but lack's Tcl's aggravating (IMO) syntax. Mozilla's SpiderMonkey implementation of JavaScript looks promising--I just wish it wasn't so big.
--Chris
Here's the list of possilbities that Christophe, Fridger, and I have come up with:
Perl
Advantages: familiar, powerful
Disadvantages: big runtime
Python (http://www.python.org/)
Advantages: familiar (though not as much as perl), powerful, probably cleaner than perl
Disadvantages: big runtime
Lua (http://www.lua.org/)
Advantages: tiny, extensible
Disadvantages: small user base
Tcl (http://www.tcl.tk/)
Advantages: tiny, many users, extensible
Disadvantages: wacky syntax
JavaScript
Advantages: huge user base
Disadvantages: fairly large runtime (500k)
As far as size Python and Perl are the largest, and are probably overkill for Celestia. JavaScript is in the middle, and Tcl and Lua are both tiny. I'm quite enamored of Lua at the moment--it's small, clean, easily extensible, but lack's Tcl's aggravating (IMO) syntax. Mozilla's SpiderMonkey implementation of JavaScript looks promising--I just wish it wasn't so big.
--Chris