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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,f5a3111843eb37e2 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!c33g2000hsd.googlegroups.com!not-for-mail From: pfpearson.net@gmail.com Newsgroups: comp.lang.ada Subject: Re: Questions on using prgma Import (C, foo) Date: Tue, 26 Feb 2008 11:59:15 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <487a5f28-32d3-4bf6-921c-72c40c40b76e@41g2000hsc.googlegroups.com> <47C316E1.9010009@obry.net> NNTP-Posting-Host: 132.228.195.206 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1204055956 29831 127.0.0.1 (26 Feb 2008 19:59:16 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 26 Feb 2008 19:59:16 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: c33g2000hsd.googlegroups.com; posting-host=132.228.195.206; posting-account=fdzthQoAAACMwPpBQYiXk93baqaXd0li User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:20106 Date: 2008-02-26T11:59:15-08:00 List-Id: On Feb 26, 7:50 am, Stephen Leake wrote: > You should also consider providing a slightly thicker wrapper that > does the conversion from Interfaces.C.Strings.chars_ptr to > Standard.String; that will make this easier to use with plain Ada > programs. I plan on doing that, once I have the thin wrapper done. A reason for the thin wrapper is to retain speed - one of the benefits of lua. > Lua has a website:http://www.lua.org/ Gee, I wish I'd said that :-) > I'm not clear on how it manages dynamically allocated memory; that > would be a concern for some embedded systems. That's a good question, to which I may try to find an answer. I don't develop for embedded systems (I hope I didn't misuse the phrase "embedded language" - I meant a language "embedded" within my program), so I hadn't really thought about it much. > I'm currently using OpenToken to build my own language for controlling > my simulator. That language has no control structures or subroutines. > I might consider switching to Lua to gain those things. In general, I prefer to reuse languages - *everyone* writes their own, including where I work. It's pretty poor (effective, but limited and I suspect that it's slower than lua), which is why I want to propose the use of lua.