chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiple environments


From: felix . winkelmann
Subject: Re: Multiple environments
Date: Mon, 17 Jun 2024 17:22:24 +0200

> > 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]