mixing worlds - complang.tuwien.ac.at€¦ · mixing worlds stackbasierte sprachen, gruppe 100...
TRANSCRIPT
Mixing WorldsStackbasierte Sprachen, Gruppe 100
18.12.2009
Wolfgang Bumiller (0725517)
Peter Frühwirt (0725673)
Martin Perner (0725782)
Postscript eats with Forks
A pacman implementation with Forth.
th
Architecture
• Postscript 3D rendering engine
• Logic over Forth
• Interprocesscommunication using FIFO
• Distributed system
• Simple artificial intelligence agent
• Integrated sound (mplayer connection)
Architecture
user input
Input
gforth pacman.fs
game logic
cat engine.eps
rendering
while(true)
echo „frame“
sleep 0.1
Output mplayer ghostscript
Language highlights
• Execution tokens (Game logic, Forth)
• Dynamic scoping (Rendering engine, Postscript)
• Document structuring
Livedemo