From owner-freebsd-hackers@freebsd.org Thu Dec 12 14:43:45 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id ED3331D3C8F for ; Thu, 12 Dec 2019 14:43:45 +0000 (UTC) (envelope-from lars@e.0x20.net) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 47Yc4K4r3hz3F9M for ; Thu, 12 Dec 2019 14:43:45 +0000 (UTC) (envelope-from lars@e.0x20.net) Received: by mailman.nyi.freebsd.org (Postfix) id A5FC71D3C8E; Thu, 12 Dec 2019 14:43:45 +0000 (UTC) Delivered-To: hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A5C4D1D3C8D for ; Thu, 12 Dec 2019 14:43:45 +0000 (UTC) (envelope-from lars@e.0x20.net) Received: from mail.0x20.net (mail.0x20.net [46.251.251.56]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47Yc4J4G9Nz3F9L for ; Thu, 12 Dec 2019 14:43:44 +0000 (UTC) (envelope-from lars@e.0x20.net) Received: from e.0x20.net (mail.0x20.net [46.251.251.56]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (3096 bits) server-digest SHA256) (No client certificate requested) by mail.0x20.net (Postfix) with ESMTPS id 228F4B9848; Thu, 12 Dec 2019 15:43:42 +0100 (CET) Received: (from lars@localhost) by e.0x20.net (8.15.2/8.15.2/Submit) id xBCEhg10015018; Thu, 12 Dec 2019 15:43:42 +0100 (CET) (envelope-from lars) Date: Thu, 12 Dec 2019 15:43:42 +0100 From: Lars Engels To: Mark Millard ;, hackers@freebsd.org Subject: Re: [FreeBSD-Announce] BSD-Licensed Combinatorics library/utility Message-ID: <20191212144342.GK5400@e.0x20.net> References: <51AD9B50-9488-45CE-878F-EE97F6914E49@freebsd.org> <201912121119.xBCBJ2Jo017249@fire.js.berklix.net> <20191212130825.GJ5400@e.0x20.net> <17665081-A748-4C0B-B9AE-3FC2148E1EC5@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <17665081-A748-4C0B-B9AE-3FC2148E1EC5@yahoo.com> X-Editor: VIM - Vi IMproved 8.0 User-Agent: Mutt/1.12.2 (2019-09-21) X-Rspamd-Queue-Id: 47Yc4J4G9Nz3F9L X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of lars@e.0x20.net has no SPF policy when checking 46.251.251.56) smtp.mailfrom=lars@e.0x20.net X-Spamd-Result: default: False [-0.78 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.94)[-0.936,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; IP_SCORE(-0.20)[ip: (-0.97), ipnet: 46.251.251.0/24(-0.48), asn: 31400(0.47), country: DE(-0.02)]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[freebsd.org]; AUTH_NA(1.00)[]; NEURAL_HAM_LONG(-0.84)[-0.840,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[lme@freebsd.org,lars@e.0x20.net]; FREEMAIL_TO(0.00)[yahoo.com]; RCVD_COUNT_ONE(0.00)[1]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:31400, ipnet:46.251.251.0/24, country:DE]; FROM_NEQ_ENVFROM(0.00)[lme@freebsd.org,lars@e.0x20.net]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Dec 2019 14:43:46 -0000 On Thu, Dec 12, 2019 at 06:24:05AM -0800, Mark Millard wrote: > > > On 2019-Dec-12, at 05:08, Lars Engels wrote: > > > On Thu, Dec 12, 2019 at 12:19:01PM +0100, Julian H. Stacey wrote: > >> Devin Teske wrote: > >>> I???d like to announce a new utility/library for FreeBSD base available for review. > >>> > >>> https://reviews.freebsd.org/D16132 > >>> > >>> Preview HTML-formatted manuals: > >>> https://fraubsd.org/doc/cmb.1.html > >>> https://fraubsd.org/doc/cmb.3.html > >> > >> ... etc. > >> > >> It cost pain & disputes forcing other code from src/ to ports/ , > >> despite which src/ has bloated. No more bloat please. > > > > It's no bloat: > > > > -r-xr-xr-x 1 root wheel 23K Dec 12 14:04 /usr/bin/cmp > > -r--r--r-- 1 root wheel 29K Dec 12 14:04 /usr/lib/debug/usr/bin/cmp.debug > > -r--r--r-- 1 root wheel 1.9K Dec 12 14:04 /usr/share/man/man1/cmp.1.gz > > -r--r--r-- 1 root wheel 151B Dec 12 14:04 /usr/tests/usr.bin/cmp/Kyuafile > > -r-xr-xr-x 1 root wheel 2.3K Dec 12 14:04 /usr/tests/usr.bin/cmp/cmp_test > > -r-xr-xr-x 1 root wheel 2.6K Dec 12 14:04 /usr/tests/usr.bin/cmp/cmp_test2 > > > > > > Given that on embedded systems debug, kyua and man pages are usually not > > installed, cmp(1) adds just 23 kB to the image. > > Hmm: cmp? Should you be listing cmb related files instead? > > On my amd64 head -r355644 build, the system cmp files are a > close match to what you listed as far as sizes go and each > path that you listed already exists. Yes, you're right. I fat-fingered this. The resulting cmb(1) binary is a bit bigger than cmp: -r-xr-xr-x 1 root wheel 39K Dec 12 15:40 /usr/bin/cmb the library: -r--r--r-- 1 root wheel 27K Dec 12 15:42 /usr/lib/libcmb.so.0