Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Dec 2013 17:59:43 +0000
From:      "Teske, Devin" <Devin.Teske@fisglobal.com>
To:        Alfred Perlstein <alfred@freebsd.org>
Cc:        Devin Teske <dteske@freebsd.org>, "freebsd-stable@freebsd.org Stable" <freebsd-stable@freebsd.org>, "Teske, Devin" <Devin.Teske@fisglobal.com>
Subject:   Re: BIND segway -> python -> first-class ports
Message-ID:  <090F7F08-4542-41B8-AD02-8331E9CAE79D@fisglobal.com>
In-Reply-To: <52A89D6C.1000900@freebsd.org>
References:  <20131210023615.GR55638@funkthat.com> <52A68141.6010003@mu.org> <622122.74675.bm@smtp120.sbc.mail.gq1.yahoo.com> <20131210224915.GA55638@funkthat.com> <CAN6yY1tSqbrkt5bkjhDW6npT4PAXmMck0Xco%2BERwBE=wkkBDBQ@mail.gmail.com> <52A82099.9080100@bluerosetech.com> <B62F85D0-89E6-4FF8-ADE4-5025FB360462@gsoft.com.au> <D0F85D74-E727-4487-AEA1-B9C16660192E@fisglobal.com> <52A89D6C.1000900@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On Dec 11, 2013, at 9:14 AM, Alfred Perlstein wrote:

> On 12/11/13 7:46 AM, Teske, Devin wrote:
>> On Dec 11, 2013, at 2:45 AM, Daniel O'Connor wrote:
>>=20
>>> On 11 Dec 2013, at 18:51, Darren Pilgrim <list_freebsd@bluerosetech.com=
> wrote:
>>>> On 12/10/2013 9:34 PM, Kevin Oberman wrote:
>>>>> A parseable output from gpart would be wonderful.
>>>> Have you seen the kern.geom.conf* sysctls?
>>> Have you tried parsing them from a shell script? :)
>>>=20
>> Trivial in my honest opinion. I'm just working on other ``more important=
'' things.
>=20
> Sometimes we need to ask ourselves are we designing a mirror for ourselve=
s or a lighthouse for the coast.
>=20
> Both give views that are pleasant but they have very different uses.

I get the point, and the wisdom is not lost. However, the process of buildi=
ng
a mirror is not as-similar to that of building a lighthouse. While I know t=
hat
you meant to impress that while the mechanics of producing results in one
language can be similar to the mechanics of producing results in another
language, one can go further with a lighthouse approach.

Mind you, I get the wisdom. However, few would say that I ever take simplis=
tic
approaches in shell. The approach I would use in shell to parse geom xml
would be so-similar to the approach of building a light-house, that the core
mechanics used within would be directly translatable to any other language.

That is to say that the data parsing rules don't change. Even if you were to
have access to a full XML parser, it may not arrange the data in the format
that is best or most easily accessible. For example, a raw XML parser would
simply replicate the tree structure when I find that it would be of greater=
 value
to create a flattened structure with the geom name as the key (with the cla=
ss
id and name as a sub-property of the geom entry). The reason for this is to
(for example) avoid having to always reference the top-level superfluous (at
least for the intended purpose) "VFS" class.
--=20
Devin

_____________
The information contained in this message is proprietary and/or confidentia=
l. If you are not the intended recipient, please: (i) delete the message an=
d all copies; (ii) do not disclose, distribute or use the message in any ma=
nner; and (iii) notify the sender immediately. In addition, please be aware=
 that any message addressed to our domain is subject to archiving and revie=
w by persons other than the intended recipient. Thank you.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?090F7F08-4542-41B8-AD02-8331E9CAE79D>