NetRexx Interpreter

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

NetRexx Interpreter

Mike Cowlishaw-2
In fact my NetRexx compiler is structured internally as an interpreter, so it
would be a relatively small amount of work to make it into an interpreter.  But
it probably wouldn't be very fast -- you're almost as well-off compiling and
then running the code immediately.

- - - - -
Mike Cowlishaw, IBM Fellow, IBM UK Laboratories
mailto:[hidden email]   [http://www2.hursley.ibm.com]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
[hidden email]
with the following message in the body of the note
unsubscribe ibm-netrexx <e-mail address>

Reply | Threaded
Open this post in threaded view
|

Re: NetRexx Interpreter

James A. Hillyerd
On Fri, 6 Mar 1998, Mike Cowlishaw wrote:

> In fact my NetRexx compiler is structured internally as an interpreter, so it
> would be a relatively small amount of work to make it into an interpreter.  But
> it probably wouldn't be very fast -- you're almost as well-off compiling and
> then running the code immediately.
>

Part of my concern is security, I'd like fine control over what people and
cannot do.  I suppose I could use the Java Security API for setting up a
shell to wrap around any NetRexx classes the user loads.  I just don't
know anything about Java Security.  Has anyone attempted anything like
that?  It would be a lot like loading an applet I suppose.

-james

>>> NOTICE NOTICE NOTICE: Please update your addressbooks to my new
>>> email address (below), as I am planning on changing internet
>>> service providers in the near future.

[]  James A. Hillyerd <[hidden email]> Web Developer
[]  Home Page:  http://www.pimedia.com/~james/
[]  HyperGlyphics:  http://www.hyperglyphics.com/

Cool thing of the month (March):
        sixdegrees
        http://www.sixdegrees.com/

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
[hidden email]
with the following message in the body of the note
unsubscribe ibm-netrexx <e-mail address>

Reply | Threaded
Open this post in threaded view
|

Re: NetRexx Interpreter

Martin Lafaix
In reply to this post by Mike Cowlishaw-2

> From: "James A. Hillyerd" <[hidden email]>
> Part of my concern is security, I'd like fine control over what people and
> cannot do.  I suppose I could use the Java Security API for setting up a
> shell to wrap around any NetRexx classes the user loads.  I just don't
> know anything about Java Security.  Has anyone attempted anything like
> that?  It would be a lot like loading an applet I suppose.

If your program is an application, you can register your own
SecurityManager (package java.lang).  It allows you to trap
System.exit calls and such.  It really depends on what you mean by
"fine control," but it's probably more than enough...

Once you've defined your own SecurityManager, you register it with
something like:

  System.setSecurityManager(devPadSecurityManager())

[You can only define a SecurityManager once.  That's why you
 generally can't specify your own SecurityManager for an applet, as
 your browser usually defines its own.]


Martin
--
[hidden email]
Team OS/2
http://wwwi3s.unice.fr/~lafaix/os2.html

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
[hidden email]
with the following message in the body of the note
unsubscribe ibm-netrexx <e-mail address>