From owner-freebsd-current@FreeBSD.ORG Mon Mar 2 03:37:00 2015 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CD86FC7D; Mon, 2 Mar 2015 03:37:00 +0000 (UTC) Received: from mail-wg0-x22c.google.com (mail-wg0-x22c.google.com [IPv6:2a00:1450:400c:c00::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 59D42DE; Mon, 2 Mar 2015 03:37:00 +0000 (UTC) Received: by wghl18 with SMTP id l18so30828784wgh.7; Sun, 01 Mar 2015 19:36:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=XdNy4jDv0dKu2pz4Pq/46AR8fF0XTjr9Gczr1GTNKNM=; b=kfh0OnGLnsmo0wVC2TgMvUw7aEVeOomL6lsCqNS9sGoV75JY2AMNOGaJHDAYSfefM7 sownw/qCLl2iY8QsWF7LqOSkK7tMs2LOTsWJY9lNQEG9yeLVwabbssfiMkbwPZkldG3O QCqj46TT0K37MdFJOvh6H0ranRI4uw5UodsJnhWFPZJo/8rfKbkhJxLDDyhnYXc9S6wE 1dvYmbYcwmIWmuOcFAXvR4tQrxM8L/UGsmfdNjmNr/8MBe7xhfXeUheuzTuO4OhfMgDQ ZWPGg5xzE4ukC+ByDhuQC+sHwea5gVSDiBY5n8D5orjvAiCZFTI8aQPvLIbmQ+uD4urh QqrQ== X-Received: by 10.180.96.232 with SMTP id dv8mr31587200wib.31.1425267418784; Sun, 01 Mar 2015 19:36:58 -0800 (PST) Received: from ketas-laptop.mydomain (65-38-190-90.dyn.estpak.ee. [90.190.38.65]) by mx.google.com with ESMTPSA id a13sm17288643wjx.30.2015.03.01.19.36.57 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 01 Mar 2015 19:36:57 -0800 (PST) Sender: Sulev-Madis Silber Message-ID: <54F3DA8C.9010602@hot.ee> Date: Mon, 02 Mar 2015 05:35:40 +0200 From: "Sulev-Madis Silber (ketas)" User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:15.0) Gecko/20120912 Thunderbird/15.0.1 MIME-Version: 1.0 To: Arseny Nasokin Subject: Re: Massive libxo-zation that breaks everything References: <54F31510.7050607@hot.ee> <54F34B6E.2040809@astrodoggroup.com> <54F35F29.4000603@astrodoggroup.com> <54F36431.30506@freebsd.org> In-Reply-To: X-TagToolbar-Keys: D20150302053539998 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-current , Allan Jude X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 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: Mon, 02 Mar 2015 03:37:01 -0000 How about we allow JSON input on those utils too... Then we get into full-blown hell faster. Hmm... I would like to talk with system using JSON. JSON would be in utils that are or at least function similarly to rm, mv, ls, find, mount, zpool, zfs, geom, mdconfig, tar, df, netstat, ifconfig... (or maybe even talk JSON directly to the kernel?!). How to have all that goodness, while at same time not having extra library dependency? Without that library the system wouldn't work at all (and there is no fallback mode for "manual operation"). Fragile library that requires you to have worse-than-bad-Perl-looking (funnily I write lot of Perl myself) parts everywhere in your code. And requires huge set of tests to verify correct operation. Hope that you never see things like this: > df Shared object "libxo.so.0" not found, required by "df" Or this: > netstat -nhbdWi Name Mtu Network Address Ipkts Ierrs Idrop Ibytes Opkts Oerrs Obytes Coll Drop smc0 %6s 1.5K 52:54:00:12:34:56 %8s 4.4M %5s 0 %5s 0 %10s 290M %8s 3.3M %5s 0 %10s 756M %5s 0 %5s 11 smc0 - fe80::5054:ff fe80::5054:ff:fe1 %8s 8.7K - - %10s 592K %8s 17K - %10s 1.0M - - smc0 - 2001:ad0:91f: 2001:ad0:91f:0:50 %8s 4.4M - - %10s 225M %8s 3.3M - %10s 709M - - smc0 - 10.0.0.0/24 10.0.0.48 %8s 4.0K - - %10s 504K %8s 3.2K - %10s 233K - - lo0 %6s 16K %8s 272 %5s 0 %5s 0 %10s 24K %8s 272 %5s 0 %10s 24K %5s 0 %5s 0 lo0 - ::1/128 ::1 %8s 136 - - %10s 16K %8s 136 - %10s 16K - - lo0 - fe80::1%lo0/6 fe80::1%lo0 %8s 0 - - %10s 0 %8s 7 - %10s 963 - - lo0 - 127.0.0.0/8 127.0.0.1 %8s 136 - - %10s 8.6K %8s 136 - %10s 8.6K - - Or, at least you only see it (occasionally) in CURRENT. ( And, all current libxo issues seem to be fixed, for now... )