[Haskell-cafe] G machine in FORTH

2005-06-01 Thread Andrew Harris
Hi - Brace yourself... I work in an environment where FORTH is still used. I've been thinking about writing a G-machine interpreter in FORTH so that one could write Haskell like programs that would compile down and run "graph-reduction" style on the FORTH machine. Many developers think

[Haskell-cafe] STG questions

2004-10-19 Thread Andrew Harris
Hi - I am reading Simon Peyton Jones's "Implementing lazy functional languages on stock hardware: the Spineless Tagless G-Machine" (I have version 2.5) paper. I would like very much to understand the contents of Figure 5 which illustrate the mapping of the "map" function from STG code to C. H

[Haskell-cafe] no dynamic binding

2004-09-19 Thread Andrew Harris
Hi - I have another question. I am still working on a soccer server and thought it would be neat to create command objects that had a "toString" method. Then, I was going to keep a list of these command objects and at the right time stringify them and send them to the server. So I created a

[Haskell-cafe] monad question

2004-09-19 Thread Andrew Harris
Hi everyone, Well, I'm trying to build a soccer server client and am using Haskell. I thought I was muddling through well enough... but I have some questions. I am using the Robot monad that I copied from Hudak's book HSOE from page 272 (assuming I would understand it later). Here's the monad