Article View: comp.lang.misc
Article #7094Re: Use scheme || nothing
From: Matt DiMeo
Date: Fri, 04 Nov 1994 17:21
Date: Fri, 04 Nov 1994 17:21
22 lines
1932 bytes
1932 bytes
>>Translating ksh93, perl5, or python into scheme will only slow them >>down. Why ever would you want to do this? > >Why do you think that? Almost every Scheme interpreter I've tried outruns >python, ksh, and perl on simple benchmarks like arithmetic and function >calling. Scheme and perl, for example, encourage very different styles of programming. Perl programs tend not to be as function-call intensive as lispish programs. So by switching to scheme, you gain a little bit on a little part of the program, and lose out on things that perl is really good at. There exists a translator from awk to perl (a2p). I used it once, and the translated version was somewhat slower. Then I rewrote the program from scratch using perl idioms, and it ended up being 30% faster than the awk implementation. This kind of experience makes me leery of ideas that rely on quality machine translation between languages. A bigger problem, IMHO, is that a translated program is almost always less readable than the program in its native language. -Matt
Technical Details
Message-ID:
<39dqin$oj6@btree.brooktree.com>Path:
arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!library.ucla.edu!galaxy.ucr.edu!ihnp4.ucsd.edu!network.ucsd.edu!btree.is.brooktree.com!mdimeoReferences:
<394kll$kso@csnews.cs.Colorado.EDU> <LIBERTE.94Nov2143656@void.ncsa.uiuc.edu> <398vo8$ari@csnews.cs.Colorado.EDU> <399h73$8e8@henri.mindspring.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f891f,9bda08f2f068881f X-Google-Attributes: gidf891f,public X-Google-Thread: 1025b4,9bda08f2f068881f X-Google-Attributes: gid1025b4,public X-Google-ArrivalTime: 1994-11-04 09:21:27 PST Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!library.ucla.edu!galaxy.ucr.edu!ihnp4.ucsd.edu!network.ucsd.edu!btree.is.brooktree.com!mdimeo From: mdimeo@brooktree.com (Matt DiMeo) Newsgroups: comp.lang.misc,gnu.misc.discuss Subject: Re: Use scheme || nothing Date: 4 Nov 1994 17:21:27 GMT Organization: Brooktree Lines: 22 Message-ID: <39dqin$oj6@btree.brooktree.com> References: <394kll$kso@csnews.cs.Colorado.EDU> <LIBERTE.94Nov2143656@void.ncsa.uiuc.edu> <398vo8$ari@csnews.cs.Colorado.EDU> <399h73$8e8@henri.mindspring.com> NNTP-Posting-Host: janx.is.brooktree.com