Re: My Lobbying

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

irv wrote:

> > Wouldn't help, even If we knew the structure, since we
> can't find it.
> > <<<
> >
> >   If Euphoria can find it, we can find it.
>
> Only if you can convince Rob to add a function to return the
> (momentary) address of a sequence. As well as some kind of a
> lock function to prevent garbage collection and sequence copying
> from taking place while you work with the structure. Otherwise, it'll
> be gone by the time you're ready to write something there.
>
> Odds of Rob doing this are less than .01%, I think.
>

I agree here, although I think that once the compiler comes out, there will
be a lot of reasons to want to do this.  What do you do when you want to
pass a sequence to a DLL created in Eu?  And I'm sure people will want to do
this.  For example, imagine Eu scripting using David Cuny's (and someone
elses--can't remember the name) Eu emulator.  Sure it's slow now, but it
should be sped up significantly by being compiled.

Right now, my solution would be to shamelessly copy Rob's method of storing
a sequence in a file that's used in EDS--see compress() and decompress() (or
maybe Gabriel's routines in bget.e?).  Sure, it'll be slower than a direct
reference, but by how much?  This could also be used to transfer data
between concurrent Eu processes, using OLE, or something.

Matt Lewis

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

Search



Quick Links

User menu

Not signed in.

Misc Menu