From: Alessandro Baretta <alex@baretta.com>
To: Chris Hecker <checker@d6.com>, Ocaml <caml-list@inria.fr>
Subject: Re: [Caml-list] PostgreSQL and Ocaml
Date: Sun, 13 Oct 2002 16:35:39 +0200 [thread overview]
Message-ID: <3DA984BB.2060007@baretta.com> (raw)
In-Reply-To: <4.3.2.7.2.20021011113853.04c03c08@mail.d6.com>
Chris Hecker wrote:
>
>> If nobody has, would anyone like to join me in the project of writing
>> an add-in for PostgreSQL supporting Ocaml stored procedures? I have
>> little experience in this, but it should not be too difficult: it
>> should be a matter of writing a C dll which, upon initialization,
>> starts a bytecode compiler and interpreter, and has callbacks through
>> with which the server can request the compilation of a text string or
>> the execution of a bytecode cmo blob.
>
>
> I have no time to help you with this, but I have a suggestion. I would
> write this dll in caml and use the asmdynlink library (which,
> unfortunately, is bound rather tightly into the apparently-moribund cdk
> at this point, but it still appears to work). ...
This is an interesting point, but the main nightmare will be
tying in PostgreSQL code into Ocaml. You have to consider
that PostgreSQL is the SQL engine, and necessarily the
embedded-Ocaml interpreter/runtime-system will have to be
able to invoke such portions of the PostgreSQL system as are
necessary to run queries and retrieve recordsets or to open
and use cursors. So, C calls Caml which calls C which...
This reminds me of the autogénération de Caml:
http://caml.inria.fr/pooh.html
Alex
-------------------
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
next prev parent reply other threads:[~2002-10-13 14:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-11 11:04 Alessandro Baretta
2002-10-11 11:24 ` Yang Shouxun
2002-10-11 12:31 ` Alessandro Baretta
2002-10-11 18:53 ` Chris Hecker
2002-10-13 14:35 ` Alessandro Baretta [this message]
2002-10-12 12:05 ` Nicolas Cannasse
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=3DA984BB.2060007@baretta.com \
--to=alex@baretta.com \
--cc=caml-list@inria.fr \
--cc=checker@d6.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