From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18598 invoked by alias); 21 Oct 2016 23:00:38 -0000 Mailing-List: contact kawa-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: kawa-owner@sourceware.org Received: (qmail 18440 invoked by uid 89); 21 Oct 2016 23:00:29 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=decent, reactions, skimmed, concatenating X-HELO: aibo.runbox.com Received: from aibo.runbox.com (HELO aibo.runbox.com) (91.220.196.211) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 21 Oct 2016 23:00:19 +0000 Received: from [10.9.9.212] (helo=mailfront12.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1bxinD-00010q-Va; Sat, 22 Oct 2016 01:00:04 +0200 Received: from 70-36-239-8.dsl.dynamic.fusionbroadband.com ([70.36.239.8] helo=toshie.bothner.com) by mailfront12.runbox.com with esmtpsa (uid:757155 ) (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.82) id 1bxin1-0005nO-GV; Sat, 22 Oct 2016 00:59:51 +0200 Subject: Re: functional programming and web services To: Damien MATTEI , kawa@sourceware.org, Bigloo Mailingliste , Manuel.Serrano@inria.fr, Michel.BUFFA@unice.fr, Jean-Paul.ROY@unice.fr References: <201610201155.33901.Damien.Mattei@unice.fr> Cc: Bonneau Daniel , Mattei Damien , jean-Claude Thorel , Stee Philippe , lyu.abe@unice.fr, thierry.lanz@oca.eu From: Per Bothner Message-ID: Date: Fri, 21 Oct 2016 23:00:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <201610201155.33901.Damien.Mattei@unice.fr> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2016-q4/txt/msg00036.txt.bz2 Thanks! And great that you're using Kawa for this. I only skimmed the document, but here are some reactions: * As a tutorial it's rather on the heavy side, with very big examples. The code seems to include a lot of debugging code making it even bigger. * It's not obvious from the examples why one would use Kawa rather than just Java. (We know ...) * Using "format" might make the Counter.scm example more compact. Or maybe using string templates more. I see some examples of them already. * Could SidonieWelcomeR and ResultatGeneralF be written in Scheme rather than Java? Note that Kawa does have decent annotation support. Yes, you need to magically make sure that Scheme.registerEnvironment() gets called early, but that shouldn't be difficult. * ResultatGeneralFKawa.scm builds HTML by concatenating strings. That seems verbose - and dangerous (consider injection attacks). Have you considered using XML literals? -- --Per Bothner per@bothner.com http://per.bothner.com/