From owner-freebsd-chat Mon Nov 18 01:57:57 1996 Return-Path: owner-chat Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id BAA27097 for chat-outgoing; Mon, 18 Nov 1996 01:57:57 -0800 (PST) Received: from diablo.ppp.de (diablo.ppp.de [193.141.101.34]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id BAA27078 for ; Mon, 18 Nov 1996 01:57:40 -0800 (PST) From: Greg Lehey Received: from freebie.lemis.de by diablo.ppp.de with smtp (Smail3.1.28.1 #1) id m0vPQSN-000QstC; Mon, 18 Nov 96 10:57 MET Received: (grog@localhost) by freebie.lemis.de (8.8.2/8.6.12) id KAA27749; Mon, 18 Nov 1996 10:26:15 +0100 (MET) Organisation: LEMIS, Schellnhausen 2, 36325 Feldatal, Germany Phone: +49-6637-919123 Fax: +49-6637-919122 Message-Id: <199611180926.KAA27749@freebie.lemis.de> Subject: Re: Who needs Perl? (Was: cvs commit: src/share/doc/handbook ...) In-Reply-To: from Ollivier Robert at "Nov 17, 96 01:25:40 pm" To: roberto@keltia.freenix.fr (Ollivier Robert) Date: Mon, 18 Nov 1996 10:26:12 +0100 (MET) Cc: chat@FreeBSD.ORG (FreeBSD Chat) X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-chat@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Ollivier Robert writes: > According to Greg Lehey: >> Looks like you're solving the wrong problem here. How about faster >> fork and execve? Then you don't need to learn another YACL. > > When the equivalent of a few lines of Perl is several sed/awk/cut in shell > (commonplace), even with a faster fork/exec, Perl will still be faster. Sure. And C will be faster than perl. > If anything, you'll fork/exec Perl faster :-) If I start perl :-) > For many tasks over 20 lines of shell script, Perl will be faster. There > are some things I'd consider difficult with sh/awk/sed that are almost > trivial with Perl. C wil be faster but unless you don't know Perl at all, > you'll end up writing it faster in Perl... Well, I won't say that I don't know perl at all, but I do know C, and I think I'll do it faster in C, so I obviously don't know enough perl. My real problem with perl is that it doesn't seem to offer enough to get to know well. And maybe I should choose tcl? Or guile? Or YACL? What do I do when the particular operation I want to do takes too long? Where's the C language interface? Where's the debugger? > Of course Real Programmers(TM) use Fortran. :-) Real Programmers code in hex. Fortran programmers are wimps who don't understand computers :-) Greg