Question

I used to run YAWS in erlang's REPL by just running yaws -i. When yaws is running, I can continue to use erlang's REPL.

Then I want to know whether or not it is possible to run ocsigen in OCaml's toplevel? Of course, it is not a practical use of ocsigen, but as an exercise.

I have tried thread as below, but it did not work:

λ> #thread;;
λ> Thread.create (fun _ -> Sys.command "ocsigen -c ~/ocsigen.conf.qachina") ();;
-: Thread.t = <abstr>

it works great!
BTW, What does the "abstr" stands for ?

Any suggestion is appreciated!

Was it helpful?

Solution

Enable threads in toplevel with #thread.

Though I am not sure what this question has to do with ocsigen.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top