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,4ef5a4648a4a3c50 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-12-20 21:32:34 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: rleif@rleif.com (Robert C. Leif) Newsgroups: comp.lang.ada Subject: Re: what about having ada compile ada on the fly? Date: 20 Dec 2003 21:32:34 -0800 Organization: http://groups.google.com Message-ID: <657ea3e3.0312202132.fd1586c@posting.google.com> References: NNTP-Posting-Host: 64.105.82.40 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1071984754 13569 127.0.0.1 (21 Dec 2003 05:32:34 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 21 Dec 2003 05:32:34 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:3655 Date: 2003-12-20T21:32:34-08:00 List-Id: From: Bob Leif Since the time to compile with the combination of an Ada compiler and a modern PC has greatly diminished, it may be time to start considering compiling at run-time instead of the use of complex data structures based on access types or discriminants. For instance at run-time, I can set the size of an array of records; however, I can not simply create the composition of the record from precompiled types. If I have 26 sensors consisting of a mixture of types integer and float, and I wish to have the user select the ones to log; could I do this in the equivalent of SPARK with the addition of generics? These precompiled types are: A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z. The user selects C, G, N, and W. One could create a program that produced a record type (Data_Rec_Type) consisting of these fields and instantiating a generic package to create an array with the user specified array size and type Data_Rec_Type. The generic would already include the array storage operations. Could this be compiled and linked as a DLL or similar structure and used by the program? Again, the actual source to be compiled would be Ada. cl1motorsports wrote in message news:... > I've seen that there are discussions about enhancing the current ada95 > spec. I was interested to know if there has been any talk of implementing > an api for compiling ada code. I've read that some languages implement > this feature(i think one was smalltalk), and i could see how that would be > very useful for making an IDE that would load modules or scripts on the > fly. I dunno much about the topic yet, my "Dragon Book" compiler book > hasn't gotten here for Christmas yet. I have ideas for an IDE for linux > and customizing the IDE with scripts that were compiled on the fly sounded > like a good idea. I dunno just a thought *shrug*.