[Info-vax] Changing SMTP server presented hostname in UCX

Paul Sture nospam at sture.ch
Wed Sep 10 15:12:05 EDT 2014


On 2014-09-09, Bill Gunshannon <bill at server3.cs.scranton.edu> wrote:
> In article <bpn3eb-n3s1.ln1 at news.chingola.ch>,
> 	Paul Sture <nospam at sture.ch> writes:
>> On 2014-09-09, Bill Gunshannon <bill at server3.cs.scranton.edu> wrote:
>>> In article <lumsjt$if5$1 at dont-email.me>,
>>> 	Stephen Hoffman <seaohveh at hoffmanlabs.invalid> writes:
>>>>
>>>> IMO, hand-edited configuration text files aren't the way forward for 
>>>> system and network configurations, either.
>>>  
>>> I have heard this (and seen it done) from many corners but I certainly
>>> don't agree.  Sometimes you just want to change something simple and
>>> having to redo the whole mess just seems like a lot of wasted time.
>>> And, when things go wrong and a human has to fix it it is a lot easier
>>> if they can actually see and understand what they are dealing with and
>>> not the way some config program is interpreting it.  I would love to
>>> know just what the supposed advantage of binary configs over human
>>> readable ones is.  Unless it is an attempt at obscuring data to protect
>>> ones job.  Sometime abstraction is a good idea, but not always.
>> 
>> Memory, initialisation performance and Keep It Simple, Stupid.
>
> Memory is hardly a problem today.  I doubt that most config files occipy
> that much more space as human readable text than as binary values.

I was talking about the early 80s.

> "Initialisation performance"?  by the time you get to the point where that
> really matters it's all binary anyway.  :-)  
>
> KISS?  What is simpler than human readable?

Firstly, having all your parsing done by common routines.  In a
development culture where everyone parses their own text files you get a
multitude of parsers.  It's reinventing the wheel and no doubt the same
mistakes are made time and again.

Secondly, by enforcing a workflow where your text config files have to
go through a syntax checker first you are guaranteed that the application
will come up.

> And There are many other places where efficiency can be improved in most
> programs but no one seems to care about system efficiency any more.

I won't disagree with that.

>
>> 
>> Many moons ago we used the approach of intermediate binary files because
>> we didn't want the overheads (memory, runtime) of a text parser in
>> application startup.  Separate utilities to turn text files into binary
>> files meant that the syntax checking was done in those, not by the runtime
>> app.  Think of bytecode compilers for data structures alone, no code.
>
> To my way of thinking we are long past the point where there is any gain
> from "compiing" config files and back when memory and machine performance
> were both premium and expensive we didn't do it.

Like I said this was the early '80s but let's not forget the lessons we
learned then.

>> 
>> From the app's point of view, at startup the sizes of the various bits and
>> pieces represented by these binary files was worked out at compiler time
>> so it was a simply matter of allocating the various memory structures and
>> reading binary data straight into them.  This was a definite win on
>> application startup times.
>> 
>> Remember that this was an era where there was a clear separation of duties
>> between operators and development staff.  The idea of precompiling config
>> files suited this environment well.
>> 
>
> Still not convinced, unless, as I said, the real reason is job security.

Too much RMS propaganda?

Not job security when you distributed all those config parsing utilities
with the applications, and provided proper documentation to go with it.

Now if I look at your arguments from the "software is free therefore we
have to drum up excuses for software support charges" angle, then yes,
by all means head for text files handled by a million different parsers,
most of which are inadequately documented so you need to dig into the
source to find that hidden corner case.

Gotta keep the money coming in from those support contracts ya know...

-- 
So excited for the Apple Watch. For centuries, we’ve checked the time
by looking at our phones. Having it on your wrist? Genius.
                                                   -- Ellen DeGeneres



More information about the Info-vax mailing list