2

I'm looking for an embedable scripting language that is -

  • compiled
  • statically typed
  • garbage collected
  • lightweight and fast
  • cross platform

Thanks.

Alon Gubkin
  • 56,458
  • 54
  • 195
  • 288
  • 1
    Lua is probably the closest to what you want -- it fulfills all the criteria you listed except static typing. See http://stackoverflow.com/questions/813926/strongly-typed-lua. You may have to roll your own preprocessor: http://blog.reverberate.org/2009/02/09/static-lua/. The only other language that has static typing and garbage collection is Objective-C 2.0, but it is not a embeddable scripting language. – Gilead Aug 20 '10 at 00:37

3 Answers3

1

What about Lua?

doron
  • 27,972
  • 12
  • 65
  • 103
0

V8 is:

jbeard4
  • 12,664
  • 4
  • 57
  • 67
0

Try the Squirrel programming language http://www.squirrel-lang.org/

If you can remove "statically typed" from requirements and use a Dynamic language then i would recommend the Ring programming language http://ring-lang.net

msfclipper
  • 96
  • 3