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-17 16:27:51 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!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: <3CE5920C.EDD11F6D@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> <3CE3FFE7.775E5103@san.rr.com> <3CE514CD.DC9C679@despammed.com> <3CE52E77.FC3FC588@san.rr.com> <3CE58E61.F824208D@despammed.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Fri, 17 May 2002 23:27:49 GMT NNTP-Posting-Host: 66.75.151.160 X-Complaints-To: abuse@rr.com X-Trace: twister.socal.rr.com 1021678069 66.75.151.160 (Fri, 17 May 2002 16:27:49 PDT) NNTP-Posting-Date: Fri, 17 May 2002 16:27:49 PDT Organization: RoadRunner - West Xref: archiver1.google.com comp.lang.ada:24321 Date: 2002-05-17T23:27:49+00:00 List-Id: Wes Groleau wrote: > > > > And I don't see either example as being more difficult than > > > Invoke (Name_Of_File); > > > > Um.... But that doesn't do the same thing. What do you think the semantics > > If Name_Of_File identifies the linked program, it does the same thing. Uh, no. Your "invoke" replaces the currently executing program with a new one. Tcl's "source" doesn't. > > Well, my point is all these things modify the currently-running program, so > > yeah, it is a lot harder. If you haven't done a lot of work with this type > > of scripting language, then I suspect you aren't really following what I'm > > saying here. > > After 10-15 years of Ada and other languages, including the usual > incidental scripting, and having (unfortunately) for the last > three having ksh, perl, and TCL be 75% of my job, I suspect I'm not > is ignorant as you think. I didn't say you were. I said "if". Now I'm trying to figure out why, if you've used Tcl as extensively as you claim, you don't understand the difference between Tcl's [source] command and Tcl's [exec] command. > > The rest snipped, because I'm not sure you're making any sense. > Maybe you need to read a little more carefully. Then maybe you can explain why exec() is at all like [source]. You're saying "it's simple to compile an Ada program and invoke it from inside another Ada program", which I'm not arguing. I'm not discussing that at all. I'm discussing adding code to the currently running process. > > There's a tremendous difference between linking to DLLs, generating code on > > the fly, and the "exec" system call. > > It's certainly true that the extreme case I snipped > is not appropriate for Ada. That doesn't make the > lesser cases in the previous posts difficult. No, agreed. > Arguing with you is aiming at a rapidly moving target. Actually, I think it's more like I make a statement, you interpret it thru an Ada filter, and then say I'm wrong. When I clarify why what you're saying isn't what I'm saying, you think I'm changing what I said. For example, my comment that started this whole bit was > 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. Dynamically loaded code isn't "exec". I don't expect to restart my browser every time I go to a different web page that has an applet on it. Where you go from "dynamically loaded code" to "this is easy, just use exec" I'm not sure. > "There's a tremendous difference between" the > > source $Filename > > that I challenged two posts back and the > > > ... declares a new type at run-time > > based on a user's input, perhaps a derived type of a tagged type, and loads > > it into the currently running program, instantiates it, and sticks it into > > an array of heterogenous objects all derived from that type, dynamically > > dispatching to them. ... > > of the last post. Errr, no. There's not. What do you think [package require] does? > Although I could do that in Ada, > too--but again, I would not recommend it. Because > when you go that far, you ARE getting quite difficult. > And quite inefficient. Except the exact same mechanism does both, in many scripting languages. Nuff said. This is getting silly. -- 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.