12 ms·
Well, considering the article is from 1999 (hell, I didn't know FlipCode was still even around these days), "back in the day" scripting game engines was an emer
by moron4hire 17y ago
Well, considering the article is from 1999 (hell, I didn't know FlipCode was still even around these days), "back in the day" scripting game engines was an emerging idea. It was a very rare project that talked about scripting, in most cases they were completely custom scripting languages, and often not Turing complete. Lua gained popularity, but it was slow, the game industry suffers from a lot of NIH.
- davidw 17y agoOusterhout's ideas and papers had already been out for a while, and Tcl itself had been around for 10 years at that point. So it's definitely a case of NIH.
- samlittlewood 17y agoIIRC, lua was pretty much the first embeddable interpreter that had a memory footprint acceptable in games - both in absolute size (esp. not linking the compiler), and in terms of allocation patterns, as consoles tended to have small direct caches. I remember several attempts to ship with an existing language (eg: Python, Java). A couple did succeed, but at a large cost. It was however, pretty easy to sit down with a copy of Kernighan&Pike "The UNIX Programming Environment" and bang out a lightweight compiler/bytecode interpreter that did everything the game needed - keeping precious RAM for gameplay.
- chipsy 17y agoIt's not. General-purpose scripting isn't necessarily the best choice if the scripting is used only for designer tasks like directing cinematics, movement patterns, simple event-trigger relationships, etc. Between that, the soft real-time requirements, and the historically tiny memory space of consoles, something simplistic and custom is preferable..
- davidw 17y agoSomething simplistic: maybe, something custom... probably not. There's nearly always more value in using something that other people use too due to the positive network externalities. Granted, they may be weaker in cases like this where there is not a great deal of code sharing, but one-off languages tend to end up being a burden. Which is why they seem to have ended up with Lua, which is probably the best fit for that problem domain. Cut down versions of Tcl probably would have been ok, and have been successfully used for things like embedded systems, but probably are more work than Lua, which is 'cut down' by default.