Re: Multiple environments

[email protected]
Newsgroups gmane.lisp.scheme.chicken
Message-ID <[email protected]>
> > Also you probably want to compile your code instead of evaluation code at
> > runtime. Would it be possible to use a different syntax for global variable
> > accesses (both read and write, so something like "get" and "put" operations)?
> > That would make the implementation much easier and also has the benefit of
> > making global accesses more obvious to the one reading the code and it also
> > helps to make the code more portable to other Scheme implementations.
>
> Actually, no. I was planning not to compile the actors code. The idea is that the simulator takes the a “model” as input besides the number of actors. The model is the code executed by the actors. I guess that this boils down to using eval, right?

That's correct. But keep in mind that CHICKEN has no JIT compiler, so
the evaluated code will be interpreted and thus not run as efficient as
compiled code. But if that's acceptable for your needs, then such an
approach is perfectly fine.


felix
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.