Re: speed of eu 2.5 + dynamic inclusion
- Posted by "Juergen Luethje" <j.lue at gmx.de> Nov 23, 2004
- 1051 views
Pete Lomax wrote: > On Mon, 22 Nov 2004 19:19:14 +0100, Juergen Luethje <j.lue at gmx.de> > wrote: > > <snip> >>>> Concerning this point, I had an idea some time ago (URL might wrap): >>>> >>>> http://www.listfilter.com/cgi-bin/esearch.exu?fromMonth=2&fromYear=9&toMonth=2&toYear=9&postedBy=Juergen+Luethje&keywords=%2214+Feb+2004+10%3A54%3A22%22 What I wrote there was: | Date: 14 Feb 2004 | From: "Juergen Luethje" | Subject: Re: Help with plugin concept ... | 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 ... | ------------------------------------------------------------- | | This should work with the interpreter 2.5, shouldn't it? >>>> Maybe you can tell me, whether it actually works? >>> >>> That is good idea, though not always usable. >> >> When is it not usable? Maybe we can find here another solution for those >> cases. >> > I believe 2.5 will parse the entire program and all included files > before executing anything, That's how I understand what Rob wrote, too. > so the above will not work ever. I just tested it using exw.exe 2.5 alpha, in general it *does* work on my system, and I don't see a reason why it shouldn't work on other systems. However, I don't know whether there might be particular "dynamic inclusion problems" that can't be solved that way. > The only way I can think of is the program reads the include file, and > if wrong, rewrites it and restarts the whole program from scratch. Yes, that will probably work, too. Regards, Juergen -- Have you read a good program lately?