[lcdproc] TCP or .so
William W. Ferrell
Mon, 26 Mar 2001 08:36:08 -0700
Content-Type: text/plain; charset=us-ascii
--- firstname.lastname@example.org's mailer spewed these beefy chunks ---
> I hope you noticed that we were talking about the widget language. I=20
> could use a hash table here, it could speed things up.
I think I understand hashes, but how would that speed things up here?
(Er, does this question mean I *don't* really understand hashes? ;)
> > syntax. Any serial based devices have the port config as "8 N 9600" or
> You're right, a port config string is a special string that should be=20
> scanned by the driver. Most values don't have such a special format. I=20
> would do most conversions centralised. Less chance of bugs.=20
Yes. If we standardize on *one* means of conveying options to a specific
driver, then we just parse the whole config file in one place. This
allows flexibility in the driver (drivers can request or require
whatever options they want, so long as they're using our format :), but
prevents a poorly-written driver from screwing up the parsing:
It's more verbose, but guarantees parsing will be easier, and stops the
driver having to worry about it. It can simply "assume" a configuration
if the more advanced serial settings aren't specified, or if it wants to
be a tightwad, could refuse to run (perhaps report an error to LCDd, or
gracelessly crash and burn like v0.4 does ;) if the options aren't set.
That can all be documented and the user will just know s/he has to set
that up to make the driver work.
William W. Ferrell, Senior System Administrator, Global Crossing Ltd.
950 17th St Ste 2200, Denver, CO 80202 1.303.223.0564
Public key available:
gpg --keyserver certserver.pgp.com --recv-key 7478FC7A
Wasn't there something about a PASCAL programmer knowing the value of
everything and the Wirth of nothing?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org
-----END PGP SIGNATURE-----
Content-Type: text/plain; charset=
To unsubscribe from this list send a blank message to