[Openmcl-devel] tagbody and go
rpgoldman at sift.info
Wed Dec 8 15:33:52 CST 2010
On 12/8/10 Dec 8 -3:20 PM, Taoufik Dachraoui wrote:
> I am writing a compiler for a pure functional language with completely
> lazy evaluation (sharing).
> The compiler generates binary code for a virtual machine. I am trying to
> implement a simulator for it.
> It is easy to implement the simulator using cond (or ecase), but I
> thought if it does not cost me
> time why not implement it more efficiently. So, for performance issues I
> would like the simulator,
> for each encountered instruction (the opcode is represented by 1 byte),
> to directly jump to the
> corresponding code.
Apologies if I'm being foolish, but why can't you just make a vector
that's full of thunks (compiled lambdas of no arguments)?
More information about the Openmcl-devel