Newsgroups: comp.lang.lisp,comp.lang.tcl,comp.lang.dylan,comp.lang.scheme,comp.lang.java
Path: cantaloupe.srv.cs.cmu.edu!nntp.club.cc.cmu.edu!bb3.andrew.cmu.edu!nntp.sei.cmu.edu!news.cis.ohio-state.edu!math.ohio-state.edu!howland.erols.net!newsfeed.internetmci.com!in3.uu.net!world!theremin
From: eugene@cs.umb.edu (Eugene O'Neil)
Subject: Re: Common LISP: The Next Generation
Message-ID: <DwwJ4B.It9@world.std.com>
Sender: news@world.std.com (Mr Usenet Himself)
Nntp-Posting-Host: world.std.com
Organization: MORE Systems, inc.
X-Newsreader: News Xpress 2.0 Beta #2
References: <sjpw4hbzvo.fsf@alfresco.usask.ca> <jbrewer-2308961754430001@news.mcs.com> <87afvlrq6r.fsf@tantale.fifi.org> <32242ff6.2558836@news.alt.net> <503ff7$5f9@rigel.tm.informatik.uni-frankfurt.de>
Date: Thu, 29 Aug 1996 13:37:23 GMT
Lines: 26
Xref: glinda.oz.cs.cmu.edu comp.lang.lisp:22425 comp.lang.tcl:53892 comp.lang.dylan:7069 comp.lang.scheme:16650

In article <503ff7$5f9@rigel.tm.informatik.uni-frankfurt.de>, Anselm Lingnau <lingnau@tm.informatik.uni-frankfurt.de> wrote:
>In article <32242ff6.2558836@news.alt.net>,
>Phil Perucci <pperucci@idsonline.com> wrote:
>
>> Anyway, can anyone shed any light on the ability of Java to perform
>> LISPs (eval) function?  It would be very nice to generate Java code,
>> and pass it back to Java for compilation/execution, which is one of
>> the main things LISP was famous for (that and lists...).
>
>This is going to be well-nigh impossible for the same reasons why it
>is well-nigh impossible in C++, only more so because of the so-called
>`security features'.

It is only impossible to do this in applets loaded off the network. 
Applications, and other code loaded from the local file system, have no such 
security restrictions. Some day, when authenticated applets show up, 
it may even be possible for trusted applets to have less restrictions.

Not only is it possible to dynamically create java code in applications, it is 
relatively easy. What you do is create a subclass of "classloader", which
is part of the core java distribution. Classloaders can convert an array
of bytes into a java class. Look up classloaders in a good book on Java
for more information: You will find it does most of the work for you. It's a 
cakewalk compared to trying to do the same thing in C++.

-Eugene
