From owner-freebsd-ports@FreeBSD.ORG Fri Sep 29 20:21:10 2006 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2395D16A417 for ; Fri, 29 Sep 2006 20:21:10 +0000 (UTC) (envelope-from heli@mikestammer.com) Received: from smtp107.sbc.mail.re2.yahoo.com (smtp107.sbc.mail.re2.yahoo.com [68.142.229.98]) by mx1.FreeBSD.org (Postfix) with SMTP id 5467D43D8B for ; Fri, 29 Sep 2006 20:20:57 +0000 (GMT) (envelope-from heli@mikestammer.com) Received: (qmail 39743 invoked from network); 29 Sep 2006 20:20:56 -0000 Received: from unknown (HELO gondolin.mikestammer.com) (mikestammer@sbcglobal.net@71.147.41.2 with login) by smtp107.sbc.mail.re2.yahoo.com with SMTP; 29 Sep 2006 20:20:56 -0000 Received: from localhost (localhost [127.0.0.1]) by gondolin.mikestammer.com (Postfix) with ESMTP id 3208660 for ; Fri, 29 Sep 2006 15:20:56 -0500 (CDT) X-Virus-Scanned: amavisd-new at mikestammer.com Received: from gondolin.mikestammer.com ([127.0.0.1]) by localhost (gondolin.middleearth.mikestammer.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ESWxyzMUnlo4 for ; Fri, 29 Sep 2006 15:20:54 -0500 (CDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: eric) by gondolin.mikestammer.com (Postfix) with ESMTP id AB3B512 for ; Fri, 29 Sep 2006 15:20:54 -0500 (CDT) Message-ID: <451D8026.8030608@mikestammer.com> Date: Fri, 29 Sep 2006 15:20:54 -0500 From: Eric User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: ports@freebsd.org References: <20060929172122.GA80952@lpthe.jussieu.fr> <20060929201426.GG983@turion.vk2pj.dyndns.org> In-Reply-To: <20060929201426.GG983@turion.vk2pj.dyndns.org> X-Enigmail-Version: 0.94.1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Subject: Re: Yet another INDEX builder. X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Sep 2006 20:21:10 -0000 Peter Jeremy wrote: > On Fri, 2006-Sep-29 19:21:22 +0200, Michel Talon wrote: >> timings (*) one gets. On my machine, a P4 3Ghz, oldish, it takes 23 minutes to >> complete building the INDEX, but the python script doesn't run more than 1 >> minute. Everything else is IO, i think. So one cannot expect any performance >> improvement by writing such a program in C. > > IMHO, the advantage of using C is that it would remove the need for > yet another interpreter to be installed to manage my ports. Or, to > put is another way, by writing it in python, you have made your script > less attractive to me than it would be if it was in C/sh/awk. > > Several years ago, the Project went to a lot of effort to re-writes > bits of the base system in C/sh/awk to allow perl to be removed. > Ports-based maintenance tools are (of course) free to use any language > but the proliferation of different tools using different languages > means that I wind up with a large number of languages and interpreters > installed just to easily manage my system: > - CVSup needs Modula-2 > - portupgrade needs Ruby > - your new index builder needs Python > - various other ports management tools use perl > > Please don't take the above as a personal attack - I'm merely pointing > out that there are other reasons apart from performance for using C. > what do those tools do that portmaster along with portsnap cannot do? Portmaster is all sh code I believe and requires no dependencies. it seems to do everything and does it with aplomb! what are the reasons for all these various tools, just fun projects for people?