|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
Joe-E Taming PoliciesHi,
Can anyone explain the rationale behind the following Joe-E error messages? I don't see why the following classes should be disabled by Joe-E. For instance, does creating a StringBuffer as a local variable of a method cause impurity? Why is StringBuilder allowed but not StringBuffer? Disabled constructor from class ArrayIndexOutOfBoundsException called: default deny Method from disabled type Hashtable called: no policy specified for this class Disabled constructor from class StringBuffer called: default deny _______________________________________________ e-lang mailing list e-lang@... http://www.eros-os.org/mailman/listinfo/e-lang |
|
|
Re: Joe-E Taming PoliciesFor the most part, the prohibitions you've encountered are a result of
the taming process being incomplete at present -- there are a lot of would-be-safe classes that we haven't looked at yet. We're hoping to add more on an on-demand basis, so people can build more stuff with it. StringBuffer and StringBuilder should both be safe; the only reason one is currently allowed and not the other is that we have mostly written single-threaded (or vat-based-concurrency) code, which does not need StringBuffer's thread-safety. Hashtable is unsafe to use if you want Joe-E's determinism guarantees to hold: the iteration order of the hashtable depends on the hash codes assigned to the objects placed in it; for many classes, the hash code is nondeterministic as it is the JVM's internal identifier for the object instance. Hashtable is OK if you do not need the determinism guarantees. -Adrian Mohsen Vakilian wrote: > Hi, > > Can anyone explain the rationale behind the following Joe-E error > messages? I don't see why the following classes should be disabled by > Joe-E. For instance, does creating a StringBuffer as a local variable of > a method cause impurity? Why is StringBuilder allowed but not StringBuffer? > > Disabled constructor from class ArrayIndexOutOfBoundsException called: > default deny > Method from disabled type Hashtable called: no policy specified for this > class > Disabled constructor from class StringBuffer called: default deny > > > ------------------------------------------------------------------------ > > _______________________________________________ > e-lang mailing list > e-lang@... > http://www.eros-os.org/mailman/listinfo/e-lang _______________________________________________ e-lang mailing list e-lang@... http://www.eros-os.org/mailman/listinfo/e-lang |
|
|
|
|
|
|
|
|
|
|
|
Re: Joe-E Taming PoliciesDavid,
Thanks for your detailed response. I should say that Joe-E far exceeds my expectations as a research project. I definitely expected to see glitches. I found Joe-E quite interesting and I've been trying it out on a small program to get more familiar with it. As a result, I encountered some problems but I wasn't sure whether they are due to incomplete implementation of Joe-E. For instance, I didn't realize that Hashtable exhibits some nondeterminism until Adrian pointed that out. I've already figured how to overwrite Joe-E's taming policies. You are right, the first step is to modify the safej files. And, the next step is to have Eclipse generate the Policy class by right clicking on the project, selecting Joe-E and enabling the "Automatically build Policy class." Thanks, Mohsen Vakilian On Mon, Sep 21, 2009 at 11:12 AM, David Wagner <daw@...> wrote:
_______________________________________________ e-lang mailing list e-lang@... http://www.eros-os.org/mailman/listinfo/e-lang |
| Free embeddable forum powered by Nabble | Forum Help |