Article View: comp.lang.misc
Article #7056Re: Scheme vs. Perl, et al (was Re: Use scheme || nothing)
From: Tom Christiansen
Date: Sat, 05 Nov 1994 16:43
Date: Sat, 05 Nov 1994 16:43
24 lines
1767 bytes
1767 bytes
:-> In gnu.misc.discuss, shriram@cs.rice.edu (Shriram Krishnamurthi) writes:
:If you have specific examples of where Scheme -- in theory -- will
:lose over Perl -- in theory -- please post them. I am (and others
:like me are) interested in hearing about what people like you use
:these langauges for, and what problems we need to address. At the
:same time, go easy on using words like "drivel" in a poor context.
There's an optimization of the following simple-minded perl code
that runs extremely quickly:
@patterns = `cat patternfile`;
chop @patterns; # trailling newlines
while (<STDIN>) {
foreach $pat (@patterns) {
if ( /$pat ) { print }
}
}
--tom
--
Tom Christiansen Perl Consultant, Gamer, Hiker tchrist@mox.perl.com
Adding manpower to a late software project makes it later
Technical Details
Message-ID:
<39gco4$6mc@csnews.cs.Colorado.EDU>Path:
arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!agate!boulder!csnews!mox!tchristReferences:
<394kll$kso@csnews.cs.Colorado.EDU> <399h73$8e8@henri.mindspring.com> <39bjl5$bi0@csnews.cs.Colorado.EDU> <39eg6b$9t7@larry.rice.edu>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-05 08:43:48 PST Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!agate!boulder!csnews!mox!tchrist From: Tom Christiansen <tchrist@mox.perl.com> Newsgroups: comp.lang.misc,gnu.misc.discuss Subject: Re: Scheme vs. Perl, et al (was Re: Use scheme || nothing) Date: 5 Nov 1994 16:43:48 GMT Organization: Perl Consulting and Training Lines: 24 Message-ID: <39gco4$6mc@csnews.cs.Colorado.EDU> References: <394kll$kso@csnews.cs.Colorado.EDU> <399h73$8e8@henri.mindspring.com> <39bjl5$bi0@csnews.cs.Colorado.EDU> <39eg6b$9t7@larry.rice.edu> Reply-To: tchrist@mox.perl.com (Tom Christiansen) NNTP-Posting-Host: perl.com Originator: tchrist@mox