Skip to content

Use Stdlib instead of Pervasives#22

Merged
davidpichardie merged 2 commits intojavalib-team:masterfrom
artempyanykh:remove-pervasives
Oct 28, 2022
Merged

Use Stdlib instead of Pervasives#22
davidpichardie merged 2 commits intojavalib-team:masterfrom
artempyanykh:remove-pervasives

Conversation

@artempyanykh
Copy link
Copy Markdown
Contributor

Pervasives was deprecated in favor of directly using Stdlib in 4.08 and then removed in the upcoming 5.0. This change makes javalib buildable with the multi-core ocaml 5.0~alpha.

Pervasives was deprecated in favor of directly using Stdlib in 4.08 and
then removed in the upcoming 5.0. This change makes javalib buildable
with the multi-core 5.0~alpha ocaml.
NOTE: For some reason the package version in javalib.opam and in META
was 3.2 while in opam repo it's 3.2.1 (ditto for sawja dependency spec).
I changed the version to match x.y.z format.
artempyanykh added a commit to artempyanykh/infer that referenced this pull request Oct 9, 2022
Summary:
This is an MVP to make Infer build with ocaml 5.0.0~alpha1

It does require a bit of a setup, in particular:
1. opam repo add alpha git+https://github.com/kit-ty-kate/opam-alpha-repository.git
2. `opam pin add` for [javalib](javalib-team/javalib#22) and
   [sawja](javalib-team/sawja#8).

parmap is not compatible with multi-core and I'm not sure it'll be
compatible anytime soon because of [compatibility.h
deprecation](ocaml/ocaml#10863). However, we use
only `Setcore` from parmap; some of those functions should have an
alternative in Stdlib.Domain.
@davidpichardie davidpichardie merged commit d8fdfbe into javalib-team:master Oct 28, 2022
@davidpichardie
Copy link
Copy Markdown
Collaborator

Merged. Thanks a lot @artempyanykh !

@artempyanykh artempyanykh deleted the remove-pervasives branch January 21, 2023 15:54
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