Kristof Bastiaensen <kristof / vleeuwen.org> writes:

> Well, I do think it is possible to compile Ruby, but it would be to hard.
> Firstly eval and module_eval should be thrown away, because they need to
> be able to parse code at runtime.
> Continuations make compiling very messy, since the stack needs to be
> copied.

That's not strictly true.  If you convert the code to
continuation-passing style, reifying continuations doesn't require
copying the stack.  CHICKEN and many other Scheme compilers choose this
approach.

  mikael