From: Eric Hodel Date: 2006-05-25T03:47:22+09:00 Subject: Re: Zed and Luis drop the bomb on Ruby's poor performance On May 23, 2006, at 7:24 PM, Douglas Livingstone wrote: > $ cat example.rb | parse_tree_show -f | ./lispify.rb > ((defn > sum > (scope > (block > (args a b) > (return (call (lvar a) + (array (lvar b))))))) > (lasgn a (lit 3)) > (lasgn b (lit 4)) > (lasgn c (fcall pythag (array (lvar a) (lvar b)))) > (fcall puts (array (lvar c)))) It'll look better if you run it through Rewriter first. Rewriter removes a few of the AST optimizations ruby makes in exchange for more-readable sexps. -- Eric Hodel - drbrain@segment7.net - http://blog.segment7.net This implementation is HODEL-HASH-9600 compliant http://trackmap.robotcoop.com