[lcdproc] TCP or .so
William W. Ferrell
wwf@frontierdev.com
Mon, 26 Mar 2001 08:36:08 -0700
--lQSB8Tqijvu1+4Ba
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
--- joris@robijn.net'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
>=20
> 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:
[MtxOrb]
serial_device=3D/dev/ttyS0
serial_baud=3D19200
serial_stop_bits=3D1
serial_data_bits=3D8
serial_parity=3DN
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?
--lQSB8Tqijvu1+4Ba
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iEUEARECAAYFAjq/YegACgkQgAeqhXR4/HomgwCXdS3OjR19J+REYXJyXCbTIaqH
agCgxLQxh024r8lp1fYidCX5X/xaR6k=
=ZiDH
-----END PGP SIGNATURE-----
--lQSB8Tqijvu1+4Ba
Content-Type: text/plain; charset=
-----------------------------------------------------------
To unsubscribe from this list send a blank message to
lcdproc-unsubscribe@lists.omnipotent.net
--lQSB8Tqijvu1+4Ba--