This page is no longer maintained — Please continue to the home page at www.scala-lang.org

scala interpreter safe to embed?

2 replies
Szymon Jachim
Joined: 2008-12-17,
User offline. Last seen 42 years 45 weeks ago.
Do you know of any potential problems?
Especially if I want to embed multiple interpreters in one process?
No global state that would need to cover with my own ClassLoaders?
I'm thinking about using custom PrintStream to read interpreter's (and interpreted code's) results....

Szymon
Mark Harrah
Joined: 2008-12-18,
User offline. Last seen 35 weeks 3 days ago.
Re: scala interpreter safe to embed?

On Tuesday 07 April 2009 09:53, Szymon Jachim wrote:
> Do you know of any potential problems?
> Especially if I want to embed multiple interpreters in one process?
> No global state that would need to cover with my own ClassLoaders?

I have not used multiple interpreters at once, but I have used multiple
compilers in parallel and different interpreters sequentially without
problems.

-Mark

extempore
Joined: 2008-12-17,
User offline. Last seen 35 weeks 3 days ago.
Re: scala interpreter safe to embed?

On Tue, Apr 07, 2009 at 03:53:11PM +0200, Szymon Jachim wrote:
> Do you know of any potential problems? Especially if I want to embed
> multiple interpreters in one process? No global state that would need
> to cover with my own ClassLoaders? I'm thinking about using custom
> PrintStream to read interpreter's (and interpreted code's) results....

This should be no problem -- and if it is, please report a bug and I
will fix it if it's fixable.

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland