Finding an Embedded Scripting Language for C ++ with 64-bit and Cross-Platform Support

I am looking for a scripting language that runs on 32-bit and 64-bit machines, as well as on Windows and Linux. I will embed it in a C ++ application, so I prefer it to be written in C ++ rather than C. I would also prefer the script to support streaming / asynchronous support.

So far, the languages ​​I've looked at are GameMonkey, Lua, and the V8 JavaScript Engine. V8 JavaScript is still the most attractive. I really do not want to use GameMonkey because AFAIK does not support 64-bit addressing. Lua is written in C, so I will probably use the C ++ shell, but I really don't like mixing C and C ++ code.

So, are there any other alternatives that I could look at?

+5
source share
5 answers

I say lua. It is ultraportable (it even works under PalmOS, WindowsCE and DOS!), Small (200-300k), fast, and very easy to associate it with C / C ++.

In addition, Michael Pall makes remarkable progress in implementing the LUA JIT. Its current beta version 4 supports x86 and x86_64, jitting and beats shit from almost every translator language I know: http://luajit.org/

+4
source

I personally prefer Lua over others. Perhaps because it is used by WoW, and I make my own settings for WoW add-ons. But I have seen many opinions that are good, even on SO.

+6
+3

Squirrel, ++, C/Java, OO ( ) . Lua , .

++, Lua, ( , ++).

+2
+1

All Articles