Python in game development?

Darrell Gallion darrell at dorb.com
Tue Aug 29 21:32:47 EDT 2000


Converting Python application to C I typically see a 6x improvement in
speed.
Your mileage may vary.

FORTH is really cool, but a bit like working in assembler. Maybe a FORTH
extension module would be useful.

import forth

prg="""
: recfib n <= 2 if 1 else n 1 - recfib n 2 - recfib + ;
"""
interp = forth.Forth(prg)
interp.exec("33 recfib")
print interp.pop()

Now Python is fast also :)
Please excuse the armature forthage.

--Darrell

----- Original Message -----
From: "Kragen Sitaker" <kragen at dnaco.net>

> Still, it is clear that a number of scripting languages are
> considerably faster than Python for some tasks: FORTH, Smalltalk, Lua,
> and Scheme all come out at least three times faster, and are all
> scripting languages by some definition.  Some interpreted FORTH
> implementations are ten times faster.






More information about the Python-list mailing list