From: Ritesh Kumar <ritesh@cs.unc.edu>
To: malc <malc@pulsesoft.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Native executable symtable
Date: Sat, 20 Nov 2004 15:07:04 -0500 [thread overview]
Message-ID: <BF986CE8-3B2F-11D9-A20F-000A95CDFBE4@cs.unc.edu> (raw)
In-Reply-To: <Pine.LNX.4.61.0411202210230.1123@home.oyster.ru>
Actually malc, it is a bit dissapointing (not on you but on the general
Ocaml community) that you said that. Before I converted myself into an
Ocaml programmer I quite vigorously fought with google to find out the
answer to the very same question your patch addresses. I eventually
came across some old newsgroup/mail-list postings which said why shared
libraries are good/bad ideas in Ocaml and what are the pros and cons. I
know I am not an expert in this field but id does seem that having
ocaml shared libraries is a big step towards wider deployment ( and
what's more, perhaps an entire userspace of its own!). I didn't find
the reasons given against shared libraries very convincing. Among other
things I value dynamic module linking (during program runtime) as it is
with languages like Java/C a lot as they give numerous opportunities to
the programmer.
The patch that you have developed is a good step forward. I think it
has a lot of utility and it should be part of the main opt compiler.
Ritesh
--
Impossibility is a relative concept.
On Nov 20, 2004, at 2:17 PM, malc wrote:
> On Sat, 20 Nov 2004, Alex Baretta wrote:
>
>>>> What does this patch do? I clicked on the link but could not make
>>>> any sense out the page you referenced.
>>> I don't know how to put it more bluntly than that (already on the
>>> page):
>>> <quote>
>>> What is it?
>>> A patch, against OCaml 3.07, making it possible to: create, link
>>> against and dynamically load shared objects on i386 ELF and Win32
>>> platforms.
>>> </quote>
>>
>> I read this, but I don't see how this differs from the behavior of
>> vanilla Ocaml. I commonly use shared-object libraries in my code, and
>> the Ocaml compiler can generate DLLs out of libraries for use within
>> C code. The problem addressed by ASMDynlink dynlinking Ocaml compiled
>> code within a running native code application. What has Vitaly's
>> patch to do with this?
>
> Keyword here is "for use within C code", this patch is "for use within
> OCaml code", also adressing name mangling, shared GC and runtime.
> Additionally it Natdynlink module is introduced (Natdynlnk mimics the
> behaviour of Dynlink, but works with natively compiled OCaml shared
> object). A little bit of research on the page would have (like, for
> instance, getting the examples provided or reading README) would have
> given you just as much information.
>
>>
>> I also don't understand your sarcasm.
>
> Sarcasm spurs from the fact that first version of this patch was
> introduced in 2001 and developed till 2003. I had hoped that this will
> result in some reaction, if not from Inria developers then from OCaml
> users, alas this was not the case. Nothing w.r.t. native shared object
> and/or dynamic linking of native code has changed since then. I myself
> asked and waited for something akin to this for a bit, then decided to
> went ahead and did it on my own, big mistake, all signs are there that
> people do not need this functionality bad enough to do anything.
> So be it.
>
> --
> mailto:malc@pulsesoft.com
>
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
next prev parent reply other threads:[~2004-11-20 20:07 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-11 10:18 Alex Baretta
2004-11-11 10:39 ` [Caml-list] " Nicolas Cannasse
2004-11-11 11:09 ` Luca Pascali
2004-11-11 11:55 ` Keith Wansbrough
2004-11-11 12:09 ` Luca Pascali
2004-11-11 12:28 ` Keith Wansbrough
2004-11-11 12:42 ` Luca Pascali
2004-11-11 16:09 ` Richard Jones
2004-11-20 15:44 ` Luca Pascali
2004-11-20 16:03 ` malc
2004-11-20 18:01 ` Alex Baretta
2004-11-20 18:06 ` malc
2004-11-20 18:53 ` Alex Baretta
2004-11-20 19:17 ` malc
2004-11-20 20:07 ` Ritesh Kumar [this message]
2004-11-20 22:43 ` The madness of ignoring people Vincenzo Ciancia
2004-11-20 23:10 ` [Caml-list] " malc
2004-11-20 23:25 ` Vincenzo Ciancia
2004-11-21 12:51 ` skaller
2004-11-21 14:14 ` Vincenzo Ciancia
2004-11-21 14:30 ` malc
2004-11-21 3:37 ` [Caml-list] Native executable symtable skaller
2004-11-21 15:59 ` Richard Jones
2004-11-21 20:29 ` skaller
2004-11-21 20:39 ` malc
2004-11-21 23:30 ` Richard W.M. Jones
2004-11-22 3:25 ` skaller
2004-11-21 20:42 ` Jean-Marie Gaillourdet
2004-11-21 18:31 ` Ritesh Kumar
2004-11-21 23:33 ` Richard Jones
2004-11-21 21:15 ` skaller
2004-11-11 16:23 ` David Brown
2004-11-11 17:27 ` Xavier Leroy
2004-11-11 18:48 ` Alex Baretta
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=BF986CE8-3B2F-11D9-A20F-000A95CDFBE4@cs.unc.edu \
--to=ritesh@cs.unc.edu \
--cc=caml-list@inria.fr \
--cc=malc@pulsesoft.com \
/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