Skip to content

Remove dependency on stdcompat#104

Open
giltho wants to merge 8 commits intoocamllibs:mainfrom
giltho:no-std-compat
Open

Remove dependency on stdcompat#104
giltho wants to merge 8 commits intoocamllibs:mainfrom
giltho:no-std-compat

Conversation

@giltho
Copy link
Copy Markdown

@giltho giltho commented Jul 3, 2025

Pyml uses Stdcompat for 2 functions. Stdcompat is a heavy dependency that often makes repository past-proof at the cost of not making them future-proof. In particular, Pyml is currently incompatible with ocaml 5.0+

Without Stdcompat, pyml was naturally compatible with ocaml 4.14+ and beyond. Because it was not much work, I added compatibility by adding these two functions by hand. Pyml is still compatible with 4.08 and above after this PR.

giltho added 8 commits July 2, 2025 18:39
Signed-off-by: Sacha Ayoun <sachaayoun@gmail.com>
Signed-off-by: Sacha Ayoun <sachaayoun@gmail.com>
Signed-off-by: Sacha Ayoun <sachaayoun@gmail.com>
Signed-off-by: Sacha Ayoun <sachaayoun@gmail.com>
Signed-off-by: Sacha Ayoun <sachaayoun@gmail.com>
Signed-off-by: Sacha Ayoun <sachaayoun@gmail.com>
Signed-off-by: Sacha Ayoun <sachaayoun@gmail.com>
Signed-off-by: Sacha Ayoun <sachaayoun@gmail.com>
@redianthus
Copy link
Copy Markdown

@shindere and @thierry-martinez, is there any chance this gets merged at some point?

@giltho
Copy link
Copy Markdown
Author

giltho commented Mar 11, 2026

Last time we interacted, I think @shindere decided to see if stdcompat could be updated regularly in sync with the main compiler, instead of removing support.
Given that stdcompat hasn't yet synced with 5.4, and 5.5 is already in alpha, I would consider removing dependency on stdcompat from projects that don't really need it.

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.

2 participants