From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,84bf0ec36cf20893 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-16 11:15:07 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!lnsnews.lns.cornell.edu!news.litech.org!news.ems.psu.edu!news.cis.ohio-state.edu!news.maxwell.syr.edu!news-out.nuthinbutnews.com!propagator-sterling!news-in.nuthinbutnews.com!cyclone1.gnilink.net!washdc3-snf1!washdc3-snh1.gtei.net!cambridge1-snf1.gtei.net!news.gtei.net!bos-service1.ext.raytheon.com!dfw-service2.ext.raytheon.com.POSTED!not-for-mail Message-ID: <3CE3EA03.394B3EA@despammed.com> From: Wes Groleau Reply-To: wesgroleau@despammed.com X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: en,es-MX,es,pt,fr-CA,fr MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Would an *AdaScript* language be a good / bad idea? References: <5ee5b646.0205140618.2d789fc9@posting.google.com> <5ee5b646.0205151846.4b14a73f@posting.google.com> <3CE3D8B4.C272C737@san.rr.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Thu, 16 May 2002 12:18:59 -0500 NNTP-Posting-Host: 151.168.144.162 X-Complaints-To: news@ext.ray.com X-Trace: dfw-service2.ext.raytheon.com 1021569552 151.168.144.162 (Thu, 16 May 2002 12:19:12 CDT) NNTP-Posting-Date: Thu, 16 May 2002 12:19:12 CDT Organization: Raytheon Company Xref: archiver1.google.com comp.lang.ada:24218 Date: 2002-05-16T12:18:59-05:00 List-Id: > Errr, I don't know about applescript of vbscript, but both Perl and > Python (and Tcl and ...) have operators that run code that has been > generated at runtime. So while it's possible to compile the code, you > can't (for example) eliminate the compiler from the runtime...... > > Another feature of scripting languages is the almost casual use of > dynamically loaded code. It's not uncommon at all to calculate at run > time what executable code will be loaded, for example. (Think "java > applets" if you aren't familiar with programming other scripting > languages.) I think this is fairly difficult to do in Ada. Many Ada implementations already have a way to execute outside commands. Not necessarily what I'd recommend, but an Ada program can write a program with Text_IO, call the compilers, and then call the new program. Self-modifying code? Write a replacement for one of your own modules, compile it, link a new version of yourself, save state to a file, call the new version, and exit. Kludgey, but it can be done. And it wouldn't be difficult. I once talked someone out of translating into Pascal a BASIC program that did stuff like that. -- Wes Groleau http://freepages.rootsweb.com/~wgroleau