1. RE: smart interpreter

That could be a good. :)

   I think that would boost the speed of EU a bit too wouldn't it?
Load times would be slightly slower, but execution would be faster. I 
don't think anyone is concerned about load times with EU.

   It wouldn't have to verify syntax on the 2nd pass, include files 
could be preloaded to memory, code optimizations could be done (unroll 
small loops, strip unused code, inline uncommmon routines, etc..), and I 
THINK, typechecking could be minimized.


Chris


Kat wrote:
> Rob, just an idea, why can't the interpreter do a once-thru for syntax 
> before it 
> does anything else? It's a drag to have a program run for a few days, 
> then at 
> the 3rd line from the end, abort with something like "write takes two 
> parameters". Typos, sigh.
> 
> Kat
> 
>

new topic     » topic index » view message » categorize

2. RE: smart interpreter

Everyone is concerned with load times. I meant in EU. I have yet to see 
a program that doesn't load almost instantly, save DB programs and such, 
which isn't affected by EU's load time.

Besides, I would sacrifice 1 second of load speed for 2 seconds of 
execution speed anyday.

You could translate it with Eu2C, for a price, and some spare time.

You could also write a keyword syntax checking utility quite easily. 
Verify the syntax of all EU keywords. Boolean syntax, and equation 
syntax would be a bit harder to check.

Chris

tone.skoda at siol.net wrote:
> ----- Original Message -----
> From: <bensler at mail.com>
> 
> > I don't think anyone is concerned about load times with EU.
> 
> I am. It's very annoying to wait for programs to load, like Java 
> programs.
> You would also have to wait for you program to load when you would be
> writing and
> testing it.
> 
> Couldn't you try to translate it to C with Eu2C and it would report all
> errors in your code?
> 
>

new topic     » goto parent     » topic index » view message » categorize

3. RE: smart interpreter

Kat wrote:
> Rob, just an idea, why can't the interpreter do a once-thru for syntax 
> before it 
> does anything else? It's a drag to have a program run for a few days, 
> then at 
> the 3rd line from the end, abort with something like "write takes two 
> parameters". Typos, sigh.
> 

I would like this too, but as an option, not something it did all the 
time.  Maybe we could add "with syntax_check" or something like that 
while we're debugging, and it would do a quick pass through the whole 
file before starting to run it...

new topic     » goto parent     » topic index » view message » categorize

4. RE: smart interpreter

Can you give an example of an EU program that has a slow load time?

The load time wouldn't change very significantly anyhow, because the 
processing would be bypassed in the 1st run, and the syntax checking 
would be bypassed in the 2nd.

If the only thing that RDS did, was add a second pass for syntax 
checking, even if it can be disabled, I say forget it, but if RDS can 
use a second pass to optimise runtime code, then I'm all for it.


Chris


tone.skoda at siol.net wrote:
> Why is EU different? EU load time is already slower than equal C 
> programs.
> Load time in EU is more important than in other languages because in Eu 
> are
> written mainly uility programs, and for those you don't want to wait too
> long to load.
> 
> ----- Original Message -----
> From: <bensler at mail.com>
> To: "EUforum" <EUforum at topica.com>
> Sent: Sunday, March 03, 2002 2:23 AM
> Subject: RE: smart interpreter
> 
> 
> > Everyone is concerned with load times. I meant in EU. I have yet to see
> > a program that doesn't load almost instantly, save DB programs and such,
> > which isn't affected by EU's load time.
> >
> > Besides, I would sacrifice 1 second of load speed for 2 seconds of
> > execution speed anyday.
> >
> > You could translate it with Eu2C, for a price, and some spare time.
> >
> > You could also write a keyword syntax checking utility quite easily.
> > Verify the syntax of all EU keywords. Boolean syntax, and equation
> > syntax would be a bit harder to check.
> >
> > Chris
> >
> > tone.skoda at siol.net wrote:
> > > ----- Original Message -----
> > > From: <bensler at mail.com>
> > >
> > > > I don't think anyone is concerned about load times with EU.
> > >
> > > I am. It's very annoying to wait for programs to load, like Java
> > > programs.
> > > You would also have to wait for you program to load when you would be
> > > writing and
> > > testing it.
> > >
> > > Couldn't you try to translate it to C with Eu2C and it would report all
> > > errors in your code?
> > >
> > >

new topic     » goto parent     » topic index » view message » categorize

5. RE: smart interpreter

Why not just set up a main() around everything? Then it all
gets checked for you.

Rod Jackson

Kat wrote:
> Rob, just an idea, why can't the interpreter do a once-thru for syntax 
> before it 
> does anything else? It's a drag to have a program run for a few days, 
> then at 
> the 3rd line from the end, abort with something like "write takes two 
> parameters". Typos, sigh.
> 
> Kat
> 
>

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu