From owner-freebsd-arch@freebsd.org Wed Jul 4 14:25:12 2018 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 E8FAC103BD24 for ; Wed, 4 Jul 2018 14:25:11 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 86DB07E9BA for ; Wed, 4 Jul 2018 14:25:11 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: by mailman.ysv.freebsd.org (Postfix) id 4029F103BD21; Wed, 4 Jul 2018 14:25:11 +0000 (UTC) Delivered-To: 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 2DEEF103BD20 for ; Wed, 4 Jul 2018 14:25:11 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9E1707E9B5; Wed, 4 Jul 2018 14:25:10 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (localhost [127.0.0.1]) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3) with ESMTP id w64EP21p043238; Wed, 4 Jul 2018 07:25:02 -0700 (PDT) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: (from freebsd-rwg@localhost) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3/Submit) id w64EP2sg043237; Wed, 4 Jul 2018 07:25:02 -0700 (PDT) (envelope-from freebsd-rwg) From: "Rodney W. Grimes" Message-Id: <201807041425.w64EP2sg043237@pdx.rh.CN85.dnsmgr.net> Subject: Re: xstr, mkstr In-Reply-To: <95857.1530687122@critter.freebsd.dk> To: Poul-Henning Kamp Date: Wed, 4 Jul 2018 07:25:02 -0700 (PDT) CC: Bryan Drewery , Warner Losh , Eitan Adler , "freebsd-arch@freebsd.org" X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jul 2018 14:25:12 -0000 > -------- > In message <31b491de-ac5e-ca0f-5f84-96cfa7c02699@FreeBSD.org>, Bryan Drewery wr > ites: > > >On the otherhand I don't see the point in removing something that isn't > >harming anything, is not worth talking about in terms of size or build > >time, and is unlikely to need maintenance. > > Source code is a liability, it is not an investment. Source code is both a liability and an investment, sometimes even a very large investment of time or money or both. > > If the code is useless and not part of a published API, then it should > be removed. Useless is another subjective term, what you find useless I may find very useful. API is also probably a poor use of that term here, none of these have "API", not even your cut(1) or awk(1) below. > > >This argument of "not useful" is a bit subjective. Is cut useful when we > >have awk? I won't go on. > > cut(1) & awk(1) are both part of the published API, so that comparison gets > you nowhere. I'll note that xstr is documented in PSD/make, and has a man page, making it have an API as much as cut(1) or awk(1). But, as I said early, lets just shelf all this "lets remove this or that cause of foo" until package base is done, and then a group of people should create a documented critiria list of what should or should not be in the base system, and do a tree wide sweep rather than have 100+ threads over the next 5 years about this or that. -- Rod Grimes rgrimes@freebsd.org