Skip to content

Move Camlp4 syntax to a separate package #370

Closed

Description

@aantron

To eliminate a depopt from opam, and as part of deprecating Camlp4. Related #338.

Activity

  1. modified the milestone: 3.1.0 on May 24, 2017
  2. modified the milestones: 3.1.0, 3.2.0 on Jul 18, 2017
  3. aantron commented on Oct 13, 2017

    @aantron
    CollaboratorAuthor

    I tried doing something like #481 (factoring out the PPX) to Camlp4, but it doesn't seem to work. I think archive(syntax ...) ... predicates have to be directly in at least one package that is mentioned on the command line, not only findable through requires predicates. So, we can't use a "proxy" package, like for the PPX. This seems like a bug in Findlib, but I don't think we have time to wait for a fix.

    I can think of two or three ways to solve this:

    1. Just move the Camlp4 syntax out, without going through a proxy package phase. We would do this in 4.0.0, and cause breakage.
    2. Duplicate the Camlp4 syntax both lwt.syntax and lwt_camlp4, until 4.0.0. This seems equally as easy/difficult as (1), but would be "softer." I don't know if there would be any difficulties I don't foresee, though.
    3. Maybe it's possible to create a dummy library that has an archive(syntax, ...) predicate, and that will satisfy Findlib. I haven't tried it.

    @Drup, any suggestions from your experience?

  4. Drup commented on Oct 20, 2017

    @Drup
    Member

    I think it's okay, in this case, to do a one time move. Does the camlp4 syntax extension still has many users ?

  5. aantron commented on Oct 20, 2017

    @aantron
    CollaboratorAuthor

    Yeah, I see aws, maybe biocaml, maybe bitcoin, eliom, facebook-sdk, maybe hardcaml, tests of imaplet, iocaml, jitsu, joolog, some examples in js_of_ocaml, lambdoc examples, mongo, ojquery, ojwidgets, rdf, release, riak, themoviedb, usb, xe, xen-disk, xenctrl, xentropyd just in opam. Didn't look into how many of those are presently maintained.

  6. modified the milestones: 3.2.0, 4.0.0 on Nov 6, 2017
  7. aantron commented on Nov 6, 2017

    @aantron
    CollaboratorAuthor

    The linked commit duplicates Camlp4 in a lwt_camlp4 package.

  8. aantron commented on Nov 7, 2017

    @aantron
    CollaboratorAuthor

    I should note that this approach results in Findlib warnings about duplicate interfaces in lwt and lwt_camlp4. These are temporary until 4.0.0.

  9. added a commit that references this issue on Dec 23, 2017
    68933eb
  10. added a commit that references this issue on Mar 24, 2018
    da5754d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions