For questions relating specifically to OCaml 5.0 and later.
Questions tagged [ocaml-5]
4 questions
41
votes
4 answers
What is the state of OCaml's parallelization abilities?
I'm interested in using OCaml for a project, however I'm not sure about where its parallelization capabilities are anymore. Is there a message passing ability in OCaml? Is OCaml able to efficiently use more than 1 CPU?
Most of what I have read on…

Andrew Spott
- 3,457
- 8
- 33
- 59
1
vote
1 answer
OCaml 5.0.0~beta1: How to use an argument of Effect when their effect handler is not specified (Using Unhandled Exception)
I am using opam switch: 5.0.0~beta1
I was playing around with some simple functions (on utop):
type _ Effect.t += Foo : (unit -> unit) -> unit Effect.t
let a = try perform (Foo (fun () -> Printf.printf "Hello from Foo\n ")) with
| Unhandled (Foo f)…

Eclipse
- 13
- 3
1
vote
1 answer
Unhandled Exception with OCaml 5.0.0~beta1
I'm inconsistently getting this error in a first experiment with OCaml 5.0.0~beta1:
Fatal error: exception Stdlib.Effect.Unhandled(Domainslib__Task.Wait(_, _))
My setup:
Processor: Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
Debian 10 (buster)
opam…

Pablo M. S. Farias
- 111
- 8
0
votes
1 answer
OCaml v5.0, "Module `Str' is unavailable"
Im trying to use the Ocaml Str library in Ocaml v5.0 (for regexp) by importing using "open Str" but I keep getting this error
"Module `Str' is unavailable"
followed by this alert
"
OCaml's lib directory layout changed in 5.0. The str subdirectory…

Benjamin Borg
- 39
- 4