From owner-freebsd-arch@freebsd.org Wed Jan 9 16:29:03 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 EDAE9148638C for ; Wed, 9 Jan 2019 16:29:02 +0000 (UTC) (envelope-from gavin.d.howard@gmail.com) Received: from mail-vs1-xe2f.google.com (mail-vs1-xe2f.google.com [IPv6:2607:f8b0:4864:20::e2f]) (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 29D128F832 for ; Wed, 9 Jan 2019 16:29:02 +0000 (UTC) (envelope-from gavin.d.howard@gmail.com) Received: by mail-vs1-xe2f.google.com with SMTP id n10so5084915vso.13 for ; Wed, 09 Jan 2019 08:29:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=FD7QZQk6I4g62LqRkmcvJq5mX5iQwsURYNTDm8tDCc4=; b=JfSlo4oe0KFB7de+Fx5kCCZUj6fGo2DNPyXqsHFYaTvx+nRGjSiLloejVqA1FE92UA OS9n0oqFOsTqm732r+FxoiQRrhBHDHMY81aNUSdVgeRu/tDZ5qRG6pNhzj3xOnInMmwB gO2KGNayRjpaAy9QeDRzTICjgHA5/I9HHVHPVoTHUoRUIbQe94lLNtydHqfMZqmDLM7X mwSUQlVDtv9YASnzRzTnA9jiQ0ItSxonzBpxinMzayrvcTbHkNYItfKMzErIzBdCysn9 duJQclpFmdQqqXzmoGnpStomBBt5ja0ZBzNMKXVyMItVIJvjYCk5RmbZ4Lx2z3EADvps rDLQ== 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:from:date :message-id:subject:to; bh=FD7QZQk6I4g62LqRkmcvJq5mX5iQwsURYNTDm8tDCc4=; b=UsaPtSSi396OLGwTCxfvuIPbg9DomDiJ+Q4rdmXaQUaNabCxiDptXX+DgIYnrlnAFG 48KFYLD/IyPgf7OaGowYFC3s9LHW85QIFCMEVQWQNzTNH2MFkoGgE6Ha/gydp1wsPhgU S2Ry4scyhQRK3VIDARZ7FP/aCNr6nDgUENxMgdKOAY+mIeNmoLpu76ii27/zJGGYEVkA EdTcHSSrv4V70DOXYEpl9NpQlzKHV5xLn2io3ixKXUQWNtM0U6NogJ6f5rX9Bji+LLRk HeGJt2YFV1B7y8+26Qp0h8ds4skTzaf9MwnQbWo+Ppz8mZ2mpKQuU8kffW5a+UIO1iR8 QkGQ== X-Gm-Message-State: AJcUukd3QOy/1JQm0+LfAPYFwKmHeiHdX68Bq8Lguj5dzg5ZOryo3OxG 9KeIvcg6E2GipN6osFxVyutDCVbRFZSA72fPL8264w== X-Google-Smtp-Source: ALg8bN6E8M+R0XBPaSbDbn/q3DrmkhX/nSARdkC+D47mTSutS2jq4tZC03VciMh0JQZHVIhh+IuCIg2kgBakHlM4adU= X-Received: by 2002:a67:7c03:: with SMTP id x3mr2860646vsc.44.1547051340531; Wed, 09 Jan 2019 08:29:00 -0800 (PST) MIME-Version: 1.0 References: <1e025f53-fc5e-5b1e-013d-ab9330a0e9db@freebsd.org> <753bc6bf-9269-1ca2-550c-cb7622812a01@freebsd.org> <7c5da163-e12d-2de0-761e-22436fb28b86@freebsd.org> In-Reply-To: From: Gavin Howard Date: Wed, 9 Jan 2019 09:28:24 -0700 Message-ID: Subject: Re: GNU-compatible, BSD-licensed bc To: "freebsd-arch@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 29D128F832 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=JfSlo4oe; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of gavindhoward@gmail.com designates 2607:f8b0:4864:20::e2f as permitted sender) smtp.mailfrom=gavindhoward@gmail.com X-Spamd-Result: default: False [-6.52 / 15.00]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.79)[-0.788,0]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arch@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(-2.72)[ip: (-9.56), ipnet: 2607:f8b0::/32(-2.26), asn: 15169(-1.71), country: US(-0.08)]; RCVD_IN_DNSWL_NONE(0.00)[f.2.e.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; TO_DN_EQ_ADDR_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] 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: Wed, 09 Jan 2019 16:29:03 -0000 On Wed, Jan 9, 2019 at 8:29 AM Warner Losh wrote: > > On Wed, Jan 9, 2019 at 5:33 AM Stefan Esser wrote: > > > Am 08.01.19 um 22:35 schrieb Conrad Meyer: > > > Hi Stefan, > > > > > > Apologies, I misunderstood the idea. > > > > > > However, it seems like any port that depends on gnubc today could > > continue > > > to depend on gnubc on older branches until a suitable replacement > > > propagates into stable. (And that would be less work :-).) > > > > Yes, but the work has already been done ;-) > > > > I've been exchanging private mails with Gavin and he has worked > > on his "bc", e.g. to make the included tests run on FreeBSD out > > of the box (they used to require GNU bc). > > > > A few small issues have been fixed and he is looking into another > > one (^D handling). Working on the port (and tests performed with > > its preliminary version) has already improved the quality of the > > code that is about to be imported into base ... Yes, it has, and the fix for ^D handling is now in master. > > If users actually try running with Gavin's bc (as a port) before > > it makes it into a release, there is a good chance that any > > unexpected incompatibilitiy (e.g., if it is compatible with GNU > > bc, but behaves differently from our current bc in base) is found > > in time. I already know that there are differences, but it seems to be more from bugs in your current bc. For example, when running the `tests/bc/scripts/parse.bc` script, which generates a test of *just* numbers (and assignments to ibase), the current bc generates a colon (`:`) for some reason. I have no idea why, and it seems to me that it is probably a bug, since a colon is not a valid digit. I could be wrong, though; I haven't dug into it. > > So, I intend to proceed with an import as a port, independently > > of the import into base, which I appreciate, too. > > > > We've had several BSDL'd things that started life as a port. I think this > is a great strategy: make it available TODAY as a port (since the barrier > to entry is small), if it pans out, integrate into base. Sounds good to me too. I was going to wait until I had full manuals written before releasing, but if it will just be a port at first, I will release quickly (by the end of the week, hopefully) and work on manuals later. Then I can release again right before the next code freeze, or whatever would be desired. Gavin Howard