This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: Kawa fails if used in multithreading
On 08/07/2010 01:35 AM, Per Bothner wrote:
If so, I'll check the change in tomorrow.
I checked in the fix.
Of course you also want to consider why you're doing 'eval'
so many times - unless it is just for testing. You'd want
to avoid compiling the same code many times, since that
may be expensive. One alternative is to eval an expression that
evaluates to a procedure, which you can save and call many times.
If you're writing web server code, consider using the
"KawaAutoHandler" mechanism, which automatically uses
compiles and re-uses a "script":
http://www.gnu.org/software/kawa/Self-configuring-page-scripts.html
If this doesn't work right, I want to fix it!
--
--Per Bothner
per@bothner.com http://per.bothner.com/