I guess the answer to your question is OCaml has unmanaged side effects.
Reply on news.ycombinator.com