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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham 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:52:01 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!netnews.com!xfer02.netnews.com!newsfeed1.cidera.com!Cidera!cyclone.socal.rr.com!cyclone3.kc.rr.com!news3.kc.rr.com!twister.socal.rr.com.POSTED!not-for-mail Message-ID: <3CE3FFE7.775E5103@san.rr.com> From: Darren New X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: en 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> <3CE3EA03.394B3EA@despammed.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Thu, 16 May 2002 18:52:01 GMT NNTP-Posting-Host: 66.75.151.160 X-Complaints-To: abuse@rr.com X-Trace: twister.socal.rr.com 1021575121 66.75.151.160 (Thu, 16 May 2002 11:52:01 PDT) NNTP-Posting-Date: Thu, 16 May 2002 11:52:01 PDT Organization: RoadRunner - West Xref: archiver1.google.com comp.lang.ada:24220 Date: 2002-05-16T18:52:01+00:00 List-Id: Wes Groleau wrote: > > languages.) I think this is fairly difficult to do in Ada. > Kludgey, but it can be done. And it wouldn't be difficult. Errr, well, being used to scripting languages, I'd call both of these "difficult" compared to what you typically do with a scripting language. Obviously it's not impossible, or you wouldn't be able to write an OS in Ada, but it's certainly a lot easier to say something like source $name_of_file or MyClass x = new CodeLoader("xyz.class"); or something like that than it is to write the support code it would take to find an arbitrary Ada source, compile it in a cross-platform way, write out all your state, invoke the compiled program, and then somehow clean up all that afterwards, taking care to catch any errors. Sure, you *can* do it. But how many people *have* done dynamically-loaded code under Ada, compared to the number of people who use Tcl or Python or etc, all of which have dynamically-loaded code as the fundamental way of running a program? Note that in Tcl and Python, the equivalent of "with" is to dynamically load sources, so it's happening *all the time*. :-) Again, this isn't a cut on Ada in any sense. Just pointing out some of the features of "scripting languages" that aren't well-supported in Ada. -- Darren New San Diego, CA, USA (PST). Cryptokeys on demand. ** http://home.san.rr.com/dnew/DNResume.html ** ** http://images.fbrtech.com/dnew/ ** My brain needs a "back" button so I can remember where I left my coffee mug.