Re: speed of eu 2.5 + dynamic inclusion

new topic     » goto parent     » topic index » view thread      » older message » newer message

Juergen Luethje wrote:
> 
> Pete Lomax wrote:
> 
> > On Mon, 22 Nov 2004 19:19:14 +0100, Juergen Luethje <j.lue at gmx.de>
> > wrote:
>
> | I believe using the next version of the interpreter, programs still
> | can take advantage of a dynamic include technique, when the code is
> | just put into 2 files rather than 1. Then again there are 2 separate
> | steps:
> |
> | ------------------------[ part1.exw ]------------------------
> |      P_S = open ("plugins.ew", "wb")
> |      puts(P_S, PluginS)
> |      close(P_S)
> |      system("exw.exe part2.exw", 2)
> |
> | ------------------------[ part2.exw ]------------------------
> |      include plugins.ew
> |      -- Here comes the main program ...

Being new to Euphoria, I have a problem understanding why it is so
important to do dynamic includes.

Of course, for large programs (mainly on heavy servers, doing massive
web serving, or controlling an entire factory's production machinery)
this might be an issue. But that kind of software projects have the 
money and the resources to find other solutions for this.

For anything else, it is customary to close the program while the 
plugins are downloaded and installed.

To make this easy for the end-user, there might be an INSTALL-PLUGINS.BAT
file that does whatever is needed. 

But, it is really much harder to figure out how the main program could
be prepared to accept plugins <i>that do things not thought of at the
time of writing the main program.</i> And this should be the goal of
any serious pluginnable program. 

Compared to that, writing .BAT files (or shell scripts) for plugin
installing is, er, trivial.




-- Another Euphoric, since Nov. 18 2004 --

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu