MaiKee has asked for the wisdom of the Perl Monks concerning the following question:

Background: I was not able to find any computer game whis uses Perl as a scripting engine. A lot of games are completely written in Perl - but that's another question. We (a small team of enthusiasts) want to extend an open source c++ written Video Game with some scriptable elements. Currently we discuss the candidates (Perl, LUA and others). One aspect is: is the candidate language already used by other professional or big open source Video Games? Who can tell me some examples?
  • Comment on Which non-Perl Video Games using Perl as a Scripting Engine?

Replies are listed 'Best First'.
Re: Which non-Perl Video Games using Perl as a Scripting Engine?
by Trizor (Pilgrim) on Apr 09, 2007 at 21:25 UTC

    I know of several big name games that use Lua (A little game called World of Warcraft comes to mind, you may have heard of it) however none that use Perl.

    I am however also working (ailbet slowly) on a C++ library to bind subs/functions/methods/whathaveyou from a scripted language's namespace to a C++ object or class. I'm still working out the C++ side of the interface but the first implementation language is going to be my native Perl. Implementations in Lua, Python, and Ruby are also planned, but they'll come after I have a working system that uses Perl (As an aside, I am aware that perl is considered by many one of the hardest languages to embed. I figure if it can work, the others will be much easier.)

    I don't have a blog or website or anything that I post changes to, though I suppose I'll end up making one before this gets released.

Re: Which non-Perl Video Games using Perl as a Scripting Engine?
by samtregar (Abbot) on Apr 09, 2007 at 21:28 UTC
    I'm moderately confident the answer is no for Perl (although of course it's impossible to be sure). I can think of a few reasons why this might be - poor threading support, unpleasant embedding system, large memory footprint, etc. An extension language for a game needs to be fast, light on memory use and easy to bind to from your implementation language.

    I played with integrating Quake 3 and Perl once upon a time: Coagula. I did get a simple bot up and running around. The performance was terrible, but I never really put much time into it.

    -sam

Re: Which non-Perl Video Games using Perl as a Scripting Engine?
by chromatic (Archbishop) on Apr 10, 2007 at 17:21 UTC

    If I were doing this today, I'd use Lua. It's reportedly (I haven't tried) much easier to embed than Perl 5 (which I have tried to embed).

Re: Which non-Perl Video Games using Perl as a Scripting Engine?
by j3 (Friar) on Apr 10, 2007 at 17:47 UTC

    A game-programmer friend of mine tried using Simkin, but then had some cross-platform issues, and so was deciding between jumping to either Lua or Python. He went with Python (just to give it a go), and it works great. However, I believe many in the games industry sucessfully use Lua.

    I've often seen both Perl and Ruby folk recommending Lua for embedding as a game scripting engine.