Re: Fair Criticism, etc
- Posted by Kat <gertie at PELL.NET> Aug 14, 2001
- 397 views
On 14 Aug 2001, at 7:56, Chris Bensler wrote: > > > Speaking of Lua, has anyone compared the Eu interpreters coded in Eu to > > the Lua ability to exec commands stored in strings? Are they as fast? Less > > able? What about nested procedures and functions, and lengths of the > > strings? > > If Eu has a line length limit, is a string that exceeds this > limit non- > > executeable in the interpreters? So i cannot pass a 1/2 megabyte file to > the > > doubley interpreted Eu, right? > Why couldn't you? You can load an entire file into a single sequence. > EU has a line limit anyways. In my preprocessor I wrote, there is an option to > compact the output file (strips comments, and all unnesseccary whitespace). > The > output file is only one line(excluding top level statements), no line feeds, > it > executes fine. I've tried it with a file that was over 100kb, so that's not a > problem. So you have a full parser, where you un-nest nested function(procedure(var1, var2), var3, function(var4,var5)) ? Ok, can you compare that sequence executing natively, to the time it takes to exec in your interpreter? How do you pre-parse and know the routine_id()s in the program that actually runs the p-code? <snip> > > This is a little like the "with-do" command. It's not really needed, if > you can > > do this: > > > > global procedure getnetstats(atom netnum) > > sequence ircnet > > ircnet = serverlist[netnum] > > -- get the global vars for this net > > sock = ircnet[1] > > etc etc > > > > I do that for *reading* from a huge nested-nested sequence (serverlist), > but if > > we could also allowed to do the same to *write* to it, the new code would > not > > break anything, and not need an added keyword,, just transparently added > > code internal to the interpreter. > How do you mean? The assignment of the subsequence to a new var isn't bi-directional. I can do the assign for reading from the "with" var, but changes made to the "with" var are not made to the original BIG var unless i specifically reassign the "with" var into it. Which is easy enough to do. > EG? "EG"? Kat