learn-ocaml icon indicating copy to clipboard operation
learn-ocaml copied to clipboard

Some standard library modules are missing.

Open fpottier opened this issue 5 years ago • 4 comments

For some reason, several modules that exist in OCaml's standard library seem to be missing when executing student code and grading code. I have noted, for instance, that the following modules are missing: Arg, Bigarray, Complex, Filename, Float, Lazy, Marshal, Queue, Scanf, Stack, Uchar, Weak.

I can understand why some of these modules are missing; they might be difficult to implement in JavaScript in a browser. However, this should be documented. Furthermore, I cannot understand why several simple modules, which can be implemented entirely in OCaml, are missing: this includes Queue, Stack, and Lazy.

fpottier avatar Mar 12 '19 23:03 fpottier

These could probably be added at learn-ocaml build time by just patching src/grader/dune. As long as they are compatible with js_of_ocaml, of course.

AltGr avatar May 27 '19 15:05 AltGr

Has there been any progress? I am still bothered by the lack of these modules, especially Lazy, Queue, and Stack.

fpottier avatar Nov 13 '19 22:11 fpottier

Those three modules (and many of the ones you requested) are now available as of PR #260; a full list of the modules that were added is in the PR description. Of the ones you requested, I think the ones that are still missing are: Arg, Bigarray, and Float.

adhameer avatar Nov 15 '19 21:11 adhameer

Thanks, I hadn't noticed! This is very useful.

fpottier avatar Nov 24 '19 18:11 fpottier