* [Caml-list] Exception marshaling
@ 2014-05-02 21:07 Christophe.Raffalli
2014-05-02 21:58 ` Gabriel Scherer
0 siblings, 1 reply; 2+ messages in thread
From: Christophe.Raffalli @ 2014-05-02 21:07 UTC (permalink / raw)
To: Caml list
[-- Attachment #1: Type: text/plain, Size: 494 bytes --]
Hello,
From OCaml's manual, exception marshelling does not fully work. Would it be possible to have it works at least with the same restriction
as closure marshalling (i.e. same binary) ?
This would be useful when using software like parmap, which at the moment does not support exception, probably for this reason.
I did the extension of parmap with exception and felt on the abbve mentioned problem. With parmap, the same binary restriction is fulfilled.
Cheers,
Christophe
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Caml-list] Exception marshaling
2014-05-02 21:07 [Caml-list] Exception marshaling Christophe.Raffalli
@ 2014-05-02 21:58 ` Gabriel Scherer
0 siblings, 0 replies; 2+ messages in thread
From: Gabriel Scherer @ 2014-05-02 21:58 UTC (permalink / raw)
To: Christophe Raffalli; +Cc: Caml list
That looks non-trivial to implement (for closures, there is a cache of
static code pointers; no such thing exist for exceptions). You should
add your use-case to the discussion in the relevant PR.
http://caml.inria.fr/mantis/view.php?id=4978
On Fri, May 2, 2014 at 11:07 PM, <Christophe.Raffalli@univ-savoie.fr> wrote:
>
> Hello,
>
> From OCaml's manual, exception marshelling does not fully work. Would it be possible to have it works at least with the same restriction
> as closure marshalling (i.e. same binary) ?
>
> This would be useful when using software like parmap, which at the moment does not support exception, probably for this reason.
>
> I did the extension of parmap with exception and felt on the abbve mentioned problem. With parmap, the same binary restriction is fulfilled.
>
> Cheers,
> Christophe
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-05-02 21:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-02 21:07 [Caml-list] Exception marshaling Christophe.Raffalli
2014-05-02 21:58 ` Gabriel Scherer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox