Skip to content

Use Stdlib instead of Pervasives#8

Merged
davidpichardie merged 2 commits intojavalib-team:masterfrom
artempyanykh:remove-pervasives
Dec 13, 2022
Merged

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

Conversation

@artempyanykh
Copy link
Copy Markdown
Contributor

@artempyanykh artempyanykh commented Oct 9, 2022

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.

NOTE: I checked that the project builds with 5.0 but I didn't try to run anything. In particular I'm not sure what jvmti native stubs do.

A companion javalib PR is javalib-team/javalib#22 (where the version is bumped to 3.2.2)

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.

NOTE: I checked that the project builds with 5.0 but I didn't try to run
anything. In particular I'm not sure what jvmti native stubs do.
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 12ad409 into javalib-team:master Dec 13, 2022
@davidpichardie
Copy link
Copy Markdown
Contributor

Thanks a lot @artempyanykh!

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