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: "Alejandro R. Mosteo" Newsgroups: comp.lang.ada Subject: Re: Ada-Oriented GUI Date: Thu, 22 Mar 2018 18:34:01 +0100 Organization: A noiseless patient Spider Message-ID: References: <7789c58e-ca36-44a2-8818-009eface4a3e@googlegroups.com> <926b83eb-6cce-417d-9c17-df6be2bc98d5@googlegroups.com> <2d1f392f-e747-42aa-8938-d6538d5b9934@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Thu, 22 Mar 2018 17:34:02 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="7293d138f01b9451d9fc048d81af480d"; logging-data="16238"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+fzzdDk6QDmDOZlptgYiZq" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 In-Reply-To: <2d1f392f-e747-42aa-8938-d6538d5b9934@googlegroups.com> Content-Language: en-US Cancel-Lock: sha1:7F+QlxvKw98MaysubWnxzhSUdvA= Xref: reader02.eternal-september.org comp.lang.ada:51139 Date: 2018-03-22T18:34:01+01:00 List-Id: On 21/03/18 14:58, Dan'l Miller wrote: > On Wednesday, March 21, 2018 at 4:49:39 AM UTC-5, Alejandro R. Mosteo wrote: >> On 19/03/18 15:10, Dan'l Miller wrote: >>> I will need to take a portion of that back; there was some initial attempt at an RxAda that was reported last year: >>> >>> https://www.auto.tuwien.ac.at/~blieb/AE2017/presentations/RxAdaSlidesShort.pdf >>> >>> Perhaps this initial foray into an RxAda by Alejandro Mosteo is a starting point, or at least a prior reference to critique. >> >> RxAda is right now somewhat down in my stack of priorities, but actually >> a demo over GtkAda/Gnoga is among the things I want to attempt sooner or >> later. >> >> Álex. > > I was hoping that you would reply to this thread. Thank you, for the reply and for all your valuable & appreciated work on RxAda. (Comp.lang.ada is more exciting when principle people contribute their expertise regarding fresh trends in Ada, rather than merely students seeking to cheat on their homework/test questions.) Is RxAda released publicly? If not yet, might RxAda be released publicly as part of that GtkAda/Gnoga demonstration? Thanks for these kind words. Sure, the repository is public: https://bitbucket.org/amosteo/rxada > Also, (other than lack of free time) what has been the biggest obstacle to your development of RxAda? Ada lacks lambdas/anonymous-subroutines but even the RxJava community sometimes prefers named methods over lambdas in app-domain code that utilizes RxJava, even in the latest versions of Java that have full-fledged lambdas in the language now. What other language features or lack there of in Ada cause concern in your development of RxAda? Have you envisioned language features unique to (current or future) Ada that would allow RxAda to go beyond the state of the art in the Rx libraries for all the other languages? There are some thoughts about my experience writing RxAda in the website above. Besides that, I mostly concur with what Emmanuel Briot has said in another reply. The need for so many generics is troublesome. I tried to make the library as easy to use as I could, but I couldn't go below one instantiation per user type and per type transformation. I haven't yet used RxAda in any real project, so I still lack the hands-on experience to see to what extent it is practical or not (hence my desire to test it with a real GUI). I missed lambdas a bit, but not as much as I expected to. My recent experiences with expression functions make me think that those could be good candidates for "lambdification". As for your comments about the RxJava community, I'm afraid I don't know. I used for a while RxJava for some Android apps but then I had to move on. Though it was enough to get me sufficiently excited about it to write RxAda. Java really has managed a hit with its implicit generics, though the editor I was using, the IntelliJ one, gets half of the merit with its on-the-fly suggestions for simplifications. Also, the twisted use of generics + interfaces + "&" operator made me feel that I was using Ada in a way that was not the intended one. But it compiles and runs, so, who knows.