Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* Shared libraries from caml
@ 1996-10-17 11:33 Leszek Holenderski
  1996-10-21 14:42 ` Xavier Leroy
  0 siblings, 1 reply; 3+ messages in thread
From: Leszek Holenderski @ 1996-10-17 11:33 UTC (permalink / raw)
  To: caml-list


Hi Camlers,

Is there any way to produce a sunos and/or solaris shared library from a
caml module? Preferably in Caml Special Light, but Objective Caml will also
do.

In fact, I'm interested in a more specific problem. Could I use csl or
ocaml to produce input for the Tcl "load" command? Has anybody tried it
yet?

Cheers,
Leszek







^ permalink raw reply	[flat|nested] 3+ messages in thread
* Re: Shared libraries from caml
@ 1996-10-22 15:57 Leszek Holenderski
  0 siblings, 0 replies; 3+ messages in thread
From: Leszek Holenderski @ 1996-10-22 15:57 UTC (permalink / raw)
  To: caml-list


>> Is there any way to produce a sunos and/or solaris shared library from a
>> caml module? Preferably in Caml Special Light, but Objective Caml will also
>> do.
>> In fact, I'm interested in a more specific problem. Could I use csl or
>> ocaml to produce input for the Tcl "load" command? Has anybody tried it
>> yet?

[Xavier Leroy wrote:
>Dynamic linking of O'Caml modules inside an arbitrary program (e.g. tcl)
>is even harder...
]

Bad news, but this is what I've expected. Anyway, thanks for your answer.

[Xavier Leroy wrote:
>It would be much easier to link Tcl into an O'Caml program that has
>already all O'Caml modules statically linked. The callback Tcl -> O'Caml
>is not too hard to do, see CamlTk4 for an example.
]

It doesn't help. The whole problem is to call O'Caml code from *standard*
Tk wish, and not the *extended* one. My real problem is as follows.

I've written some Tk application which uses O'Caml code to speed things up.
The Caml-Tk combination I use is based on the same protocol as CamlTk4. As
a consequence, my Tk application needs to be interpreted by an extended Tk
wish (the one which contains my Caml code). Unfortunately, this means that
in order to distribute my application I would have to distribute the
extended wish as well.

Anyone who has tried to distribute such an extended Tk wish in binary form
knows that it's virtually impossible, due to "unprecedented flexibility"
(read "unpredictable and messy configurations") of Unix. The extended wish
must be recreated by a user of my program and this step needs at least
Caml's linker, and in the worst case, the whole Caml environment. Thus,
installing my application on another site becomes a serious problem for a
casual user, even with the wonderful, almost fully automatic, installation
scripts for O'Caml.

If I could prepare my Caml code as a shared library then standard Tk wish
could load it dynamically and I'd only need to distribute the library, not
forcing the user to install the whole Caml environment just to play with my
app.

Cheers,
Leszek







^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1996-10-22 17:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-10-17 11:33 Shared libraries from caml Leszek Holenderski
1996-10-21 14:42 ` Xavier Leroy
1996-10-22 15:57 Leszek Holenderski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox