Courage in profiles

0Citations
Citations of this article
18Readers
Mendeley users who have this article in their library.

Abstract

This paper challenges the myth that Lisp programs are slow, and C programs are fast, by comparing two 2,000 line programs. The two programs are popular machine learning programs, Fahlman's Cascade Correlation program, CASCOR.1, and John Koza's Genetic Programming program, referred to here as GP. CASCOR1 is floating point intensive, while GP is floating point and structure manipulation intensive. These programs not only provide medium sized interlanguage benchmarks, but also provide an opportunity to study performance tuning. One man-day of tuning was done on each of the Lisp versions of the programs, using commonly available tools such as compiler advice and profilers. Much less than 10% of the code was changed. The performance of CASCOP-I (already highly optimized) was improved by almost 40%, comparable to or slightly faster than the C version. The main difference between Lisp and C is the quality of compiling a dot product loop. GP (not optimized, but well written pedagogical software) was improved by a factor of 30, and is over twice as fast as the C version which was advertised as "highly optimized". Lisp's advantages are due, at least in part, to automatic garbage collection and dynamic typing. In real programs, performance has more to do with choice of algorithm, and quality of compiler than on choice of language.

Cite

CITATION STYLE

APA

Anderson, K. R. (1995). Courage in profiles. In Papers of the 4th international Conference on LISP Users and Vendors, LUV 1994 (pp. 11–29). Association for Computing Machinery. https://doi.org/10.1145/224139.1379846

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free