According to Ramon van Handel ([EMAIL PROTECTED]):
> >On Wed, 2 Aug 2000, Ramon van Handel wrote:
> >> We're perfectly capable of writing our own script interpeter.  As a
> >> matter of fact, that's what we've done up until now..
> >
> >Why re-invent the wheel?  Surely (assuming a scripting language is
> >really necessary) it makes more sense to use something that's already
> >out there, to avoid learning and debugging yet another language?
> >Python, Tcl, Scheme (rep or guile) and Perl are all possible
> >embeddable extension lanaguages, and I'm sure there are loads of
> >others.
> 
> All of those languages are overkill.  IMO we don't WANT a scripting language,
> but a configuration file.  That's not worth embedding a python interpeter for.

What you want is a simple way through wich a Plex86 user can tell the
program what he wants to do with the program today, and if such can be done
easier by using a (easy-to-learn and/or widely-known) scripting language,
your in an obvious advantage, as you can let your configuration file get
some information itself.

For example, you might want to write some code for your configuration file
that automatically searches for the right kernel-module to load, and which
loads it as well. When including such code in the Plex86 binary itself,
you'd make Plex86 less easily adaptable to the various setups.

> As for reinventing the wheel, for something as simple as we need (IMO), it's
> better to write your own interpeter and know the code inside out, than use
> a "foreign" piece of code you don't know all the details of.  That last option
> is only useful, when the piece of code you embed it too complicated to
> reimplement yourself in a reasonable period of time..

Not if the used "foreign" code is generally well-tested and more or less
free of bugs. Code re-use, especially of well-tested code, is generally
preferrable over writing something yourself, which may or may not work as
planned or have all sorts of nasty bugs hidden in 5-level indented code, and
become a living nightmare when trying to implement some new setting.

Wouter
-- 
*  Wouter Coene  *  [EMAIL PROTECTED]  *  [EMAIL PROTECTED]  *
  *  C.O.R.E/OMTA/Plex86  *  C development/Code maniac  *
   *  "When people run in circles we call them crazy,  *
        *  when planet's do we call it orbiting"  *

Reply via email to