From owner-freebsd-arch@freebsd.org Mon Jan 7 21:16:54 2019 Return-Path: Delivered-To: freebsd-arch@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5CF59149FC8B for ; Mon, 7 Jan 2019 21:16:54 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: from mail-io1-f52.google.com (mail-io1-f52.google.com [209.85.166.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8BE0E818FF; Mon, 7 Jan 2019 21:16:53 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: by mail-io1-f52.google.com with SMTP id k2so1496770iog.7; Mon, 07 Jan 2019 13:16:53 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=0m1JSu8H5qJ6JW02NmNwZ0MZvvFYb8ygs31D6mGZydg=; b=IBTj6SH0o6AJ49n+KheAmRB/Z/A5TFa86CL1MYnoTTAFNq+Gp5LM37GstALq8ULch7 OcCPp/wnUJSwZW2Ar/72TYsMadN/nHmmIVEDyKluuPaCaMNtds7ym6BBBloO7etylLaV A34HUcInviOWzmAMsAvQsTFe587C2dmvf3iO0PbP/T6NSnPhCuGG40wpT4EPtHjJzv2n OIVLgckPuYatoL9oyt+921ZOGuSXNNwHI3GLs8JgEJQ9oz15R8aRYMyRP3yWseYW9Oj5 C3QsFGaYB0mF9YlrDVQ5fL5fs74oY02yXIM3ncVYlnC0KJ8hFrHsZn463ITNBTyipCS9 YYSQ== X-Gm-Message-State: AJcUukeZhJgUodCdOGMRr2tI2G8AGb3AzzLedGJCI3rmOmH/9RVUSAQ3 7GxKpz02DUiguj76QyZFVr9cwGyp X-Google-Smtp-Source: ALg8bN7li+weLljwl0u8Vw2IdlbfHAxVamZvotU7s/XuD9XfcY2KoM8VOW0UXu/EdzPCNfRHDBsJoA== X-Received: by 2002:a6b:c892:: with SMTP id y140mr41564238iof.192.1546895445406; Mon, 07 Jan 2019 13:10:45 -0800 (PST) Received: from mail-it1-f181.google.com (mail-it1-f181.google.com. [209.85.166.181]) by smtp.gmail.com with ESMTPSA id e22sm8727950iol.49.2019.01.07.13.10.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Jan 2019 13:10:45 -0800 (PST) Received: by mail-it1-f181.google.com with SMTP id g85so3284917ita.3; Mon, 07 Jan 2019 13:10:45 -0800 (PST) X-Received: by 2002:a24:5411:: with SMTP id t17mr7880233ita.32.1546895444984; Mon, 07 Jan 2019 13:10:44 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Reply-To: cem@freebsd.org From: Conrad Meyer Date: Mon, 7 Jan 2019 13:10:34 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: GNU-compatible, BSD-licensed bc To: Gavin Howard Cc: Dimitry Andric , "freebsd-arch@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 8BE0E818FF X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of csecem@gmail.com designates 209.85.166.52 as permitted sender) smtp.mailfrom=csecem@gmail.com X-Spamd-Result: default: False [-5.46 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[cem@freebsd.org]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; REPLYTO_ADDR_EQ_FROM(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; NEURAL_HAM_SHORT(-0.72)[-0.717,0]; FREEMAIL_TO(0.00)[gmail.com]; FORGED_SENDER(0.30)[cem@freebsd.org,csecem@gmail.com]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; TAGGED_FROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; FROM_NEQ_ENVFROM(0.00)[cem@freebsd.org,csecem@gmail.com]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[52.166.85.209.list.dnswl.org : 127.0.5.0]; RCVD_TLS_LAST(0.00)[]; IP_SCORE(-2.74)[ip: (-8.17), ipnet: 209.85.128.0/17(-3.76), asn: 15169(-1.68), country: US(-0.08)] X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jan 2019 21:16:54 -0000 On Mon, Jan 7, 2019 at 11:46 AM Gavin Howard wrote: > > On Mon, Jan 7, 2019 at 11:06 AM Dimitry Andric wrote: > > That said, are you aware of any great differences between your bc and > > the one originally from OpenBSD? > > Yes. See below for the important one. > > The non-important ones include the fact that I support *every* GNU > extension. That includes array references, void functions, the "halt" > keyword, etc. > >... > > My bc handles the Linux timeconst.bc script with aplomb from 0 to (at > least) 1000. It is part of my test suite, actually. > > You can try it out by running the following command after building my > bc (where BC_ROOT is the root directory of my bc): > > $ "$BC_ROOT/tests/bc/timeconst.sh" /location/of/timeconst.bc > > It won't have any output besides "Running timeconst.bc..." unless it > didn't pass the test. > > Also, this bc builds out of the box on FreeBSD. I have already made > sure of that. Just use: > > $ cd "$BC_ROOT" > $ ./configure.sh -O3 > $ make Gavin, This all sounds great to me. Consider me on-board with the idea. Thanks, Conrad