Skip to content

Restructure and normalize Load_path - #27

Open
shym wants to merge 3 commits into
trunkfrom
refactor-load_path-2
Open

shym wants to merge 3 commits into
trunkfrom
refactor-load_path-2

Conversation

@shym

@shym shym commented Sep 21, 2026 •

Copy link
Copy Markdown
Owner

This PR works on Load_path to improve its structure by:

  • adding an internal interface to the Dir submodule to abstract away some of its implementation, both internally (by keeping its type t abstract) and externally (by removing some functions from its externally-visible interface),
  • adding another submodule, Path_cache, for its Load_path-internal cache.

It also cleans up many names using the _uncap suffixes dating from before the current name-normalization functions.

The structure part of this PR is a port from oxcaml/oxcaml#2420.

Suggestion: as usual when reviewing refactoring PRs, I find git show --color-moved=dimmed-zebra very useful on mostly-shuffle-code-around commits.

@shym
shym force-pushed the refactor-load_path-2 branch 2 times, most recently from 45846c4 to 57602fd Compare September 23, 2026 13:39
shym and others added 3 commits September 30, 2026 14:47
Pull the path-to-file cache logic into a `Path_cache` submodule

Ported from oxcaml/oxcaml#2420

Co-authored-by: Andrei Odintsov <forestryks1@gmail.com>
Restrict the exported interface to what is actually used
Add an internal interface for `Load_path.Dir`

Ported from oxcaml/oxcaml#2420

Co-authored-by: Andrei Odintsov <forestryks1@gmail.com>
Normalization now does more than just uncapitalization so rename
variables to follow that change
@shym
shym force-pushed the refactor-load_path-2 branch from 57602fd to 781d39c Compare September 30, 2026 13:02
@shym shym changed the title Self Restructure and normalize Load_path Sep 30, 2026
@shym

shym commented Sep 30, 2026

Copy link
Copy Markdown
Owner Author

cc dra27-js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant