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!aioe.org!JUN8/iIzeA71QWaIWFKODA.user.gioia.aioe.org.POSTED!not-for-mail From: "Luke A. Guest" Newsgroups: comp.lang.ada Subject: Re: Any chance of programming a web frontend in Ada 2012? Date: Tue, 8 Jun 2021 16:08:04 +0100 Organization: Aioe.org NNTP Server Message-ID: References: <9778346a-b361-4038-8c1f-406830f6cd9an@googlegroups.com> NNTP-Posting-Host: JUN8/iIzeA71QWaIWFKODA.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 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 Content-Language: en-GB X-Notice: Filtered by postfilter v. 0.9.2 Xref: reader02.eternal-september.org comp.lang.ada:62143 List-Id: On 08/06/2021 15:55, Marius Amado-Alves wrote: >>> Thanks, Luke. I've used CGI in the past (~2000). But now I'm a grown man and want to use a single language:-) >> Eh? Surely you know CGI is basically stdin/out right? SCGI and FastCGI >> is just that over sockets and you can use Ada. > > Thanks, yes, then maybe I'm missing something, I dont see how that lets an Ada program run *in the browser*. > I used CGI to pass information (including generated HTML and the like) between the Ada program running as (and in a) server and the browser, an arquitecture still requiring non-Ada languages in the front end. > Maybe I was doing it wrong. > CGI programs are started by the browser on the server, SCGI and FastCGI are servers running on the server. See https://github.com/Lucretia/ether https://github.com/reznikmm/matreshka If you want front end stuff, i.e. WebAssembly, you can do that, see https://groups.google.com/g/comp.lang.ada/c/X-x1e-4w7dk/m/09nYKa-RAwAJ (Me) https://groups.google.com/g/comp.lang.ada/c/i7niKZL8HAU/m/Y4I03LnLAgAJ (Maxim) https://blog.adacore.com/use-of-gnat-llvm-to-translate-ada-applications-to-webassembly