3 ms·
Here's a good comparison: http://markwatson.com/blog/2008/01/cool-common-lisp-elephant-object.html http://markwatson.com/blog/2008/01/cool-common-lisp-elephant
by jimbokun 19y ago
Here's a good comparison:
http://markwatson.com/blog/2008/01/cool-common-lisp-elephant-object.html http://markwatson.com/blog/2008/01/cool-common-lisp-elephant...
Performance is a big difference:
"Common Lisp compiled code runs much faster than Ruby: typical benchmark results are about 30 times faster - but Ruby's slowness is mitigated if a lot of processing is performed in native libraries like Ferret."
I don't think Ruby has all of the functionality of CLOS or the Meta Object Protocol. Here's Matz commenting on the lack of multi-methods in Ruby:
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/49964 http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/...
"Most OO langauge includes Ruby see methods as "element of an object" This does not hold for CLOS. You loose the tight relationship but gain a new level of flexibility."
Beyond that, I would say pick a programming methodology and there is probably a CL implementation of it somewhere out there built with macros. That's due to the greater maturity of CL and "real macros" (which have been well covered by others already). And beyond macros, the "code as data" paradigm enabled by s-expressions has other uses (I think Steve Yegge mentioned "executable log files" as an example).