From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) 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.5-pre1 Path: eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED.QnTRC4x3WOQxzaUUaj2zKA.user.gioia.aioe.org!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: PubSub Date: Sat, 31 Oct 2020 19:38:09 +0100 Organization: Aioe.org NNTP Server Message-ID: References: <5f9da5ac$0$4029$426a74cc@news.free.fr> NNTP-Posting-Host: QnTRC4x3WOQxzaUUaj2zKA.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 X-Notice: Filtered by postfilter v. 0.9.2 Content-Language: en-US Xref: reader02.eternal-september.org comp.lang.ada:60528 List-Id: On 31/10/2020 18:58, DrPi wrote: > Another question indirectly concerning GUI programming : Does a Ada > "PubSub" package exist ? Yes. We have a commercial middleware 100% in Ada. We use that thing in automation and control systems. Naturally, it provides publisher/subscriber services, distributed or not with controlled QoS. That is so to say horizontal communication between applications or tasks. It also has a vertical communication aspect abstracting hardware/protocols from application. E.g. you can publish/subscribe to a MQTT topic, or to an EtherCAT object, or to a CANOpen dictionary object etc without even knowing if that really the thing, something else or another application. Having said that, for horizontal communication inside single process you do not need that in Ada. Many things done for other languages are not needed in Ada. Ada protected objects and tasks provide much more efficient, safer (typed) and easier to use way to communicate between tasks. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de