From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Paul Rubin Newsgroups: comp.lang.ada Subject: Re: Help with designing data structure for novice Ada programmer Date: Sat, 08 Jan 2022 18:36:46 -0800 Organization: A noiseless patient Spider Message-ID: <87sftx1vpd.fsf@nightsong.com> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="0df76f9e7d74b006453fc41ace66f4ec"; logging-data="1851"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX187MHmVM5xTub/9q+GJujyi" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cancel-Lock: sha1:q4qKpTb5++EqYC24HSqJdr0ZCv0= sha1:2leOJ4KHjtriO6iqn7H83V6+yJM= Xref: reader02.eternal-september.org comp.lang.ada:63358 List-Id: Aleksy Grabowski writes: > I'm experienced embedded C developer and I've started 2 years ago an > implementation of one of the specifications kind of popular in the > payment industry. I also hope to make it open source one day. Can you say what specification it is? > have to guarantee consistency of a huge configurable data structure, > that can be changed by an entity which in theory may not be in my > control. And adding all checks quickly became nightmarish and then I've > found an Ada language. It sounds like you waht to define a datatype for this structure, with access and update procedures (OOP is not necessary but it's the same idea) that make sure all the rules are followed. Is there more to it than that? Ada sounds like a reasonable choice, C sounds terrible, other possibilities depend on the hardware and software environment. Would this have to run on a smart card cpu or anything like that?