4 ms·
One specific reason why they rolled a custom scripting language is that they needed vector/matrix types (i.e. vector3f, etc) exposed to scripts, and adding thos
by kevingadd 13y ago
One specific reason why they rolled a custom scripting language is that they needed vector/matrix types (i.e. vector3f, etc) exposed to scripts, and adding those through an interface like cpython or lua's embedding api would have produced scripts that were incredibly slow at manipulating vectors. Presumably luajit might have fixed this, but I can understand that they didn't go that far.
- kmavm 13y agoTorch seems to be a concrete example of a numerically oriented luajit embedding that provides high performance linear algebra primitives. http://torch.ch/ http://torch.ch/
- tc104 13y agoTheir rationale for developing their own scripting language refers to Lua "fallbacks", which were a Lua feature from about a decade ago. It seems like they made their mind up a long time ago.
- oscargrouch 13y agoYeah.. luajit and its amazing ffi module to the rescue here..
- eropple 13y agoAngelScript can use them directly, though. Perhaps it was too immature when they made the decision.