If I had some OCaml code I wanted to run client-side "in the browser" (which seems to be your intent based on comments with the question), I have to say my first thought would be to do one of
- Use something like OcamlJava to
compile OCaml to java bytecode and
deploy that using Java web start or
similar.
- Port to F# (Microsoft version of
OCaml) running on .NET and use
whatever MS provides to web-deploy
that.
And maybe if I was really crazy:
- Port the OCaml interpreter (which I
believe is implemented in 'C') to
Flash using Alchemy and have it run
the OCaml bytecode of my original (unported) code.
A two-stage OCaml-to-C, C-to-Flash doesn't really appeal though.