You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make dataset_utils.ml WIndows-compatible, by Claude Opus
Prompt:
> Let's rewrite datasets/dataset_utils.ml to be compatible with the Windows OS. We are
currently running under Windows directly (not WSL), so you can see it's broken by running e.g. `dune exec .\test\training\moons_demo.exe` (apologies for the split
message).
Summary by Claude:
1. Environment variables: Uses USERPROFILE or HOMEPATH on Windows instead of HOME
2. Cache directory paths: Uses AppData\Local\ocaml-nx\datasets on Windows instead of
.cache/ocaml-nx/datasets
3. Path separators: Uses Filename.dir_sep throughout instead of hardcoded /
4. Windows drive letters: Properly handles paths like C:\ in the mkdir_p function
5. Archive extraction: Attempts to use tar.exe on Windows (available on Windows 10+) with
graceful fallback
The file now compiles successfully. The errors you're seeing about undefined references
are unrelated to dataset_utils.ml - they're about missing C backend builtins for random
number generation functions.
Signed-off-by: lukstafi <lukstafi@users.noreply.github.com>
Vendored from [Raven/nx-datasets](https://github.com/raven-ml/raven/tree/main/nx-datasets) as of version 0.1.0, without the `nx` adapter.
3
+
Vendored from [Raven/nx-datasets](https://github.com/raven-ml/raven/tree/main/nx-datasets) as of version 0.1.0, without the `nx` adapter. Updated with OCANNL-specific locations, Windows compatibility.
0 commit comments