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=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,ed94ed1b0b101d35 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.180.91.231 with SMTP id ch7mr20909wib.1.1348190011898; Thu, 20 Sep 2012 18:13:31 -0700 (PDT) Path: ed8ni3498083wib.0!nntp.google.com!feeder2.cambriumusenet.nl!feeder1.cambriumusenet.nl!feed.tweaknews.nl!85.12.40.131.MISMATCH!xlned.com!feeder3.xlned.com!news.astraweb.com!border5.a.newsrouter.astraweb.com!border2.nntp.ams.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!newsreader4.netcologne.de!news.netcologne.de!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Tcl/TK + Ada Date: Tue, 18 Sep 2012 18:36:54 +0100 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Injection-Info: mx04.eternal-september.org; posting-host="a9272c9c584810f74e3f95ce46cbeceb"; logging-data="5028"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+HMZnCrncwP08QqvsmiUjngJJgvC5b1es=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (darwin) Cancel-Lock: sha1:O5IuyfEUFxHOJes7Ao72VteCzy8= sha1:7Y3Yo8P7r2RicQ2uvQ+KtU9nKR8= Content-Type: text/plain Date: 2012-09-18T18:36:54+01:00 List-Id: Patrick writes: > So I am working on a daemon that will be written in Ada and controlled > by a slew of small simple commands. I am planning on controlling it > through a Tcl/Tk GUI. I am wondering if this is a good design > decision? Has anyone done somethign like this? > > Tcl is not going to be as reliable as Ada but if the code base is > small (and Tcl was designed for small code bases) then I should be > okay right? > > There is an Ada binding: http://tcladashell.sourceforge.net/index.htm > > Am I walking into any pitfalls here... When you say "daemon" I imagine a process which runs continually, and needs to be controlled using separate, probably short-lived, processes run from eg the command line and which interact with the daemon process using some sort of inter-process comms. The natural way of writing a TASH/Tk app such as you describe has the GUI as part of the app, and that's not how daemons work. Given that, even though I'm one of TclAdaShell (aka TASH)'s maintainers, I don't see any advantage to writing the control process using TclAdaShell (aka TASH) vs the web approach, where connecting via a browser corresponds to the short-lived "process". I do have a minimal web server EWS[1], but it doesn't hold your hand at all with connecting web pages via eg AJAX to an Ada application. You can do it, but it's a lot of work. In distinction, AWS from AdaCore has a lot of support for this sort of thing, and is definitely worth a look. [1] https://sourceforge.net/projects/embed-web-srvr/