[MacRuby-devel] [MacRuby] #528: Improve Tail Call Elimination

Jordan K. Hubbard jkh at apple.com
Sun Jan 3 23:45:47 PST 2010


I'd like to second the recommendation to not lose heart so quickly here!   If LLVM already supports the kind of TCO optimization you're looking for then that's half the battle right there.  MacRuby's usage of LLVM is already pretty sophisticated, but no one (least of all Laurent) would claim it's "finished", particularly in terms of all the various optimizations that might conceivably be done (the axiom "first make it work, *then* make it work fast" applies to most of the project's current priorities).  I encourage you to keep looking into it, if only as a learning exercise.  There are also other projects which use LLVM (http://llvm.org/ProjectsWithLLVM/) that might prove illustrative, if only to provide useful points of comparison.

- Jordan

On Jan 3, 2010, at 10:20 PM, Conrad Taylor wrote:

> Simon, after reading you blog post on the subject, I feel that you're well
> versed on the subject matter of TCO.  Yes, LLVM supports TCO very
> well and building languages in general.  I would recommend learning a bit
> about LLVM and llvm.org has some excellent documentation.  Also, they
> have several resources to receive assistance.  After you feel comfortable
> with LLVM, then looking at the problem within the MacRuby would  should
> become much easier.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20100103/e8538915/attachment.html>

More information about the MacRuby-devel mailing list