ocamlnat is distributed with the compiler but not built by default. I can only start it by typing make natruntop
in the ocaml compiler build directory. How can I make this into a fully functional native utop?
Asked
Active
Viewed 131 times
0

user3240588
- 1,252
- 9
- 16
1 Answers
0
This would be a big amount of work to do. The ocamlnat
project is still a bit of experimental and not officially distributed. There is an ongoing work, to revive it. What concerning binding it to utop
then it would be a separate big amount of work, that will involve some programming. But it is too preliminary to speak about this at this stage of the project.
Note: utop
is not just a wrapper around OCaml toplevel, it is a separate implementation, so retargeting it to a new backend, might not be that easy.

ivg
- 34,431
- 2
- 35
- 63
-
ok. my question was prompted by this comment: https://www.reddit.com/r/ocaml/comments/3qjs1q/utop_is_a_much_better_toplevel_than_ocaml_if_you/cwh1cb0 where somebody claims to have done it! – user3240588 Oct 20 '16 at 15:17
-
1anyway, cool that this seems to be coming. an opam package for native utop at some point would be cool for interactive statistics etc. – user3240588 Oct 20 '16 at 15:20
-
yeah, I'm also waiting eagerly for this to happen! – ivg Oct 21 '16 at 14:40