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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Paul Rubin Newsgroups: comp.lang.ada Subject: Re: How to get Ada to ?cross the chasm?? Date: Wed, 09 May 2018 13:41:13 -0700 Organization: A noiseless patient Spider Message-ID: <87h8ngzhna.fsf@nightsong.com> References: <1c73f159-eae4-4ae7-a348-03964b007197@googlegroups.com> <87po2la2qt.fsf@nightsong.com> <87in8buttb.fsf@jacob-sparre.dk> <87wowqpowu.fsf@nightsong.com> <16406268-83df-4564-8855-9bd0fe9caac0@googlegroups.com> <87o9i2pkcr.fsf@nightsong.com> <87in88m43h.fsf@nightsong.com> <87efiuope8.fsf@nightsong.com> <322f9b26-01de-4753-bb50-6ef2f3d993d8@googlegroups.com> <87a7th9pd1.fsf@nightsong.com> <87h8no1nli.fsf@nightsong.com> <874ljo1hvy.fsf@nightsong.com> <87vac4z2lh.fsf@nightsong.com> <87lgcszjdn.fsf@nightsong.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="a15f8e13c869a4517dec92123a650d01"; logging-data="17115"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19o38zQ1vSv0upy0GSJweB+" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) Cancel-Lock: sha1:7OHfoQRfKCBD5r0N/uRbxRWSFN8= sha1:C3AnrXV6JMqg7eAKqJ+pckexmks= Xref: reader02.eternal-september.org comp.lang.ada:52170 Date: 2018-05-09T13:41:13-07:00 List-Id: Niklas Holsti writes: > It is easy to embed a DSL in Ada, and use the Ada compiler on it. Maybe reasonable some of the time, maybe even in the case of the CBSG. The CBSG takes around 7 seconds to compile on a fairly fast box and has around 100KB of code of which maybe 80% is phrases. An occasional update taking 7 seconds is probably ok. My smallest actively used (virtual) server has 64MB of ram, which can probably host GNAT. I won't contrive a scenario of wanting to run the CBSG on an MCU. Still though, it seems marginal. The approach wouldn't scale to something like a routing table, which can be MBs in size and updated many times a second, but would want a DSL of its own.