I'm currently writing an Entity/Component/System architecture game engine in C++, and I have the beginnings of a lua scripting system in place, which seems to be quite popular, but I feel Javascript or Python would be better.

My requirements are:

  • Able to bind C++ function calls to the scripting language.
  • Able to return data to the calling script.
  • Able to support heavily templated libraries, such as glm (optional, but desirable)
  • Must be lightweight.
  • Must have open source license, or similar, with no restrictions on any potential commercial use.

How would I go about doing this, in a similar way to Lua?

  • 1
    \$\begingroup\$ Not sure why you think Lua is out of date. \$\endgroup\$ – Almo Sep 30 '19 at 19:24
  • 1
    \$\begingroup\$ Did you try to search for libraries already yourself? You will quickly find libraries like Duktape. \$\endgroup\$ – progsource Nov 23 '19 at 13:27
  • \$\begingroup\$ I did, but I guess I wasn't asking google the right questions. Thanks for the pointer though. \$\endgroup\$ – Ian Young Nov 25 '19 at 13:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.