From: Robert Klemme Date: 2010-01-04T02:30:06+09:00 Subject: Re: Ruby in Lisp, preLisp On 01/03/2010 05:28 PM, Ruli Lupy wrote: > Hello, as I am learning Lisp and I like Ruby, I defined some macros in > Lisp, > for example > > f.each-line > h.each-key > h.each-value > > so you pay the price of having to specify the first argument, for > example the following Lisp code to collect the lines from a file. > > (let (lines) > (f.each-line "my.file" line (push "line" lines)) > lines) > > you obtain some speed up, because f.each-line is a macro and get > translated > into Lisp code. > > Do you think the notation is very ugly? I am sorry, yes. > The idea is that you can translate Ruby to Lisp in this way and get > some > more speed but the syntax requires a little more typing. > > What do you think of this? (code in comp.lang.lisp) My 0.02EUR: interpretation of programming languages in other programming languages usually does not help improve performance. I believe the approach to let Ruby run on a highly optimized runtime environment (like JRuby does with the JWM or IronRuby with CLR) is a more promising approach if you want to speed up Ruby execution. Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/