From: Simon Wright <simon@pushface.org>
Subject: Re: Tcl/TK + Ada
Date: Tue, 18 Sep 2012 18:36:54 +0100
Date: 2012-09-18T18:36:54+01:00 [thread overview]
Message-ID: <m2zk4n44i1.fsf@pushface.org> (raw)
In-Reply-To: c0b7c606-fa4c-4001-a8d6-02bb262c4215@googlegroups.com
Patrick <patrick@spellingbeewinnars.org> 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/
next prev parent reply other threads:[~2012-09-21 1:13 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-18 11:56 Tcl/TK + Ada Patrick
2012-09-18 12:42 ` Thomas Løcke
2012-09-18 12:51 ` Patrick
2012-09-18 17:36 ` Simon Wright [this message]
2012-09-18 18:57 ` Patrick
2012-09-18 19:30 ` Simon Wright
2012-09-19 10:02 ` john
2012-09-19 11:17 ` Pascal Obry
2012-09-19 12:08 ` Patrick
2012-09-19 13:05 ` john
2012-09-19 14:27 ` Patrick
2012-09-19 15:12 ` Dmitry A. Kazakov
2012-09-19 15:43 ` Pascal Obry
2012-09-21 23:23 ` Jerry
2012-09-21 8:54 ` leonid.dulman
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox