I’ve been trying to use ocamlnat, the experimental native toplevel distributed with the compiler, but not installed by default. This is an attempt of a follow-up to Interim report on experience with ocamlnat.
Following advice on discord, I created a fresh 4.10 switch and installed ocamlnat by doing
opam pin add ocaml-variants 4.10.0+flambda+no-flat-float-array --edit and editing the opam file to include
make ocamlnat, as explained in the manual. However, executing
ocamlnat fails because no cmx file is found for
Does anyone have working installation instructions for ocamlnat? Is loading of libraries into ocamlnat still as cumbersome as in the thread mentioned above? Is it possible to build a version of utop that uses the native toplevel? Seemingly, a native REPL is not far away, but so far it does not seem to be usable?