From owner-freebsd-current@FreeBSD.ORG Tue Jun 23 06:56:55 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0D32D106564A for ; Tue, 23 Jun 2009 06:56:55 +0000 (UTC) (envelope-from gabor@FreeBSD.org) Received: from server.mypc.hu (server.mypc.hu [87.229.73.95]) by mx1.freebsd.org (Postfix) with ESMTP id BB1568FC13 for ; Tue, 23 Jun 2009 06:56:54 +0000 (UTC) (envelope-from gabor@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by server.mypc.hu (Postfix) with ESMTP id BD39614D8A81 for ; Tue, 23 Jun 2009 08:56:53 +0200 (CEST) X-Virus-Scanned: amavisd-new at t-hosting.hu Received: from server.mypc.hu ([127.0.0.1]) by localhost (server.mypc.hu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id D5hpa39fy9XM for ; Tue, 23 Jun 2009 08:56:53 +0200 (CEST) Received: from [192.168.1.105] (catv-80-98-231-64.catv.broadband.hu [80.98.231.64]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server.mypc.hu (Postfix) with ESMTPSA id 4359114D5FE3 for ; Tue, 23 Jun 2009 08:56:53 +0200 (CEST) Message-ID: <4A407CB1.2060107@FreeBSD.org> Date: Tue, 23 Jun 2009 08:56:49 +0200 From: Gabor Kovesdan User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: FreeBSD Current References: <4A246C4D.6080409@FreeBSD.org> In-Reply-To: <4A246C4D.6080409@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: RFC: Replacing bc/dc to BSDL versions X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jun 2009 06:56:55 -0000 Gabor Kovesdan escribió: > Hello, > > as you might know, I'm working on a BSDL grep. It isn't totally ready > yet, because there are compatibility issues, which I have to resolve. > But looking at another BSDL tools, I've found out that OpenBSD has > BSDL bc and dc utilities. I've thought of replacing them. I think in > the bc/dc case, such a strict GNU compatibility isn't necessary as in > the case of grep, so we may replace them in base system. If there's no > objection to replacing them, I'll post a patch for review. Thanks for all your input. It took a while because of other priorities but I've made some tests concerning BSDL bc/dc. I've made a complete buildworld and tried mergemaster, which worked fine. I've also checked the GNU regression tests comparing the two versions. There's little difference. The speed is varying, sometimes GNU is faster, sometimes the BSDL versions. The accuracy seems to be the same up to 18 digits after the decimal point. I've also checked the OpenBSD regression tests found only one case, which didn't work but these tests seem to be specific for BSDL bc/dc as they don't really work with the GNU version. I've made a patch, which doesn't remove GNU bc/dc yet, just detaches them from the build so that in case of a regression we can easily revert while the problem is fixed: http://kovesdan.org/patches/bcdc.diff -- Gabor Kovesdan FreeBSD Volunteer EMAIL: gabor@FreeBSD.org .:|:. gabor@kovesdan.org WEB: http://people.FreeBSD.org/~gabor .:|:. http://kovesdan.org