Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Adolf Mathias <dolfi@zkm.de>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Tcl/Tk
Date: Mon, 05 Jan 2004 19:09:28 -0500	[thread overview]
Message-ID: <3FF9FCB8.6010505@zkm.de> (raw)
In-Reply-To: <3FF97A84.4060705@univ-savoie.fr>

Christophe Raffalli wrote:

>
>> I guess that a native OCaml toolkit would be a real killer.
>
>
> What would be nice is an OCaml/Tk !!
>
> replace completely Tcl by Ocaml :-)

This is how one of the Perl/Tk-bindings came into existence. An amazing 
guy called Nick Ing-Simmons once stripped Tcl out of Tk and replaced all 
Tcl references by an abstract interpreter and neutral arguments etc., 
and this semi-automatically with an ingenious Perl script!! I just 
downloaded the Perl/Tk stuff from CPAN to check it out again, but it 
seems that the original approach was abandoned, and the whole thing 
seems too close to Perl and Tcl than it was in order to be useful for a 
direct Ocaml-binding :-(

One point of attack might be the implementation of Tcl_EvalObjEx which 
apparently is the boiler plate for Tcl evaluation as a C-Ocaml-interface 
and provide a mapping between Tcl_Obj's and OCaml values. But then, the 
list of Tcl references inside Tk is still intimidatingly long (try gcc 
/usr/lib/tk8.3/tkAppInit.c -o test -ltk and watch the lovely linker 
error messages), and Tcl now provides a lot more non-windowing 
functionality to Tk, which probably caused the initial Perl/Tk-approach 
to be abandoned. Just guessing. Maybe some enlightened mind comes up 
with a surprising solution ;-)



-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


  reply	other threads:[~2004-01-05 18:06 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-04 18:01 [Caml-list] Announcement: Equeue-2.0 (also about Shell pkg) Gerd Stolpmann
2004-01-04 18:43 ` Sylvain LE GALL
2004-01-04 19:20   ` Remi Vanicat
2004-01-04 20:49     ` Gerd Stolpmann
2004-01-05  3:03       ` skaller
2004-01-05 14:13         ` [Caml-list] Tcl/Tk Adolf Mathias
2004-01-05  9:33           ` Richard Jones
2004-01-05 14:53           ` Christophe Raffalli
2004-01-06  0:09             ` Adolf Mathias [this message]
2004-01-06 10:30             ` Thomas Fischbacher
2004-01-04 19:25   ` [Caml-list] Announcement: Equeue-2.0 (also about Shell pkg) Gerd Stolpmann
2004-01-04 19:52     ` Sylvain LE GALL
2004-01-04 20:27       ` Gerd Stolpmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3FF9FCB8.6010505@zkm.de \
    --to=dolfi@zkm.de \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox